/* ── Fonts ── */
.new-rocker-regular { font-family: "New Rocker", system-ui; font-weight: 400; font-style: normal; }
.outfit { font-family: "Outfit", sans-serif; font-optical-sizing: auto; font-weight: 400; font-style: normal; }
.aoboshi-one-regular { font-family: "Aoboshi One", serif; font-weight: 400; font-style: normal; }

/* ── Typographic scale ── */
:root {
    --font-display: "New Rocker", system-ui;
    --font-body:    "Outfit", sans-serif;
    --font-accent:  "Aoboshi One", serif;

    --text-xs:   11px;    /* labels secondaires : proj-year */
    --text-sm:   13px;    /* corps courant : p, li */
    --text-base: 16px;    /* titres de sections internes (h3, h4) */
    --text-lg:   24px;    /* titres de cards (h2 dans card) */
    --text-xl:   32px;    /* titres majeurs : logo, nav, .titre, track-title */

    --leading-tight:  1.15;
    --leading-normal: 1.55;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    background: #111;
    background-image: url("./img/6a28af37d5027566fc495f36e542fed5.jpg");
    background-color: transparent;
    background-size: cover;
    color: #000;
}

/* ══ HEADER ══ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 40px;
    background: black;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px; /* ajuste ici si besoin */
    width: auto;
    object-fit: contain;
    display: block;
}

nav ul { list-style: none; display: flex; gap: 60px; }

nav a {
    text-decoration: none;
    color: white;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    transition: opacity .2s;
}
nav a:hover { opacity: .7; }

/* ══ LAYOUT ══ */
.container {
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

.sidebar {
    width: 32%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* ══ CARD base ══ */
.card {
    background: rgba(200, 200, 200, 0.92);
    padding: 18px 20px;
    border: 3px solid black;
}

/* ── Titres dans les cards ── */
.card h2 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    margin-bottom: 14px;
    line-height: var(--leading-tight);
}

.card h3 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    margin-bottom: 8px;
    line-height: var(--leading-tight);
}

/* Corps courant : paragraphes et listes */
.card p,
.card li {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.card ul { margin-left: 18px; }

/* Espacement sémantique : remplace les <br><br> inline */
.card p + ul,
.card ul + p,
.card ul + br + p,         /* fallback si br subsiste */
.card p + p {
    margin-top: 10px;
}

/* ══ PROFILE CARD ══ */
.titre {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: 14px;
    line-height: var(--leading-tight);
}

/* grid profil : photo | texte */
.grid1 {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
}

/* Photo de profil : haute, cadrée sur le haut */
.pdp {
    width: 180px;
    height: 110px;
    object-fit: cover;
    object-position: top center;
    border: 3px solid black;
    display: block;
}

/* ══ CONTACT CARD ══ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Titres dans contact-grid : même échelle que le reste */
.contact-grid h2 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    margin-bottom: 6px;
}

/* ══ PROJETS ══ */
.projects h2 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Card projet */
.project-card {
    background: rgba(200, 200, 200, 0.9);
    border: 2px solid black;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
}

.project-card .thumb-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
}

.project-card .thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.project-card:hover .thumb-wrap img {
    transform: scale(1.06);
}

.project-card .proj-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(200,200,200,0.95);
}

/* Titre projet : légèrement plus visible que le corps */
.project-card .proj-info h4 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    margin: 0;
    color: #000;
    line-height: var(--leading-tight);
}

/* Année et description : même taille de base, distinction par la graisse */
.project-card .proj-info .proj-year {
    font-size: var(--text-xs);
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.project-card .proj-info p {
    font-size: var(--text-xs);
    color: #333;
    line-height: var(--leading-normal);
    margin: 0;
}

/* Lien sans style sur les project-card */
a:has(.project-card) { text-decoration: none; color: inherit; }

/* ══ PLAYER ══ */
.player {
    display: flex;
    gap: 24px;
    align-items: center;
    background: rgba(200, 200, 200, 0.92);
    padding: 14px 22px;
    border: 4px solid black;
}

.album-cover {
    width: 100px;
    height: 100px;
    border: 4px solid black;
    flex-shrink: 0;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Titre de piste : même niveau que .titre / logo */
.track-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin: 0;
    line-height: var(--leading-tight);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Artiste : corps standard, léger assombrissement */
.artist {
    font-size: var(--text-sm);
    font-weight: 600;
    margin: 4px 0 0 0;
    color: #333;
}

.like {
    font-size: 30px;
    cursor: pointer;
    font-family: var(--font-accent);
    flex-shrink: 0;
    line-height: 1;
    transition: transform .15s;
    user-select: none;
}
.like:hover { transform: scale(1.2); }

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.controls button {
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform .15s, opacity .15s;
    line-height: 1;
}

.controls button:hover { transform: scale(1.2); opacity: .7; }

#play-btn { font-size: 26px; }

/* Progress */
.progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#progress {
    flex: 1;
    appearance: none;
    height: 4px;
    background: #555;
    cursor: pointer;
    border-radius: 2px;
}

#progress::-webkit-slider-thumb {
    appearance: none;
    width: 13px;
    height: 13px;
    background: black;
    border-radius: 50%;
    cursor: pointer;
}

/* Durée : même taille que le corps courant, graisse pour lisibilité */
.duration {
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
/* ══ VISUELS GRID ══ */
.visuels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.visuel-card {
    cursor: pointer;
    position: relative;
}

.visuel-card .thumb-wrap {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}

.visuel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    opacity: 0;
    transition: opacity .25s;
}

.visuel-card:hover .visuel-overlay {
    opacity: 1;
}

/* ══ LIGHTBOX ══ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
}

.lightbox-box {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 88vw;
    max-height: 90vh;
    border: 3px solid black;
    background: rgba(200, 200, 200, 0.96);
    padding: 14px;
}

.lb-img {
    max-width: 70vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border: 2px solid black;
}

.lb-close {
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 18px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    font-family: var(--font-display);
    z-index: 1002;
    transition: transform .15s;
}

.lb-close:hover { transform: scale(1.25); }

.lb-nav {
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    line-height: 1;
    padding: 8px;
    flex-shrink: 0;
    transition: transform .15s, opacity .15s;
}

.lb-nav:hover { transform: scale(1.2); opacity: .7; }