/* Suisse Int'l : Medium pour le texte courant, Bold pour les titres */
@font-face {
    font-family: 'Suisse Intl';
    src: url('assets/fonts/SuisseIntl-Medium.woff2') format('woff2');
    font-weight: 100 600;
    font-display: swap;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('assets/fonts/SuisseIntl-Bold.woff2') format('woff2');
    font-weight: 700 900;
    font-display: swap;
}

:root {
    --bg: #050506;
    --text: #ecebe6;
    --muted: #9a998f;
    --panel: rgba(5, 5, 6, 0.62);
    --line: rgba(236, 235, 230, 0.18);
    --accent: #d9c8a0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Suisse Intl', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

/* Une seule langue visible à la fois */
html[data-lang="eu"] [lang="en"],
html[data-lang="en"] [lang="eu"] {
    display: none;
}

#feedback {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

a {
    color: inherit;
}

/* ---------- Barre du haut ---------- */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    background: linear-gradient(var(--bg), transparent);
}

.wordmark {
    font-weight: 700;
    letter-spacing: 0.3em;
    text-decoration: none;
}

.topbar nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.topbar nav a {
    text-decoration: none;
    font-size: 0.95em;
    opacity: 0.8;
}

.topbar nav a:hover {
    opacity: 1;
}

.lang-switch {
    display: flex;
    gap: 4px;
}

.lang-switch button {
    font: inherit;
    font-size: 0.8em;
    color: var(--muted);
    background: none;
    border: 1px solid transparent;
    padding: 2px 6px;
    cursor: pointer;
}

html[data-lang="eu"] [data-set-lang="eu"],
html[data-lang="en"] [data-set-lang="en"] {
    color: var(--text);
    border-color: var(--line);
}

/* ---------- Accueil ---------- */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 16px;
}

.hero-title {
    margin: 0 0 0.8em;
    line-height: 0;
}

.hero-title img {
    display: block;
    width: min(82vw, 720px);
    height: auto;
}

/* Le titre (texte puis signature) inverse l'image qui passe derrière : un négatif mouvant */
.hero-title {
    mix-blend-mode: difference;
}

/* Quand l'animation dessine elle-même la signature (en couleurs), la version simple reste en place mais invisible */
.gl-signature .hero-title img {
    opacity: 0;
}

.listen {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font: inherit;
    color: var(--text);
    background: none;
    border: 1px solid var(--line);
    padding: 10px 22px;
    cursor: pointer;
    letter-spacing: 0.1em;
}

.listen[hidden] {
    display: none;
}

.listen:hover {
    border-color: var(--text);
}

.now-playing {
    margin: 1em 0 0;
    font-size: 0.85em;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.now-playing[hidden] {
    display: none;
}

.now-playing span {
    opacity: 0.7;
}

.listen-icon {
    width: 0;
    height: 0;
    border-left: 10px solid currentColor;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.listen.playing .listen-icon {
    width: 10px;
    height: 12px;
    border: none;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

/* ---------- Rubriques ---------- */

main {
    padding-bottom: 10vh;
}

.panel {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto 12vh;
    padding: clamp(20px, 4vw, 48px);
    background: var(--panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    scroll-margin-top: 80px;
}

.panel h2 {
    margin: 0 0 0.8em;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 500;
    letter-spacing: 0.12em;
}

.panel h3 {
    margin: 2em 0 0.6em;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.bio p {
    margin: 0 0 1em;
}

.soon {
    color: var(--muted);
}

/* Dates */

.dates {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dates li {
    display: grid;
    grid-template-columns: 7.5em 1fr auto;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.dates .date {
    font-variant-numeric: tabular-nums;
}

.dates .place small {
    display: block;
    color: var(--muted);
}

.dates.past li {
    color: var(--muted);
}

@media (max-width: 560px) {
    .dates li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Disques */

.releases {
    display: grid;
    gap: 24px;
}

.release h4 {
    margin: 0 0 8px;
    font-weight: 500;
}

.release h4 small {
    color: var(--muted);
    font-weight: 300;
    margin-left: 8px;
}

.release iframe {
    display: block;
    width: 100%;
    height: 120px;
    border: 0;
}

/* Vidéo */

.video {
    margin: 0;
}

.video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.video figcaption,
.gallery-credit {
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--muted);
}

/* Galerie */

.gallery-group + .gallery-group {
    margin-top: 28px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.gallery-grid button {
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid button:hover img {
    transform: scale(1.04);
}

#lightbox {
    max-width: 94vw;
    max-height: 94vh;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
}

#lightbox::backdrop {
    background: rgba(5, 5, 6, 0.92);
}

#lightbox img {
    display: block;
    max-width: 94vw;
    max-height: 86vh;
    object-fit: contain;
}

.lightbox-credit {
    margin: 8px 0 0;
    font-size: 0.85em;
    color: var(--muted);
}

.lightbox-close {
    position: fixed;
    top: 12px;
    right: 16px;
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    color: var(--text);
    background: none;
    border: 0;
    cursor: pointer;
}

/* Liens */

.links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.links li {
    padding: 8px 0;
    border-top: 1px solid var(--line);
}

.links a {
    text-decoration: none;
}

.links a:hover {
    color: var(--accent);
}

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.8em;
    padding: 24px 0 32px;
}

@media (max-width: 560px) {
    .topbar {
        gap: 12px;
        padding: 12px 16px;
    }

    .topbar nav {
        gap: 12px;
        font-size: 0.9em;
    }
}
