  :root{
    --bg-void:      #07090c;
    --bg-panel:     #10151c;
    --bg-panel-2:   #161d26;
    --ink:          #e8ecf0;
    --ink-dim:      #93a0ac;
    --cyan:         #6fd8ee;
    --cyan-soft:    #6fd8ee66;
    --portal-blue:  #6fb8ea;
    --portal-soft:  #6fb8ea55;
    --amber:        #e3a04a;
    --line:         #26313d;
  }

  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    background:var(--bg-void);
    color:var(--ink);
    font-family:'Inter', sans-serif;
    -webkit-font-smoothing:antialiased;
  }

  ::selection{ background:var(--cyan-soft); color:#07090c; }

  a{ color:inherit; }

  .eyebrow{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:var(--amber);
  }

  /* ---------- HERO ---------- */
  .hero{
    position:relative;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:80px 24px 60px;
    overflow:hidden;
    isolation:isolate;
  }
  .hero::before{
    content:"";
    position:absolute; inset:0;
    background:
      linear-gradient(180deg, rgba(7,9,12,.35) 0%, rgba(7,9,12,.55) 45%, var(--bg-void) 96%),
      url('../images/arriere_plan.jpg') center 30% / cover no-repeat;
    z-index:-2;
  }
  .hero::after{
    content:"";
    position:absolute; inset:0;
    background:radial-gradient(ellipse at 50% 38%, rgba(111,216,238,.10), transparent 60%);
    z-index:-1;
  }

  .rain{
    position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.35;
  }
  .rain span{
    position:absolute; top:-10%;
    width:1px; height:60px;
    background:linear-gradient(180deg, transparent, rgba(200,225,235,.55), transparent);
    animation:fall linear infinite;
  }
  @keyframes fall{
    to{ transform:translateY(120vh); }
  }

  .hero-logo{
    max-width:min(640px, 88vw);
    width:100%;
    filter:drop-shadow(0 0 26px rgba(111,216,238,.35));
    margin-bottom:6px;
  }

  .hero-tagline{
    font-family:'Space Grotesk', sans-serif;
    font-weight:500;
    font-size:clamp(15px, 2.1vw, 19px);
    color:var(--ink-dim);
    max-width:660px;
    margin:18px 0 0;
    line-height:1.55;
  }
  .hero-tagline em{
    color:var(--cyan);
    font-style:normal;
  }

  .hero-meta{
    margin-top:34px;
    display:flex;
    gap:28px;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    color:var(--ink-dim);
    letter-spacing:.06em;
  }
  .hero-meta b{ color:var(--ink); font-weight:500; }

  .scroll-cue{
    position:absolute;
    bottom:34px; left:50%;
    transform:translateX(-50%);
    width:1px; height:46px;
    background:linear-gradient(180deg, transparent, var(--cyan));
  }
  .scroll-cue::after{
    content:"";
    position:absolute; left:50%; top:0;
    width:5px; height:5px; margin-left:-2px;
    border-radius:50%;
    background:var(--cyan);
    box-shadow:0 0 8px var(--cyan);
    animation:cue 2.2s ease-in-out infinite;
  }
  @keyframes cue{
    0%{ top:0; opacity:0; }
    20%{ opacity:1; }
    90%{ opacity:1; }
    100%{ top:100%; opacity:0; }
  }

  /* ---------- SYNOPSIS ---------- */
  .synopsis{
    max-width:760px;
    margin:0 auto;
    padding:100px 24px 40px;
    text-align:center;
  }
  .synopsis h2{
    font-family:'Space Grotesk', sans-serif;
    font-size:clamp(24px, 3.4vw, 34px);
    font-weight:600;
    margin:14px 0 22px;
  }
  .synopsis p{
    color:var(--ink-dim);
    font-size:16px;
    line-height:1.85;
  }

  /* ---------- DOWNLOADS ---------- */
  .library{
    max-width:1080px;
    margin:0 auto;
    padding:60px 24px 140px;
    display:flex;
    flex-direction:column;
    gap:96px;
  }

  .work{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:56px;
    align-items:center;
  }
  .work.reverse{
    grid-template-columns:1fr 260px;
  }
  .work.reverse .cover-col{ order:2; }
  .work.reverse .text-col{ order:1; }

  /* --- 3D cover / download button --- */
  .cover-col{ perspective:1000px; }
  .cover-btn{
    position:relative;
    display:block;
    width:100%;
    border-radius:8px;
    text-decoration:none;
    transform-style:preserve-3d;
    transform:rotateY(-8deg) rotateX(2deg);
    transition:transform .45s cubic-bezier(.2,.8,.2,1);
  }
  .cover-btn:hover{
    transform:rotateY(0deg) rotateX(0deg) translateY(-6px) scale(1.03);
  }
  .cover-btn img{
    display:block;
    width:100%;
    border-radius:8px;
    box-shadow:
      -22px 26px 46px rgba(0,0,0,.65),
      0 0 0 1px rgba(255,255,255,.06);
    transition:box-shadow .45s ease;
  }
  .cover-btn:hover img{
    box-shadow:
      -14px 40px 60px rgba(0,0,0,.7),
      0 0 46px rgba(111,216,238,.35),
      0 0 0 1px rgba(111,216,238,.4);
  }
  .cover-spine{
    position:absolute;
    left:-9px; top:3%;
    width:9px; height:94%;
    background:linear-gradient(180deg,#0c1117,#1b232c 50%,#0c1117);
    transform:rotateY(90deg) translateZ(4.5px);
    transform-origin:left center;
    border-radius:2px 0 0 2px;
  }
  .dl-tag{
    position:absolute;
    bottom:14px; left:50%;
    transform:translateX(-50%);
    display:flex; align-items:center; gap:7px;
    background:rgba(7,9,12,.82);
    backdrop-filter:blur(6px);
    border:1px solid var(--cyan-soft);
    color:var(--cyan);
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    letter-spacing:.1em;
    text-transform:uppercase;
    padding:8px 14px;
    border-radius:20px;
    white-space:nowrap;
    opacity:0;
    transition:opacity .3s ease, transform .3s ease;
  }
  .cover-btn:hover .dl-tag{
    opacity:1;
    transform:translateX(-50%) translateY(-4px);
  }
  .dl-tag svg{ width:12px; height:12px; }

  .file-weight{
    display:block;
    margin-top:14px;
    text-align:center;
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    color:var(--ink-dim);
    letter-spacing:.05em;
  }

  /* --- text column --- */
  .text-col h3{
    font-family:'Space Grotesk', sans-serif;
    font-size:clamp(22px, 2.6vw, 28px);
    font-weight:600;
    margin:10px 0 16px;
    color:var(--ink);
  }
  .text-col p{
    color:var(--ink-dim);
    font-size:15.5px;
    line-height:1.85;
    margin:0 0 14px;
  }
  .text-col p:last-of-type{ margin-bottom:24px; }

  .ghost-btn{
    display:inline-flex;
    align-items:center;
    gap:9px;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--ink);
    text-decoration:none;
    padding:11px 18px;
    border:1px solid var(--line);
    border-radius:4px;
    transition:border-color .25s ease, color .25s ease, background .25s ease;
  }
  .ghost-btn:hover{
    border-color:var(--cyan);
    color:var(--cyan);
    background:rgba(111,216,238,.06);
  }
  .ghost-btn svg{ width:13px; height:13px; }

  /* ---------- PLAYLIST ---------- */
  .playlist{
    position:relative;
    padding:100px 24px 100px;
    overflow:hidden;
    isolation:isolate;
  }
  .playlist::after{
    content:"";
    position:absolute; inset:0;
    background:radial-gradient(ellipse at 50% 22%, rgba(111,184,234,.08), transparent 62%);
    z-index:-1;
  }

  .cd-sleeve{
    position:relative;
    max-width:800px;
    margin:0 auto;
    border-radius:16px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:
      0 40px 90px rgba(0,0,0,.6),
      0 0 60px rgba(111,184,234,.12),
      0 0 0 1px rgba(255,255,255,.04) inset;
    padding:40px;
    isolation:isolate;
  }
  .cd-sleeve::before{
    content:"";
    position:absolute; inset:0;
    background:
      url('../images/cd_front.png') center 30% / cover no-repeat;
    z-index:-1;
  }
  .cd-sleeve::after{
    content:"";
    position:absolute; inset:0;
    box-shadow:inset 0 0 90px rgba(0,0,0,.55);
    pointer-events:none;
    z-index:1;
  }

  .playlist-head{
    max-width:720px;
    margin:0 auto 40px;
    text-align:center;
  }
  .playlist-head h2{
    font-family:'Space Grotesk', sans-serif;
    font-size:clamp(24px, 3.4vw, 34px);
    font-weight:600;
    margin:0px 0 0px;
  }
  .playlist-head p{
    color:var(--ink-dim);
    font-size:16px;
    line-height:1.85;
  }

  .ost-block{
    max-width:760px;
    margin:0 auto 24px;
  }
  .ost-label{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:var(--amber);
    margin:0 0 10px;
    padding-left:4px;
  }
  .ost-track{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:7px 18px;
    background:linear-gradient(135deg, rgba(227,160,74,.09), rgba(16,21,28,.78));
    backdrop-filter:blur(8px);
    border:1px solid var(--amber);
    border-radius:8px;
    transition:border-color .25s ease, background .25s ease;
    flex-wrap:wrap;
  }
  .ost-track:hover{
    background:linear-gradient(135deg, rgba(227,160,74,.16), rgba(22,29,38,.85));
  }
  .ost-name{
    font-family:'Space Grotesk', sans-serif;
    font-size:15px;
    font-weight:500;
    color:var(--ink);
  }
  .ost-actions{
    display:flex;
    align-items:center;
    gap:14px;
    flex-shrink:0;
  }
  .ost-actions audio, .track-actions audio{ display:none; }

  .player{
    display:flex;
    align-items:center;
    gap:10px;
    width:220px;
    flex-shrink:0;
  }
  .play-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:26px; height:26px;
    border:none;
    border-radius:50%;
    background:var(--portal-blue);
    color:var(--bg-void);
    cursor:pointer;
    flex-shrink:0;
    padding:0;
    transition:transform .15s ease, opacity .15s ease;
  }
  .play-btn:hover{ opacity:.85; }
  .play-btn:active{ transform:scale(.92); }
  .play-btn svg{ width:12px; height:12px; }
  .play-btn .icon-pause{ display:none; }
  .player.is-playing .play-btn .icon-play{ display:none; }
  .player.is-playing .play-btn .icon-pause{ display:block; }

  .player-bar{
    position:relative;
    flex:1;
    height:3px;
    background:rgba(232,236,240,.18);
    border-radius:2px;
    cursor:pointer;
  }
  .player-bar::before{
    content:"";
    position:absolute;
    top:-6px; left:0; right:0; bottom:-6px;
  }
  .player-progress{
    position:absolute;
    top:0; left:0; height:100%;
    width:0%;
    background:var(--portal-blue);
    border-radius:2px;
  }
  .player-time{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    color:var(--ink-dim);
    min-width:32px;
    text-align:right;
    flex-shrink:0;
  }

  .ost-track .play-btn{ background:var(--amber); }
  .ost-track .player-progress{ background:var(--amber); }
  .ost-track .track-dl{ border-color:var(--amber); }
  .ost-track .track-dl:hover{ border-color:var(--amber); color:var(--amber); background:rgba(227,160,74,.1); }

  .disc-block{
    max-width:760px;
    margin:0 auto 24px;
  }
  .disc-block:last-child{ margin-bottom:0; }
  .disc-title{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:var(--portal-blue);
    margin:0 0 10px;
    padding-left:4px;
  }

  .track-list{
    list-style:none;
    margin:0; padding:0;
    display:flex;
    flex-direction:column;
    gap:6px;
  }
  .track{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:7px 18px;
    background:linear-gradient(135deg, rgba(111,184,234,.09), rgba(16,21,28,.78));
    backdrop-filter:blur(8px);
    border:1px solid var(--portal-blue);
    border-radius:8px;
    transition:border-color .25s ease, background .25s ease;
  }
  .track:hover{
    border-color:var(--portal-blue);
    background:linear-gradient(135deg, rgba(111,184,234,.16), rgba(22,29,38,.85));
  }
  .track-left{
    display:flex;
    align-items:baseline;
    gap:14px;
    min-width:0;
  }
  .track-num{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    color:var(--portal-blue);
    flex-shrink:0;
    width:20px;
  }
  .track-name{
    font-family:'Space Grotesk', sans-serif;
    font-size:15px;
    font-weight:500;
    color:var(--ink);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .track-actions{
    display:flex;
    align-items:center;
    gap:14px;
    flex-shrink:0;
  }
  .track-dl{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px; height:28px;
    border:1px solid var(--portal-blue);
    border-radius:50%;
    color:var(--ink-dim);
    text-decoration:none;
    flex-shrink:0;
    transition:border-color .25s ease, color .25s ease, background .25s ease;
  }
  .track-dl:hover{
    border-color:var(--portal-blue);
    color:var(--portal-blue);
    background:rgba(111,184,234,.1);
  }
  .track-dl svg{ width:13px; height:13px; }

  @media (max-width:640px){
    .track{ flex-wrap:wrap; }
    .track-actions{ width:100%; justify-content:space-between; }
    .player{ width:auto; flex:1; }
    .track-name{ white-space:normal; }
    .cd-sleeve{ padding:28px 20px; border-radius:12px; }
  }

  /* ---------- VIDEO DU LIVRE ---------- */
  book-video-player{
    display:block;
    position:relative;
    padding:20px 24px 120px;
    isolation:isolate;
  }
  book-video-player .video-head{
    max-width:720px;
    margin:0 auto 36px;
    text-align:center;
  }
  book-video-player .video-head h2{
    font-family:'Space Grotesk', sans-serif;
    font-size:clamp(24px, 3.4vw, 34px);
    font-weight:600;
    margin:0 0 12px;
  }
  book-video-player .video-head p{
    color:var(--ink-dim);
    font-size:16px;
    line-height:1.85;
  }
  book-video-player .video-frame{
    position:relative;
    max-width:1200px;
    margin:0 auto;
    border-radius:16px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:
      0 40px 90px rgba(0,0,0,.6),
      0 0 60px rgba(111,184,234,.12),
      0 0 0 1px rgba(255,255,255,.04) inset;
    background:#000;
  }
  book-video-player .book-video{
    display:block;
    width:100%;
    height:auto;
    max-height:80vh;
    aspect-ratio:16/9;
    object-fit:cover;
  }
  book-video-player .mute-btn{
    position:absolute;
    right:18px; bottom:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px; height:46px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(7,9,12,.62);
    backdrop-filter:blur(8px);
    color:var(--ink);
    cursor:pointer;
    transition:background .25s ease, border-color .25s ease, transform .15s ease;
  }
  book-video-player .mute-btn:hover{
    border-color:var(--cyan);
    color:var(--cyan);
    background:rgba(111,216,238,.10);
    transform:scale(1.05);
  }
  book-video-player .mute-btn svg{ width:20px; height:20px; }
  book-video-player .mute-btn .icon-unmuted{ display:none; }
  book-video-player .mute-btn.is-unmuted .icon-muted{ display:none; }
  book-video-player .mute-btn.is-unmuted .icon-unmuted{ display:block; }

  book-video-player .video-controls{
    display:flex;
    align-items:center;
    gap:14px;
    max-width:1200px;
    margin:18px auto 0;
    padding:12px 18px;
    background:var(--bg-panel);
    border:1px solid var(--line);
    border-radius:12px;
  }
  book-video-player .video-playpause-btn, book-video-player .video-stop-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px; height:34px;
    border:none;
    border-radius:50%;
    background:var(--portal-blue);
    color:var(--bg-void);
    cursor:pointer;
    flex-shrink:0;
    padding:0;
    transition:transform .15s ease, opacity .15s ease;
  }
  book-video-player .video-stop-btn{
    background:transparent;
    border:1px solid var(--line);
    color:var(--ink-dim);
  }
  book-video-player .video-playpause-btn:hover, book-video-player .video-stop-btn:hover{ opacity:.85; }
  book-video-player .video-stop-btn:hover{ border-color:var(--cyan); color:var(--cyan); opacity:1; }
  book-video-player .video-playpause-btn svg, book-video-player .video-stop-btn svg{ width:15px; height:15px; }
  book-video-player .video-playpause-btn .icon-pause{ display:none; }
  book-video-player .video-playpause-btn.is-playing .icon-play{ display:none; }
  book-video-player .video-playpause-btn.is-playing .icon-pause{ display:block; }

  book-video-player .video-time{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    color:var(--ink-dim);
    flex-shrink:0;
    min-width:38px;
  }
  book-video-player .video-time-duration{ text-align:right; }

  book-video-player .video-progress-bar{
    position:relative;
    flex:1;
    height:5px;
    border-radius:3px;
    background:var(--line);
    cursor:pointer;
  }
  book-video-player .video-progress-fill{
    position:absolute;
    left:0; top:0; bottom:0;
    width:0%;
    border-radius:3px;
    background:var(--portal-blue);
  }
  book-video-player .video-seek{
    position:absolute;
    z-index:1;
    top:50%;
    left:0;
    width:100%;
    height:24px;
    margin:0;
    opacity:0;
    cursor:pointer;
    transform:translateY(-50%);
  }
  book-video-player .video-seek:focus-visible{
    opacity:1;
    accent-color:var(--portal-blue);
  }

  @media (max-width:640px){
    book-video-player{ padding:0 16px 80px; }
    book-video-player .video-frame{ border-radius:12px; }
    book-video-player .mute-btn{ width:40px; height:40px; right:12px; bottom:12px; }
    book-video-player .video-controls{ padding:10px 14px; gap:10px; }
    book-video-player .video-time{ min-width:32px; font-size:11px; }
  }

  /* ---------- FOOTER ---------- */
  footer{
    border-top:1px solid var(--line);
    padding:36px 24px 44px;
    text-align:center;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    color:var(--ink-dim);
    letter-spacing:.04em;
  }
  footer span{ color:var(--amber); }

  @media (max-width: 720px){
    .work, .work.reverse{
      grid-template-columns:1fr;
      gap:32px;
    }
    .work.reverse .cover-col, .work.reverse .text-col{ order:initial; }
    .cover-col{ max-width:220px; margin:0 auto; }
    .text-col{ text-align:center; }
    .cover-btn{ transform:none; }
    .cover-btn:hover{ transform:translateY(-6px) scale(1.02); }
  }
