/* ------------------ HOME - style éditorial (rail vertical + grands titres) ---------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body, p, ul, li, h1, h2, h3 { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

html {
  --rail: 44px;
  --pad: clamp(16px, 4vw, 56px);
  --spacing: 1rem;
  --backgroundcolor: #131212;
  --maincolor: #640000;
  --secondcolor: #D23A3A;
  --fontcolor: #B5AEAC;
  --detailcolor: #8A8484;
  --linecolor: #4A4848;
  --mono: 'inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
}

@font-face {
    font-family: 'inter';
    src: url(fonts/inter.woff2) format("woff2"), url(fonts/inter.ttf) format("truetype"), url(fonts/inter.otf) format("opentype");
    font-display: swap;
    font-weight: 100 900; /* un seul fichier (Inter SemiBold) : pas de faux gras */
}

body {
    background: var(--backgroundcolor);
    color: var(--fontcolor);
    font-family: 'inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

::selection { color: var(--backgroundcolor); background: var(--fontcolor); }
a { color: inherit; text-decoration: none; }

.mono {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.detail { color: var(--detailcolor); }
.listen { color: var(--fontcolor); transition: color .2s; }
.listen:hover { color: var(--secondcolor); }

/* ----------------- RAIL VERTICAL (gauche, fixe) ------------------ */

.rail {
    position: fixed;
    z-index: 50;
    top: 0; left: 0; bottom: 0;
    width: var(--rail);
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
    /* texte tourné, lu de bas en haut */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 18px 0;
    background: var(--backgroundcolor);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.rail a, .rail button { color: var(--detailcolor); transition: color .2s; }
.rail a:hover, .rail button:hover { color: var(--fontcolor); }
.rail .rail-name { color: var(--fontcolor); font-weight: 600; margin: 0; margin-inline-end: 34px; font-size: inherit; line-height: inherit; letter-spacing: inherit; }
.rail .rail-name a { color: inherit; }
.rail .rail-name a:hover { color: var(--fontcolor); }

main, .site-footer { margin-left: var(--rail); }

/* ----------------- HÉROS ------------------ */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}
.hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(.8);
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, var(--backgroundcolor) 100%);
}
.hero-caption {
    position: absolute;
    z-index: 2;
    left: var(--pad); bottom: var(--pad);
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--fontcolor);
}

/* ----------------- SORTIES ------------------ */

.release, .block {
    position: relative;
    padding: 0 var(--pad);
    min-height: 120vh;
}

.release-bigtitle, .block-bigtitle {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: right;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(48px, 11vw, 190px);
    line-height: .95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--fontcolor);
    opacity: .72;
    transition: opacity .12s linear;
    padding-top: 8px;
    pointer-events: none;
    word-break: break-word;
}

.release-body, .block-body {
    position: relative;
    z-index: 2;
    margin-top: 28vh;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.release-label { color: var(--fontcolor); }

.release-cover { display: block; overflow: hidden; background: #000; }
.release-cover img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .5s ease, filter .5s ease;
}
.release-cover:hover img { transform: scale(1.03); filter: brightness(.85); }

.release-meta { display: flex; flex-direction: column; gap: 4px; }

/* ----------------- BLOCS (à propos, support, contact) ------------------ */

.block { min-height: 90vh; }
.artist-photo { width: 100%; filter: grayscale(1); }
.releasedescription, .releasedescription p { color: var(--detailcolor); }
.releasedescription a { color: var(--fontcolor); text-decoration: underline; }
.friends li { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
#contact .block-body { gap: 8px; }
#contact a.listen { font-size: 14px; }

/* ----------------- POP-UPS ------------------ */

.hidden { display: none !important; }
.splashscreen { position: fixed; inset: 0; background: #000; opacity: .75; z-index: 98; cursor: pointer; }
.popup {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(460px, calc(100vw - 32px));
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px;
    z-index: 99;
    background: var(--backgroundcolor);
    border: 1px solid var(--secondcolor);
}
.popup h2 { color: var(--detailcolor); margin-bottom: 16px; }
.popup p { margin-bottom: 10px; }
.popup .listen { font-size: 14px; }

/* ----------------- FOOTER ------------------ */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 0.6rem;
    padding: var(--spacing) var(--pad) calc(var(--spacing) * 1.5);
    border-top: 1px solid var(--linecolor);
    color: var(--detailcolor);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.site-footer a { color: var(--detailcolor); }
.site-footer a:hover { color: var(--fontcolor); }

/* ----------------- BARRE DE DÉFILEMENT ------------------ */

* { scrollbar-color: #000000 var(--backgroundcolor); scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 8px; background: var(--backgroundcolor); }
::-webkit-scrollbar-track { background: var(--backgroundcolor); }
::-webkit-scrollbar-thumb { background: #000000; border-radius: 4px; }
::-webkit-scrollbar-button { display: none; }

/* ----------------- MOBILE : même principe que sur ordi (rail vertical + titres géants) ------------------ */

@media (max-width: 700px) {
    html { --rail: 34px; --pad: 18px; }

    /* le rail reste vertical, juste plus étroit */
    .rail {
        gap: 16px;
        padding: 14px 0;
        font-size: 10px;
        letter-spacing: .06em;
    }
    
    .hero { height: 100vh; height: 100svh; }
    .hero-caption { bottom: 28px; right: var(--pad); }

    /* titre géant collé en haut, taille fixe identique pour tous (le mot le plus long, DEADWEIGHT, tient sur un écran de 360px) */
    .release, .block { min-height: 0; padding-bottom: 90px; }
    .release-bigtitle, .block-bigtitle {
        top: 0;
        white-space: normal;
        text-align: right;
        font-size: 44px;
        line-height: .95;
        padding-top: 6px;
        margin-left: 0;
        word-break: normal;
        overflow-wrap: normal;
    }

    .release-body, .block-body { margin-top: 18px; width: 78%; }
    .mono { font-size: 11px; }
    .listen { font-size: 13px; padding: 4px 0; }
    .site-footer { padding-bottom: 28px; }
}

/* ----------------- PAGES SIMPLES (404, mentions légales) ------------------ */
main.simple-page, main.simple-page ~ .site-footer { margin-left: 0; }
.simple-page .block { min-height: 80vh; padding-top: 24px; }
.simple-page .release-body, .simple-page .block-body { margin-top: 18vh; }
.legal-body { width: min(720px, 100%) !important; gap: 10px; }
.legal-body h2 { color: var(--fontcolor); margin-top: 18px; }
.legal-body p { color: var(--detailcolor); }
.legal-body a { color: var(--fontcolor); text-decoration: underline; }
.legal-body a.listen { text-decoration: none; margin-top: 24px; }

/* ----------------- DJ SETS (vignette, la vidéo YouTube se charge au clic) ------------------ */
.block-body.djsets-body { width: min(860px, 100%); }
.yt-lite {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    cursor: pointer;
}
.yt-lite img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.yt-lite:hover img { transform: scale(1.03); filter: brightness(.8); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
    position: absolute;
    left: 50%; top: 50%;
    width: 64px; height: 64px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    background: var(--secondcolor);
    cursor: pointer;
}
.yt-play::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-35%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--backgroundcolor);
}
.yt-play:focus-visible { outline: 2px solid var(--fontcolor); outline-offset: 3px; }
.yt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
    margin-top: 36px;
}
.yt-grid li { display: flex; flex-direction: column; gap: 6px; }
.yt-grid .yt-play { width: 44px; height: 44px; }
.yt-grid .yt-play::after { border-width: 8px 0 8px 13px; }
.djsets-booking { margin-top: 28px; }
.djsets-booking a { color: var(--fontcolor); text-decoration: underline; }
@media (max-width: 700px) {
    .block-body.djsets-body { width: 100%; }
    .yt-grid { grid-template-columns: 1fr; }
}
.yt-fallback { position: absolute; left: 14px; right: 14px; bottom: 12px; color: var(--detailcolor); }