/* =========================================================
   Portail — Marcel Schueller : trois univers, trois styles
   ========================================================= */
:root {
  --bg: #07080a;
  --text: #ece8df;
  --muted: #9a968d;
  --line: rgba(255, 255, 255, .1);
  --red: #ff2d4a;
  --cyan: #14e0ff;
  --brass: #d9a441;
  --oxblood: #2a0f10;
  --lichen: #e7ebe1;
  --moss-ink: #1d2a1f;
  --magenta: #c2185b;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.portal {
  background: var(--bg); color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- En-tête ---------- */
.portal__head {
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(22px, 3.5vw, 40px);
  display: grid; grid-template-columns: auto 1fr; gap: 6px clamp(24px, 5vw, 80px); align-items: end;
}
.portal__kicker { grid-column: 1 / -1; margin: 0; font-family: 'Space Mono', monospace; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.portal__title {
  margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: .9; letter-spacing: -.01em;
}
.portal__intro { margin: 0; max-width: 34rem; color: #c9c4ba; font-size: clamp(.98rem, 1.3vw, 1.08rem); line-height: 1.6; font-weight: 300; }

/* ---------- Les trois univers ---------- */
.worlds { flex: 1; display: flex; min-height: 72vh; min-height: 72svh; border-top: 1px solid var(--line); }
.world {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  display: flex; align-items: flex-end;
  text-decoration: none; isolation: isolate;
  transition: flex-grow .9s var(--ease);
}
.world + .world { border-left: 1px solid var(--line); }
.worlds:hover .world { flex-grow: .8; }
.worlds .world:hover, .worlds .world:focus-visible { flex-grow: 1.5; }
.world__bg { position: absolute; inset: 0; z-index: -1; }
.world__body { position: relative; padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 8px; width: 100%; }
.world__num { font-family: 'Space Mono', monospace; font-size: .72rem; letter-spacing: .2em; opacity: .7; }
.world__name { margin: 0; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: .95; }
.world__teaser { margin: 0; max-width: 24rem; font-size: .95rem; line-height: 1.5; opacity: .85; }
.world__cta {
  align-self: flex-start; margin-top: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid currentColor;
  font-family: 'Space Mono', monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background .4s, color .4s, transform .4s var(--ease);
}
.world__cta span { display: inline-block; transition: transform .4s var(--ease); }
.world:hover .world__cta span, .world:focus-visible .world__cta span { transform: translateX(5px); }

/* Stéréoscopie : anaglyphe rouge / cyan qui s'écarte au survol */
.world--stereoscopie { color: var(--text); background: #000; }
.w-stereo { --sep: 3px; isolation: isolate; background: #000; }
.w-stereo i { position: absolute; inset: -3%; background: var(--img) center / cover no-repeat; filter: grayscale(1) brightness(.75); mix-blend-mode: screen; transition: transform 1s var(--ease); }
.w-stereo i::after { content: ''; position: absolute; inset: 0; mix-blend-mode: multiply; }
.w-stereo i:first-child { transform: translateX(calc(var(--sep) * -1)); isolation: isolate; }
.w-stereo i:first-child::after { background: #ff0000; }
.w-stereo i:last-child { transform: translateX(var(--sep)); isolation: isolate; }
.w-stereo i:last-child::after { background: #00ffff; }
.world--stereoscopie:hover .w-stereo i:first-child { transform: translateX(-12px) scale(1.03); }
.world--stereoscopie:hover .w-stereo i:last-child { transform: translateX(12px) scale(1.03); }
.world--stereoscopie::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(7,8,10,.92)); }
.world--stereoscopie .world__name { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; text-shadow: -3px 0 0 rgba(255,45,74,.8), 3px 0 0 rgba(20,224,255,.8); }
.world--stereoscopie .world__cta:hover { background: var(--text); color: var(--bg); }

/* Musique : club de jazz, vinyle et laiton */
.world--musique { color: #f3e7cf; background: radial-gradient(120% 90% at 50% 20%, #4a1a17 0%, var(--oxblood) 45%, #120909 100%); }
.w-music img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: sepia(.4) contrast(1.05); }
.w-vinyl {
  position: absolute; width: min(78%, 360px); aspect-ratio: 1; left: 50%; top: 38%; translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--brass) 0 16%, #1a0c0a 16.4% 17.5%, transparent 18%),
    repeating-radial-gradient(circle, #0c0b0b 0 1.2px, #1c1a1a 1.6px 2.6px),
    #0c0b0b;
  box-shadow: 0 30px 70px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.06);
  animation: spin 7s linear infinite paused;
}
.w-vinyl::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 12%, rgba(255,255,255,.14) 16%, transparent 22% 60%, rgba(255,255,255,.09) 66%, transparent 72%); }
.w-vinyl span {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 30%; text-align: center;
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 700; font-size: clamp(.6rem, 1vw, .8rem); line-height: 1.1; color: #2a0f10;
}
.world--musique:hover .w-vinyl, .world--musique:focus-visible .w-vinyl { animation-play-state: running; }
@keyframes spin { to { rotate: 360deg; } }
.world--musique .world__name { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-style: italic; letter-spacing: -.01em; color: var(--brass); }
.world--musique .world__num, .world--musique .world__cta { font-family: 'Space Mono', monospace; }
.world--musique .world__cta:hover { background: var(--brass); color: #1a0c0a; border-color: var(--brass); }

/* Marc'Hoss : lichen clair, formes organiques */
.world--marchoss { color: var(--moss-ink); background: var(--lichen); }
.w-moss img {
  position: absolute; width: 82%; height: 58%; left: 9%; top: 7%; object-fit: cover;
  border-radius: 58% 42% 63% 37% / 41% 55% 45% 59%;
  animation: blob 14s ease-in-out infinite alternate;
  box-shadow: 0 30px 60px -20px rgba(29,42,31,.45);
  transition: transform 1.2s var(--ease);
}
.world--marchoss:hover .w-moss img { transform: scale(1.05) rotate(-1.5deg); }
@keyframes blob {
  0%   { border-radius: 58% 42% 63% 37% / 41% 55% 45% 59%; }
  50%  { border-radius: 38% 62% 44% 56% / 58% 36% 64% 42%; }
  100% { border-radius: 62% 38% 52% 48% / 36% 62% 38% 64%; }
}
.world--marchoss .world__name { font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; font-weight: 800; letter-spacing: -.03em; }
.world--marchoss .world__name::after { content: '.'; color: var(--magenta); }
.world--marchoss .world__cta:hover { background: var(--moss-ink); color: var(--lichen); }

/* ---------- Pied ---------- */
.portal__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 18px var(--gutter); border-top: 1px solid var(--line);
  font-family: 'Space Mono', monospace; font-size: .68rem; letter-spacing: .1em; color: #6c6a66;
}
.portal__foot p { margin: 0; }
.portal__foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.portal__foot a:hover { color: var(--text); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .portal__head { grid-template-columns: 1fr; }
  .worlds { flex-direction: column; }
  .world { min-height: 62vh; min-height: 62svh; }
  .world + .world { border-left: 0; border-top: 1px solid var(--line); }
  .worlds:hover .world, .worlds .world:hover { flex-grow: 1; }
  .w-vinyl { width: min(62%, 280px); top: 36%; animation-play-state: running; animation-duration: 12s; }
  .w-moss img { height: 52%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
