/* =========================================================
   ÉTUDE DE CAS — Pochette d'album sur mesure
   Ambiance : noir profond et or
   ========================================================= */

.page-album {
  --gold: #C9A55A;
  --gold-light: #DFD3A5;
  background: #050403;
}
.page-album .case-hero__title em,
.page-album .lp-title em,
.page-album .footer__cta em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0;
}
.page-album .case-hero__intro strong { color: var(--gold-light); font-weight: 600; }
.page-album .case-brief article,
.page-album .lever { background: #0f0c08; border-color: rgba(201, 165, 90, .14); }
.page-album .case-brief__num,
.page-album .lever__tag { color: var(--gold); }
.page-album .lever__tag { background: rgba(201, 165, 90, .12); }
.page-album .lever:hover { border-color: rgba(201, 165, 90, .5); }
.page-album .footer { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201, 165, 90, .12), transparent 70%), #0a0806; }

/* ---------- En-tête + vinyle ---------- */
.album-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(8rem, 13vw, 10rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  background: radial-gradient(ellipse 50% 60% at 78% 45%, rgba(201, 165, 90, .16), transparent 70%);
}
.album-meta { grid-template-columns: repeat(2, 1fr); max-width: 560px; }

.vinyl {
  position: relative;
  width: min(380px, 70vw);
  aspect-ratio: 1;
  margin-right: clamp(90px, 11vw, 170px);
}
.vinyl__sleeve {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 50px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 165, 90, .15);
}
.vinyl__sleeve img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.vinyl__sleeve::after { /* reflet carton */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 35%, transparent 70%, rgba(255, 255, 255, .04));
  pointer-events: none;
}
.vinyl__disc {
  position: absolute;
  top: 3%; left: 3%;
  width: 94%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255, 255, 255, .05) 31.5%, transparent 32%),
    repeating-radial-gradient(circle, #111 0 1px, #1a1a1a 1px 3px);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9);
  transform: translateX(22%);
  transition: transform 1s var(--ease);
}
.vinyl__label {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: url("../images/projets/album/cover.png") center 40% / 260% no-repeat, #1a1208;
  box-shadow: inset 0 0 0 2px rgba(201, 165, 90, .4);
}
.vinyl__label::after {
  content: "";
  position: absolute;
  inset: 46%;
  border-radius: 50%;
  background: #050403;
}
.vinyl:hover .vinyl__disc { transform: translateX(42%) rotate(200deg); }

/* ---------- Loupe ---------- */
.album-detail { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.loupe {
  position: relative;
  width: min(390px, 100%);
  border-radius: 6px;
  overflow: hidden;
  cursor: none;
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 165, 90, .15);
}
.loupe img { display: block; width: 100%; }
.loupe__lens {
  position: absolute;
  width: 170px; height: 170px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .7);
  background: url("../images/projets/album/cover.png") no-repeat #000;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.8);
  transition: opacity .25s, transform .25s var(--ease);
}
.loupe.is-active .loupe__lens { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .loupe { cursor: auto; } .loupe__lens { display: none; } }

/* ---------- Mises en situation ---------- */
.album-mocks { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.album-mocks figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.album-mocks figcaption { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }

/* Boîtier CD « cristal » : 142 × 125 mm, livret 120 × 120 mm */
.cd__case {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 142 / 125;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
  box-shadow:
    0 40px 60px -30px rgba(0, 0, 0, .95),
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 0 0 4px rgba(255, 255, 255, .04);
}
/* Charnière à gauche, avec ses nervures */
.cd__spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 9.5%;
  border-radius: 4px 0 0 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, #2b2b2b, #121212 55%, #1e1e1e);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .18);
}
/* Livret sous le plastique */
.cd__booklet {
  position: absolute;
  left: 12.5%;
  top: 2%;
  width: 84.5%;
  height: 96%;
  overflow: hidden;
  background: #020101;
}
.cd__booklet img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }
/* Reflet du plastique par-dessus tout le boîtier */
.cd__case::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 26%, transparent 27%),
    linear-gradient(118deg, transparent 72%, rgba(255, 255, 255, .05) 73%, transparent 90%);
  pointer-events: none;
}

.player__screen {
  width: min(260px, 70vw);
  padding: 1.4rem 1.2rem 1.6rem;
  border-radius: 34px;
  background: linear-gradient(180deg, #3a2a12, #0b0906 60%);
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .9), inset 0 0 0 6px #0b0f17, inset 0 0 0 7.5px #2a3242;
  color: #f3ead6;
  font-family: "Inter", sans-serif;
}
.player__top { text-align: center; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin: .4rem 0 1rem; }
.player__screen img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 42%; border-radius: 8px; box-shadow: 0 20px 30px -15px rgba(0, 0, 0, .9); }
.player__title { margin-top: 1rem; font-weight: 600; font-size: 1rem; }
.player__artist { font-size: .8rem; opacity: .65; }
.player__bar { height: 3px; margin: 1rem 0; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.player__bar span { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--gold-light); }
.player__ctrl { display: flex; justify-content: center; align-items: center; gap: 1.8rem; }
.player__ctrl i { display: block; }
.player__ctrl .play { width: 42px; height: 42px; border-radius: 50%; background: #f3ead6; position: relative; }
.player__ctrl .play::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 13px solid #0b0906; border-block: 9px solid transparent; }
.player__ctrl .prev, .player__ctrl .next { width: 0; height: 0; border-block: 7px solid transparent; }
.player__ctrl .prev { border-right: 11px solid #f3ead6; }
.player__ctrl .next { border-left: 11px solid #f3ead6; }

/* ---------- Palette : couleurs du code en or ---------- */
.page-album .swatch { background: #0f0c08; border-color: rgba(201, 165, 90, .14); }
.page-album .swatch__info code { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .album-hero, .album-detail { grid-template-columns: 1fr; }
  .vinyl { justify-self: center; margin-right: 26%; }
  .loupe { justify-self: center; }
}
@media (max-width: 640px) {
  .album-mocks { grid-template-columns: 1fr; gap: 3rem; }
  .vinyl { width: 62vw; }
}
