/*
 * Vitrine iFredZ — août 2026
 *
 * Cette feuille porte la page d’accueil et son aperçu de validation.
 * Elle utilise uniquement la plateforme Web : cascade en couches, nesting,
 * couleurs perceptuelles, grilles fluides et préférences utilisateur.
 */

@layer reset, tokens, base, layout, components, states, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: clip; }
  body, h1, h2, h3, p, figure, ul, ol, pre { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg { display: block; max-width: 100%; height: auto; }
  button, a { font: inherit; }
}

@layer tokens {
  :root {
    color-scheme: light dark;

    --page: light-dark(oklch(96.5% 0.008 86), oklch(12.5% 0.014 265));
    --surface: light-dark(oklch(99% 0.004 86), oklch(17% 0.018 264));
    --surface-strong: light-dark(oklch(100% 0 0), oklch(20% 0.02 264));
    --ink: light-dark(oklch(18% 0.025 260), oklch(96% 0.01 255));
    --muted: light-dark(oklch(46% 0.02 257), oklch(73% 0.018 255));
    --line: light-dark(oklch(84% 0.012 255), oklch(32% 0.02 260));
    --brand: light-dark(oklch(62% 0.17 62), oklch(82% 0.15 75));
    --brand-ink: oklch(18% 0.03 55);

    --apero-bg: oklch(20% 0.055 58);
    --apero-surface: oklch(28% 0.07 62);
    --apero-accent: oklch(82% 0.15 75);
    --apero-ink: oklch(97% 0.012 80);

    --meteo-bg: light-dark(oklch(92% 0.035 235), oklch(20% 0.04 247));
    --meteo-ink: light-dark(oklch(23% 0.05 248), oklch(96% 0.014 235));
    --meteo-blue: light-dark(oklch(57% 0.16 250), oklch(77% 0.12 235));

    --podcast-bg: oklch(12% 0.032 292);
    --podcast-ink: oklch(96% 0.012 310);
    --podcast-pink: oklch(70% 0.24 340);
    --podcast-violet: oklch(62% 0.25 302);
    --podcast-orange: oklch(76% 0.17 55);

    --music-bg: light-dark(oklch(93% 0.035 40), oklch(17% 0.04 327));
    --music-surface: light-dark(oklch(98% 0.014 45), oklch(22% 0.045 327));
    --music-ink: light-dark(oklch(22% 0.035 330), oklch(96% 0.012 35));
    --music-accent: light-dark(oklch(58% 0.2 14), oklch(76% 0.17 25));

    --font-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --shell: 1180px;
    --radius-xl: 38px;
    --radius-l: 26px;
    --radius-m: 16px;
    --shadow-soft: 0 24px 80px oklch(15% 0.04 260 / 0.13);
    --shadow-deep: 0 35px 90px oklch(0% 0 0 / 0.45);
  }

  :root[data-theme='light'] { color-scheme: light; }
  :root[data-theme='dark'] { color-scheme: dark; }
}

@layer base {
  body {
    width: 100%;
    min-width: 320px;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }

  h1, h2, h3, .brand {
    font-family: var(--font-display);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  h1 { font-size: clamp(3.4rem, 6.4vw, 6rem); font-weight: 700; }
  h2 { font-size: clamp(2.7rem, 5.8vw, 5.5rem); font-weight: 650; }
  h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
  a { color: inherit; }

  [id] { scroll-margin-block-start: 88px; }

  :focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
    border-radius: 6px;
  }

  ::selection { background: var(--brand); color: var(--brand-ink); }
}

@layer layout {
  .page-shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

  .story {
    position: relative;
    margin-inline: max(12px, calc((100vw - 1440px) / 2));
    border-radius: var(--radius-xl);
    overflow: hidden;
  }

  .story-inner {
    min-height: 870px;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(48px, 7vw, 110px);
    align-items: center;
    padding-block: clamp(84px, 10vw, 140px);
  }

  .story-copy { display: block; position: relative; z-index: 2; }
  .story-copy h2 { max-width: 10ch; margin-block: 18px 28px; }
  .story-lead { max-width: 58ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); }

  .music-section { padding-block: 0 120px; }
  .android-section { padding-block: 150px; }
  .studio-section { padding-block: 140px; }
}

@layer components {
  .skip-link {
    position: fixed;
    inset: 12px auto auto 12px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--page);
    translate: 0 -180%;
    text-decoration: none;
  }
  .skip-link:focus { translate: 0; }

  ifz-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in oklch, var(--page) 78%, transparent);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px) saturate(135%);
    transition: border-color 180ms ease, background 180ms ease;

    &[data-scrolled] { border-color: var(--line); }
  }

  .nav-shell {
    width: min(var(--shell), calc(100% - 48px));
    min-height: 72px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .brand {
    margin-inline-end: auto;
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
  }
  .brand span { color: var(--brand); }

  .nav-liens { display: flex; align-items: center; gap: 28px; }
  .nav-liens a {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
  }
  .nav-liens a::after {
    content: '';
    position: absolute;
    inset: auto 0 -8px;
    height: 2px;
    background: var(--brand);
    scale: 0 1;
    transform-origin: left;
    transition: scale 180ms ease;
  }
  .nav-liens a:hover, .nav-liens a[aria-current='true'] { color: var(--ink); }
  .nav-liens a:hover::after, .nav-liens a[aria-current='true']::after { scale: 1 1; }

  .nav-actions { display: flex; gap: 10px; }
  .theme-toggle, .menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
  }
  .theme-toggle:hover, .menu-toggle:hover { border-color: var(--brand); }
  .theme-toggle .ico-soleil { display: none; }
  .menu-toggle { display: none; }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-toggle .ico-lune { display: none; }
    :root:not([data-theme]) .theme-toggle .ico-soleil { display: block; }
  }
  :root[data-theme='dark'] .theme-toggle .ico-lune { display: none; }
  :root[data-theme='dark'] .theme-toggle .ico-soleil { display: block; }
  :root[data-theme='light'] .theme-toggle .ico-lune { display: block; }
  :root[data-theme='light'] .theme-toggle .ico-soleil { display: none; }

  #menu-mobile {
    position: fixed;
    inset: 80px 18px auto 18px;
    width: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--surface-strong);
    color: var(--ink);
    box-shadow: var(--shadow-deep);
  }
  #menu-mobile a { display: block; padding: 14px 16px; border-radius: 12px; font-weight: 750; text-decoration: none; }
  #menu-mobile a:hover { background: color-mix(in oklch, var(--ink) 7%, transparent); }

  .button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: translate 160ms ease, box-shadow 160ms ease, background 160ms ease;
  }
  .button:hover { translate: 0 -2px; }
  .button-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 12px 32px color-mix(in oklch, var(--brand) 30%, transparent); }
  .button-quiet { border: 1px solid var(--line); background: color-mix(in oklch, var(--surface) 72%, transparent); }
  .button-light { background: var(--apero-accent); color: var(--brand-ink); }
  .button-blue { background: var(--meteo-blue); color: light-dark(white, oklch(18% 0.04 245)); }
  .button-podcast { background: white; color: oklch(18% 0.04 292); }
  .button-dark { background: oklch(18% 0.03 258); color: white; }
  .text-link { font-weight: 800; text-underline-offset: 5px; }

  .eyebrow, .section-number {
    font-family: var(--font-mono);
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .hero {
    min-height: calc(100svh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 60px;
    padding-block: clamp(66px, 9vh, 110px) 32px;
  }

  .hero-copy { position: relative; z-index: 3; min-width: 0; }
  .hero-copy h1 { max-width: 9ch; margin-block: 22px 30px; }
  .hero-copy h1 em { display: block; color: var(--brand); font-style: normal; }
  .hero-intro { max-width: 610px; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.2rem); }
  .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); }
  .eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px color-mix(in oklch, var(--brand) 16%, transparent); }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }
  .hero-values { display: flex; flex-wrap: wrap; gap: 20px; margin-block-start: 32px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
  .hero-values li { display: flex; align-items: center; gap: 8px; }
  .hero-values li::before { content: '✓'; color: var(--brand); }

  .hero-stage { position: relative; min-height: 620px; isolation: isolate; }
  .stage-halo {
    position: absolute;
    inset: 10% 2% 3% 2%;
    z-index: -1;
    border-radius: 50%;
    background:
      radial-gradient(circle at 34% 46%, color-mix(in oklch, var(--meteo-blue) 34%, transparent), transparent 48%),
      radial-gradient(circle at 72% 35%, color-mix(in oklch, var(--podcast-pink) 27%, transparent), transparent 45%),
      radial-gradient(circle at 62% 70%, color-mix(in oklch, var(--brand) 35%, transparent), transparent 48%);
    filter: blur(38px);
    opacity: 0.9;
  }

  .stage-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid color-mix(in oklch, white 18%, transparent);
    border-radius: 24px;
    background: oklch(16% 0.025 265);
    color: white;
    box-shadow: var(--shadow-deep);
  }
  .stage-card-head { height: 70px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
  .stage-card-head img { border-radius: 10px; }
  .stage-card-head strong, .stage-card-head small { display: block; }
  .stage-card-head strong { font-family: var(--font-display); font-size: 1.05rem; }
  .stage-card-head small { color: oklch(78% 0.02 255); font-size: 0.66rem; }
  .stage-screen { width: 100%; height: auto; object-fit: contain; }

  .stage-apero { width: 390px; height: auto; inset: 150px auto auto 0; rotate: -5deg; }
  .stage-meteo { width: 235px; height: auto; inset: 20px 2% auto auto; rotate: 7deg; }
  .stage-won {
    width: 310px;
    min-height: 140px;
    inset: auto 2% 12px auto;
    display: grid;
    grid-template-columns: 74px 1fr;
    grid-template-rows: auto 36px;
    gap: 10px 16px;
    align-items: center;
    padding: 18px;
    rotate: -2deg;
    background: linear-gradient(145deg, oklch(19% 0.07 302), oklch(12% 0.03 290));
  }
  .stage-won img { width: 74px; grid-row: 1 / 3; border-radius: 17px; }
  .stage-won small, .stage-won strong { display: block; }
  .stage-won small { color: var(--podcast-orange); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; }
  .stage-won strong { font-family: var(--font-display); font-size: 1.28rem; }
  .mini-wave { display: flex; align-items: center; gap: 4px; }
  .mini-wave i { width: 3px; height: 9px; border-radius: 5px; background: linear-gradient(var(--podcast-pink), var(--podcast-orange)); }
  .mini-wave i:nth-child(2n) { height: 24px; }
  .mini-wave i:nth-child(3n) { height: 15px; }

  .hero-index { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); color: var(--muted); }
  .hero-index span { padding-block: 22px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; }

  .story-apero { background: var(--apero-bg); color: var(--apero-ink); }
  .story-apero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 18%, oklch(64% 0.17 61 / 0.22), transparent 34%), linear-gradient(125deg, transparent 0 56%, oklch(12% 0.03 50 / 0.25));
  }
  .story-apero .section-number { color: var(--apero-accent); }
  .story-apero .story-lead { color: oklch(84% 0.025 75); }
  .story-apero .text-link { color: var(--apero-ink); }

  .story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-block-start: 34px; }
  .fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-block-start: 52px; }
  .fact-row li { padding-block-start: 16px; border-top: 1px solid oklch(90% 0.02 75 / 0.2); }
  .fact-row strong, .fact-row span { display: block; }
  .fact-row strong { font-family: var(--font-display); font-size: 2.2rem; }
  .fact-row span { color: oklch(78% 0.025 75); font-size: 0.72rem; }

  .apero-showcase, .meteo-showcase { position: relative; min-height: 650px; }
  .screen { overflow: hidden; background: oklch(14% 0.02 260); box-shadow: var(--shadow-deep); }
  .screen img { width: 100%; height: 100%; object-fit: contain; }
  .screen-tv { position: absolute; width: min(670px, 100%); height: auto; inset: 8% 0 auto auto; border: 10px solid oklch(8% 0.01 260); border-radius: 20px; rotate: 2deg; }
  .browser-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: oklch(20% 0.018 260); color: oklch(73% 0.02 255); }
  .browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: oklch(48% 0.02 260); }
  .browser-bar span { margin-inline-start: 8px; font-family: var(--font-mono); font-size: 0.56rem; }
  .screen-tv img { height: auto; }
  .screen-phone { position: absolute; width: 210px; height: auto; aspect-ratio: 640 / 1385; border: 8px solid oklch(8% 0.01 260); border-radius: 34px; }
  .screen-phone::before { content: ''; position: absolute; z-index: 2; inset: 7px 50% auto auto; width: 70px; height: 18px; translate: 50% 0; border-radius: 20px; background: oklch(7% 0.01 260); }
  .screen-phone-apero { inset: auto auto 0 0; rotate: -7deg; }

  .story-meteo { margin-block-start: 24px; background: var(--meteo-bg); color: var(--meteo-ink); }
  .story-meteo::before {
    content: '';
    position: absolute;
    width: 720px;
    height: 720px;
    inset: -280px -120px auto auto;
    border-radius: 50%;
    background: radial-gradient(circle, light-dark(oklch(98% 0.055 95), oklch(70% 0.11 230 / 0.22)), transparent 66%);
  }
  .story-meteo .section-number { color: var(--meteo-blue); }
  .story-meteo .story-lead { color: color-mix(in oklch, var(--meteo-ink) 72%, transparent); }
  .meteo-source { margin-block-start: 50px; padding-inline-start: 18px; border-left: 3px solid var(--meteo-blue); }
  .meteo-source span, .meteo-source strong { display: block; }
  .meteo-source span { color: var(--meteo-blue); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; }
  .meteo-source strong { margin-block-start: 5px; }
  .screen-desktop { position: absolute; width: min(660px, 100%); height: auto; inset: 9% 0 auto auto; border: 8px solid color-mix(in oklch, var(--meteo-ink) 80%, black); border-radius: 18px; rotate: -1.5deg; }
  .screen-desktop img { height: auto; }
  .screen-phone-meteo { inset: auto auto 0 2%; rotate: 6deg; }
  .weather-orbit { position: absolute; z-index: 4; display: grid; place-items: center; border: 1px solid color-mix(in oklch, var(--meteo-blue) 28%, transparent); border-radius: 50%; background: color-mix(in oklch, var(--meteo-bg) 75%, transparent); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); font-family: var(--font-display); font-weight: 700; }
  .weather-orbit-one { width: 92px; height: 92px; inset: 0 8% auto auto; font-size: 1.6rem; }
  .weather-orbit-two { width: 78px; height: 78px; inset: auto 4% 7% auto; font-size: 1.35rem; }
  .weather-orbit small { font-family: var(--font-body); font-size: 0.52rem; }

  .story-podcast { margin-block-start: 24px; background: var(--podcast-bg); color: var(--podcast-ink); }
  .podcast-glow { position: absolute; inset: 0; background: radial-gradient(circle at 22% 48%, oklch(58% 0.25 305 / 0.28), transparent 31%), radial-gradient(circle at 78% 26%, oklch(62% 0.22 347 / 0.16), transparent 25%); }
  .podcast-inner { position: relative; min-height: 720px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; align-items: center; padding-block: 100px; }
  .podcast-art { position: relative; min-height: 470px; display: grid; place-items: center; }
  .podcast-art img { position: relative; z-index: 2; width: 310px; border-radius: 34px; box-shadow: 0 28px 80px oklch(0% 0 0 / 0.55), 0 0 70px oklch(65% 0.23 310 / 0.25); }
  .wave-field { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; opacity: 0.68; }
  .wave-field i { width: 5px; height: 90px; border-radius: 999px; background: linear-gradient(var(--podcast-pink), var(--podcast-violet), var(--podcast-orange)); }
  .wave-field i:nth-child(2n) { height: 190px; }
  .wave-field i:nth-child(3n) { height: 300px; }
  .wave-field i:nth-child(5n) { height: 390px; }
  .podcast-copy { display: block; position: relative; z-index: 2; }
  .podcast-copy .section-number { color: var(--podcast-orange); }
  .podcast-copy h2 { max-width: 9ch; margin-block: 18px 20px; }
  .podcast-name { margin-block-end: 20px; color: var(--podcast-pink); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
  .podcast-copy .story-lead { color: oklch(79% 0.025 300); }
  .podcast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: 34px; }
  .play-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--podcast-violet), var(--podcast-pink)); color: white; font-size: 0.62rem; }
  .chip-link { min-height: 44px; display: grid; place-items: center; padding-inline: 16px; border: 1px solid oklch(90% 0.02 300 / 0.2); border-radius: 999px; color: oklch(86% 0.02 300); font-size: 0.78rem; font-weight: 800; text-decoration: none; }

  .music-inner {
    position: relative;
    min-height: 720px;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(52px, 7vw, 100px);
    align-items: center;
    padding: clamp(64px, 8vw, 110px);
    border: 1px solid color-mix(in oklch, var(--music-ink) 12%, transparent);
    border-radius: var(--radius-xl);
    background: var(--music-bg);
    color: var(--music-ink);
    overflow: hidden;
  }
  .music-inner::before {
    content: '';
    position: absolute;
    width: 540px;
    aspect-ratio: 1;
    inset: -260px -130px auto auto;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in oklch, var(--music-accent) 28%, transparent), transparent 68%);
    filter: blur(12px);
  }
  .music-copy { position: relative; z-index: 2; display: block; }
  .music-copy .section-number { color: var(--music-accent); }
  .music-copy h2 { max-width: 9ch; margin-block: 18px 28px; }
  .music-copy .story-lead { color: color-mix(in oklch, var(--music-ink) 72%, transparent); }
  .music-status { margin-block-start: 38px; display: flex; align-items: center; gap: 14px; }
  .music-status > span { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--music-accent); box-shadow: 0 0 0 7px color-mix(in oklch, var(--music-accent) 15%, transparent); }
  .music-status small, .music-status strong { display: block; }
  .music-status small { color: color-mix(in oklch, var(--music-ink) 52%, transparent); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; }
  .music-status strong { margin-block-start: 3px; font-family: var(--font-display); }

  .music-catalog { position: relative; z-index: 2; min-width: 0; display: grid; grid-template-columns: 230px 1fr; align-items: center; }
  .vinyl {
    position: relative;
    z-index: 1;
    width: 310px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
      repeating-radial-gradient(circle, transparent 0 8px, oklch(35% 0.02 330 / 0.42) 9px 10px),
      conic-gradient(from 25deg, oklch(9% 0.02 330), oklch(22% 0.04 335), oklch(8% 0.015 310), oklch(25% 0.035 355), oklch(9% 0.02 330));
    box-shadow: 0 30px 70px oklch(10% 0.04 330 / 0.35);
    rotate: -6deg;
  }
  .vinyl::before { content: ''; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--music-bg) 0 7%, var(--music-accent) 8% 100%); box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.2); }
  .vinyl span { position: relative; z-index: 2; color: oklch(98% 0.01 30); font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.05em; }
  .tracklist { position: relative; z-index: 2; min-width: 0; padding: 28px; border: 1px solid color-mix(in oklch, var(--music-ink) 13%, transparent); border-radius: 22px; background: color-mix(in oklch, var(--music-surface) 88%, transparent); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
  .tracklist-head { padding-block-end: 20px; border-bottom: 1px solid color-mix(in oklch, var(--music-ink) 12%, transparent); }
  .tracklist-head span, .tracklist-head strong { display: block; }
  .tracklist-head span { color: var(--music-accent); font: 0.62rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
  .tracklist-head strong { margin-block-start: 5px; font-family: var(--font-display); font-size: 1.55rem; }
  .tracklist li { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid color-mix(in oklch, var(--music-ink) 9%, transparent); font-weight: 750; }
  .tracklist li small { flex: none; color: color-mix(in oklch, var(--music-ink) 42%, transparent); font-family: var(--font-mono); }
  .tracklist > p { margin-block-start: 18px; color: color-mix(in oklch, var(--music-ink) 52%, transparent); font-size: 0.68rem; }

  .section-heading { display: block; max-width: 760px; margin-block-end: 54px; }
  .section-heading .section-number { color: var(--brand); }
  .section-heading h2 { margin-block: 15px 20px; }
  .section-heading > p:last-child { color: var(--muted); font-size: 1.12rem; }
  .android-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .android-card { overflow: hidden; border-radius: var(--radius-l); background: var(--surface-strong); box-shadow: var(--shadow-soft); }
  .android-featured { grid-column: 1 / -1; min-height: 610px; display: grid; grid-template-columns: 0.9fr 1.1fr; background: linear-gradient(135deg, oklch(94% 0.04 88), oklch(86% 0.06 81)); color: oklch(20% 0.035 255); }
  :root[data-theme='dark'] .android-featured { background: linear-gradient(135deg, oklch(22% 0.035 255), oklch(27% 0.055 78)); color: oklch(96% 0.01 255); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme]) .android-featured { background: linear-gradient(135deg, oklch(22% 0.035 255), oklch(27% 0.055 78)); color: oklch(96% 0.01 255); } }
  .android-copy { align-self: center; padding: clamp(40px, 6vw, 78px); }
  .app-title { display: flex; align-items: center; gap: 16px; }
  .app-title img { flex: none; border-radius: 15px; }
  .app-title span { color: color-mix(in oklch, currentColor 60%, transparent); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; }
  .app-title h3 { margin-block-start: 4px; }
  .android-copy > p { max-width: 44ch; margin-block: 28px; color: color-mix(in oklch, currentColor 72%, transparent); font-size: 1.08rem; }
  .rating { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 12px; }
  .rating strong { grid-row: 1 / 3; font-family: var(--font-display); font-size: 3.2rem; }
  .rating span { color: oklch(66% 0.16 65); letter-spacing: 0.08em; }
  .rating small { color: color-mix(in oklch, currentColor 62%, transparent); }
  .card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-block-start: 36px; }
  .android-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding: 58px 40px 0; overflow: hidden; }
  .android-visual::before { content: ''; position: absolute; inset: 18% 5% -20%; border-radius: 50% 50% 0 0; background: oklch(74% 0.13 76 / 0.32); filter: blur(18px); }
  .android-visual img { position: relative; width: 210px; border-radius: 26px 26px 0 0; border: 7px solid oklch(12% 0.02 260); box-shadow: var(--shadow-deep); }
  .android-visual img:last-child { translate: 0 70px; }

  .android-small { position: relative; min-height: 560px; padding: 28px 28px 0; display: flex; flex-direction: column; }
  .android-small > p { min-height: 78px; margin-block: 22px; color: var(--muted); }
  .small-app-screen { align-self: center; width: min(230px, 84%); height: 320px; object-fit: contain; object-position: top; border: 1px solid var(--line); border-radius: 22px 22px 0 0; background: color-mix(in oklch, var(--surface) 72%, transparent); }
  .card-link { min-height: 58px; margin-block-start: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-weight: 800; text-decoration: none; }
  .card-link span { font-size: 1.2rem; }
  .android-shop { background: light-dark(oklch(95% 0.035 150), oklch(21% 0.035 155)); }
  .android-scan { background: oklch(13% 0.026 260); color: oklch(94% 0.01 255); }
  .android-scan p { color: oklch(72% 0.02 255); }
  .android-scan .card-link { border-color: oklch(34% 0.025 260); }
  .android-scan .small-app-screen { border-color: oklch(34% 0.025 260); box-shadow: 0 18px 48px oklch(4% 0.02 260 / 0.42); }

  .studio-section { margin-inline: max(12px, calc((100vw - 1440px) / 2)); border-radius: var(--radius-xl); background: oklch(13% 0.022 260); color: oklch(94% 0.012 255); }
  .studio-inner { display: grid; grid-template-columns: 1fr 0.9fr; gap: 90px; align-items: center; }
  .studio-copy { display: block; }
  .studio-copy .section-number { color: var(--brand); }
  .studio-copy h2 { max-width: 10ch; margin-block: 18px 26px; }
  .studio-copy > p { max-width: 60ch; color: oklch(74% 0.02 255); }
  .studio-principles { margin-block-start: 44px; border-top: 1px solid oklch(35% 0.02 260); }
  .studio-principles li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid oklch(35% 0.02 260); }
  .studio-principles span { color: var(--brand); font-family: var(--font-mono); font-size: 0.68rem; }
  .studio-principles strong, .studio-principles small { display: block; }
  .studio-principles small { margin-block-start: 4px; color: oklch(68% 0.02 255); }

  .code-window { overflow: hidden; border: 1px solid oklch(36% 0.028 260); border-radius: 22px; background: oklch(10% 0.018 260); box-shadow: var(--shadow-deep); rotate: 1deg; }
  .code-title { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding-inline: 16px; border-bottom: 1px solid oklch(32% 0.02 260); color: oklch(64% 0.02 255); }
  .code-title > span { display: flex; gap: 6px; }
  .code-title i { width: 8px; height: 8px; display: block; border-radius: 50%; background: oklch(42% 0.02 260); }
  .code-title small { font-family: var(--font-mono); font-size: 0.6rem; }
  .code-window pre { padding: clamp(24px, 4vw, 40px); overflow-x: auto; color: oklch(86% 0.02 255); font: 0.82rem/1.9 var(--font-mono); }
  .code-comment { color: oklch(58% 0.04 150); }
  .code-selector { color: oklch(74% 0.17 310); }
  .code-prop { color: oklch(72% 0.13 240); }
  .code-value { color: oklch(79% 0.15 78); }
  .code-status { padding: 13px 18px; border-top: 1px solid oklch(32% 0.02 260); color: oklch(63% 0.02 255); font: 0.63rem var(--font-mono); }
  .code-status span { width: 7px; height: 7px; display: inline-block; margin-inline-end: 8px; border-radius: 50%; background: oklch(74% 0.18 150); box-shadow: 0 0 12px oklch(74% 0.18 150); }

  .contact-section { min-height: 470px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 100px; align-items: center; }
  .contact-section h2 { max-width: 10ch; margin-block-start: 16px; }
  .contact-section > div:last-child p { max-width: 50ch; margin-block-end: 30px; color: var(--muted); font-size: 1.08rem; }
  .contact-section .section-number { color: var(--brand); }

  footer { padding-block: 40px; border-top: 1px solid var(--line); }
  .footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; color: var(--muted); font-size: 0.78rem; }
  .footer-inner nav { display: flex; justify-content: flex-end; gap: 22px; }
  .footer-inner nav a { text-decoration: none; }
  .footer-inner small { grid-column: 3; }
}

@layer states {
  html[data-reveal] [data-reveler] {
    opacity: 0;
    translate: 0 22px;
    transition: opacity 600ms ease, translate 600ms ease;
  }
  html[data-reveal] [data-reveler][data-visible] { opacity: 1; translate: 0; }

  @keyframes hover-card {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
  }
  .stage-apero { animation: hover-card 7s ease-in-out infinite; }
  .stage-meteo { animation: hover-card 8.5s ease-in-out -2s infinite; }
  .stage-won { animation: hover-card 6.5s ease-in-out -1s infinite; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    html[data-reveal] [data-reveler] { opacity: 1; translate: 0; }
  }
}

@layer responsive {
  @media (width <= 1040px) {
    .hero { grid-template-columns: 1fr 1fr; gap: 24px; }
    .stage-apero { left: 0; }
    .stage-meteo { right: 0; }
    .story-inner { grid-template-columns: 1fr; gap: 50px; }
    .story-copy h2 { max-width: 13ch; }
    .apero-showcase, .meteo-showcase { width: min(720px, 100%); margin-inline: auto; }
    .podcast-inner { gap: 52px; }
    .music-inner { grid-template-columns: 1fr; }
    .music-copy h2 { max-width: 12ch; }
    .music-catalog { width: min(760px, 100%); margin-inline: auto; }
    .android-grid { grid-template-columns: repeat(2, 1fr); }
    .android-small:last-child { grid-column: 1 / -1; min-height: 440px; }
    .studio-inner { gap: 48px; }
  }

  @media (width <= 800px) {
    .page-shell, .nav-shell { width: min(100% - 32px, var(--shell)); }
    .nav-liens { display: none; }
    .menu-toggle { display: grid; }
    .hero {
      min-height: auto;
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      padding-block-start: 64px;
    }
    .hero-copy h1 { max-width: 11ch; }
    .hero-stage { min-height: 600px; overflow: clip; border-radius: 28px; }
    .hero-index { grid-template-columns: repeat(2, 1fr); }
    .hero-index span { border-bottom: 1px solid var(--line); }
    .hero-index span:last-child { grid-column: 1 / -1; }
    .story { border-radius: 28px; }
    .story-inner { min-height: auto; padding-block: 84px; }
    .podcast-inner { grid-template-columns: 1fr; gap: 36px; }
    .podcast-art { order: 2; min-height: 410px; }
    .podcast-copy h2 { max-width: 12ch; }
    .music-section { padding-block: 0 80px; }
    .music-inner { padding: 64px 48px; }
    .android-section { padding-block: 100px; }
    .android-featured { grid-template-columns: 1fr; }
    .android-visual { min-height: 470px; }
    .studio-inner { grid-template-columns: 1fr; }
    .contact-section { grid-template-columns: 1fr; gap: 34px; padding-block: 100px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-inner nav { justify-content: flex-start; flex-wrap: wrap; }
    .footer-inner small { grid-column: auto; }
  }

  @media (width <= 560px) {
    h1 { font-size: clamp(2.85rem, 12.8vw, 3.7rem); overflow-wrap: break-word; }
    h2 { font-size: clamp(2.45rem, 12.5vw, 3.7rem); }
    .nav-shell { min-height: 64px; }
    .hero { padding-block-start: 52px; }
    .hero-copy h1 { margin-block: 18px 24px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .hero-values { display: grid; gap: 8px; }
    .hero-stage { min-height: 510px; margin-inline: 0; }
    .stage-apero { width: 245px; height: auto; left: 0; top: 92px; }
    .stage-meteo { width: 168px; height: auto; right: 0; top: 12px; }
    .stage-card-head { height: 58px; padding: 9px 11px; }
    .stage-card-head img { width: 34px; height: 34px; }
    .stage-card-head small { display: none; }
    .stage-won { width: 235px; min-height: 106px; right: 2px; bottom: 0; grid-template-columns: 54px 1fr; grid-template-rows: auto 28px; padding: 12px; }
    .stage-won img { width: 54px; border-radius: 12px; }
    .stage-won strong { font-size: 1.02rem; }
    .hero-index { margin-inline: 0; }
    .hero-index span { font-size: 0.57rem; padding: 16px 8px; }
    .story { margin-inline: 8px; border-radius: 25px; }
    .story-inner { width: calc(100% - 40px); padding-block: 66px; }
    .fact-row { gap: 10px; }
    .fact-row strong { font-size: 1.65rem; }
    .apero-showcase, .meteo-showcase { min-height: 480px; }
    .screen-tv, .screen-desktop { width: 94%; height: auto; right: 0; }
    .screen-phone { width: 150px; height: auto; border-width: 6px; border-radius: 26px; }
    .screen-phone::before { width: 48px; height: 13px; }
    .weather-orbit-one { width: 66px; height: 66px; right: 1%; font-size: 1.1rem; }
    .weather-orbit-two { display: none; }
    .podcast-inner { width: calc(100% - 40px); padding-block: 72px; }
    .podcast-art { min-height: 330px; }
    .podcast-art img { width: 215px; }
    .wave-field i { width: 4px; height: 60px; }
    .wave-field i:nth-child(2n) { height: 125px; }
    .wave-field i:nth-child(3n) { height: 200px; }
    .wave-field i:nth-child(5n) { height: 280px; }
    .podcast-actions { align-items: stretch; flex-direction: column; }
    .music-section { padding-block: 0 64px; }
    .music-inner { width: calc(100% - 16px); min-height: auto; padding: 56px 20px; border-radius: 25px; }
    .music-catalog { grid-template-columns: 1fr; }
    .vinyl { width: 210px; margin-block-end: -54px; justify-self: center; }
    .tracklist { width: 100%; padding: 22px 18px; }
    .tracklist li { min-height: 54px; font-size: 0.86rem; }
    .android-grid { grid-template-columns: 1fr; }
    .android-featured { min-height: auto; }
    .android-copy { padding: 34px 24px; }
    .rating strong { font-size: 2.6rem; }
    .android-visual { min-height: 380px; padding-inline: 18px; }
    .android-visual img { width: 164px; }
    .android-small, .android-small:last-child { min-height: 540px; grid-column: auto; }
    .studio-section { margin-inline: 8px; border-radius: 25px; padding-block: 76px; }
    .studio-inner { width: calc(100% - 40px); }
    .code-window pre { font-size: 0.66rem; }
    .contact-section { width: calc(100% - 40px); }
  }
}
