/* =========================================================================
   THE LAURENT B PROJECT — thème cinématographique (v3)
   Serif élégante (Cormorant Garamond) + sans propre (Inter)
   ========================================================================= */

:root {
    --bg:      #100e0c;   /* noir chaud */
    --bg-soft: #17140f;
    --panel:   #1b1712;
    --text:    #ece6da;
    --muted:   #a79d8c;
    --accent:  #c9a24b;   /* or */
    --accent-2:#e0c079;
    --line:    #2b2620;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(201,162,75,.10), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .25s ease; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; }

/* ---------- En-tête ---------- */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 32px;
    padding: 22px 40px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand a { display: inline-block; }
.brand-title { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.brand-logo { display: block; max-height: 52px; width: auto; }
.brand-sub   { display: block; font-size: .64rem; letter-spacing: .42em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }

.main-nav { display: flex; gap: 26px; flex: 1; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a { color: var(--muted); }
.main-nav a:hover { color: var(--text); }

.lang-switch { display: flex; flex-wrap: wrap; gap: 14px; font-size: .74rem; color: var(--muted); }
.lang-switch a:hover  { color: var(--text); }
.lang-switch a.active { color: var(--accent); }

/* ---------- Contenu ---------- */
.site-main { max-width: 780px; margin: 0 auto; padding: 84px 28px; }

/* ---------- Accueil ---------- */
.hero { text-align: center; padding: 20px 0 8px; }
.hero h1 { font-size: 3.1rem; margin: 0 0 10px; line-height: 1.05; }
.tagline { font-family: var(--sans); letter-spacing: .5em; text-transform: uppercase; font-size: .72rem; color: var(--accent); margin: 0 0 40px; }
.lead { font-family: var(--serif); font-size: 1.7rem; font-style: italic; color: var(--text); max-width: 620px; margin: 0 auto; line-height: 1.4; }

.latest { margin: 64px 0; text-align: center; }
.latest h2 { font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.latest-card {
    display: inline-flex; gap: 20px; align-items: center; text-align: left;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 22px 16px 16px; transition: border-color .25s ease, transform .25s ease;
}
.latest-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.latest-card img { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; }
.latest-card h3 { margin: 0 0 4px; font-size: 1.5rem; }
.latest-card:hover h3 { color: var(--accent); }

.manifesto { margin: 56px 0; font-family: var(--serif); font-size: 1.28rem; line-height: 1.75; color: var(--text); }
.manifesto p { margin: 0 0 20px; }
.manifesto .signature { text-align: center; font-family: var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--accent); font-size: .8rem; margin-top: 34px; }

.cta { text-align: center; margin: 48px 0 0; }
.btn {
    display: inline-block; border: 1px solid var(--accent); color: var(--accent);
    padding: 13px 34px; border-radius: 40px; font-family: var(--sans);
    letter-spacing: .12em; text-transform: uppercase; font-size: .78rem;
    transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.heart-line { text-align: center; color: var(--muted); margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }

/* Accueil — journal en vedette */
.home-journal { margin: 56px 0; }
.featured-reflection { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; background: var(--panel); }
.featured-reflection time { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.featured-reflection h3 { margin: 0 0 10px; font-size: 1.7rem; font-weight: normal; }
.featured-reflection a:hover h3 { color: var(--accent); }
.featured-reflection .excerpt { font-family: var(--serif); font-size: 1.15rem; color: var(--text); margin: 0 0 12px; }
.featured-reflection .read { font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.other-reflections { list-style: none; padding: 0; margin: 18px 0 0; }
.other-reflections li { border-bottom: 1px solid var(--line); }
.other-reflections a { display: block; padding: 12px 4px; font-family: var(--serif); font-size: 1.1rem; }
.other-reflections a:hover { color: var(--accent); }
.other-reflections time { font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 10px; }

/* Article de la page d'accueil (horodaté) */
.home-article { margin: 48px 0 8px; }
.home-article > header { text-align: center; margin-bottom: 26px; }
.home-article time { display: block; font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.home-article h2 { margin: 0; font-family: var(--serif); font-weight: normal; font-size: 2rem; }
.home-article-body { font-family: var(--serif); font-size: 1.28rem; line-height: 1.75; color: var(--text); }
.home-article-body p { margin: 0 0 20px; }
.home-article-body .signature { text-align: center; font-family: var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--accent); font-size: .8rem; margin-top: 34px; }
.home-more { margin: 52px 0 8px; }

/* Voix du monde en bas de Musiques */
.world-voices { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); }

/* Carte playlist automatique "Voix du Monde" */
.pl-cover-voices { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; background: linear-gradient(135deg, #2a3550, #43324f); }
.pl-auto .badge { background: var(--accent); color: #12100c; }

/* Œuvre « à venir » (statut upcoming) */
.work-card.is-upcoming { opacity: .82; }
.badge-soon { display: inline-block; font-family: var(--sans); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #12100c; }
.soon-date { color: var(--accent); font-style: italic; }

/* Émotiomètre */
.emotio-head { margin: 8px 0 18px; }
.emotio-head h2 { font-family: var(--serif); font-weight: normal; font-size: 1.9rem; margin: 0 0 6px; }
.emotio-form { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: var(--panel); margin-bottom: 30px; }
.emotio-form legend { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.emotio-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.emo-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.emo-chip { position: relative; }
.emo-chip input { position: absolute; opacity: 0; pointer-events: none; }
.emo-chip span { display: inline-block; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--serif); font-size: 1.05rem; cursor: pointer; transition: all .15s; }
.emo-chip:hover span { border-color: var(--accent); }
.emo-chip input:checked + span { background: var(--accent); color: #12100c; border-color: var(--accent); }
.axis-row { display: grid; grid-template-columns: 120px 80px 1fr 80px; align-items: center; gap: 12px; margin: 12px 0; }
.axis-name { font-family: var(--serif); font-size: 1.1rem; }
.axis-lo, .axis-hi { font-family: var(--sans); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.axis-hi { text-align: right; }
.axis-row input[type=range] { width: 100%; accent-color: var(--accent); }
.emotio-results { margin-top: 26px; }

/* Lecteur continu (playlist qui s'enchaîne) */
.cplayer { position: sticky; top: 8px; z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.cp-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 40px; height: 40px; font-size: 1rem; cursor: pointer; }
.cp-btn.cp-toggle { background: var(--accent); color: #12100c; border-color: var(--accent); }
.cp-btn:hover { border-color: var(--accent); }
.cp-now { flex: 1; min-width: 140px; font-family: var(--serif); font-size: 1.1rem; }
.cp-time { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.cp-auto { font-family: var(--sans); font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.cp-audio { display: none; }
.cp-list { list-style: none; padding: 0; margin: 0; counter-reset: cp; }
.cp-track { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.cp-track.playing { background: rgba(212,175,95,.10); border-radius: 8px; }
.cp-play-cell { width: 34px; text-align: center; }
.cp-row-play { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 32px; height: 32px; cursor: pointer; }
.cp-track.playing .cp-row-play { background: var(--accent); color: #12100c; border-color: var(--accent); }
.cp-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.cp-meta { flex: 1; display: flex; flex-direction: column; }
.cp-title { font-family: var(--serif); font-size: 1.12rem; }
.cp-sub { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.cp-track.no-audio { opacity: .6; }
.cp-open { color: var(--muted); font-size: 1.1rem; padding: 0 6px; }
.cp-open:hover { color: var(--accent); }
.cp-actions { display: flex; gap: 8px; align-items: center; }
.cp-actions form { margin: 0; }
@media (max-width: 600px) { .axis-row { grid-template-columns: 1fr; gap: 4px; } .axis-hi { text-align: left; } }

/* Page Crédits */
.credits .home-article-body h2 { font-family: var(--serif); font-weight: normal; font-size: 1.5rem; margin: 28px 0 8px; }
.credits-director { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-link { color: var(--muted); }
.footer-link:hover { color: var(--accent); }

/* Page maintenance */
.maintenance { max-width: 640px; margin: 12vh auto; text-align: center; }
.maintenance .tagline { font-family: var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--accent); font-size: .78rem; }
.maintenance h1 { font-family: var(--serif); font-weight: normal; font-size: 2.4rem; margin: 10px 0 18px; }
.maintenance .lead { font-family: var(--serif); font-size: 1.28rem; color: var(--text); line-height: 1.7; }

/* Carte de reglages (admin) */
.admin-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: var(--panel); max-width: 640px; }
.admin-card h3 { margin: 0 0 8px; }
.admin-card code { font-family: var(--sans); font-size: .85em; background: var(--bg-soft); padding: 1px 5px; border-radius: 5px; }
.admin-audio-check { margin: 8px 0 4px; }
.admin-audio-check audio { display: block; width: 100%; margin-top: 6px; }
.cover-preview { max-width: 160px; height: auto; border-radius: 8px; border: 1px solid var(--line); }
/* Lecteur global persistant (barre en bas de page) */
.gplayer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--bg-soft); border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(0,0,0,.32); }
.gplayer[hidden] { display: none; }
.gp-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 38px; height: 38px; font-size: 1rem; cursor: pointer; }
.gp-btn:hover { border-color: var(--accent); }
.gp-btn.gp-toggle { background: var(--accent); color: #12100c; border-color: var(--accent); }
.gp-now { flex: 1; min-width: 120px; font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-time { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.gp-close { background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.gp-close:hover { color: var(--accent); }
.gp-audio { display: none; }
.gp-vol-wrap { display: flex; align-items: center; gap: 6px; }
.gp-vol-ic { font-size: .9rem; opacity: .8; }
.gp-vol { width: 90px; accent-color: var(--accent); cursor: pointer; }
@media (max-width: 560px) { .gp-vol { width: 60px; } .gp-time { display: none; } }
body.player-on { padding-bottom: 70px; }
.cp-playall-wrap { margin: 0 0 12px; }

/* Filtres du catalogue */
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 22px; }
.catalog-filters select { background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 10px; font-family: var(--sans); font-size: .88rem; }
.catalog-filters select:focus { outline: none; border-color: var(--accent); }

/* Vignette d'interprétation (page d'œuvre) */
.rendition-cover { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); float: right; margin: 0 0 8px 12px; }

/* Tableau de bord statistiques */
.stats-jump { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 18px; font-family: var(--sans); font-size: .82rem; }
.stats-jump a { color: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--panel); }
.stat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.stat-head h3 { margin: 0 0 10px; font-size: 1.1rem; }
.stat-csv { font-family: var(--sans); font-size: .68rem; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.stat-csv:hover { color: var(--accent); border-color: var(--accent); }
.kpis { display: flex; flex-wrap: wrap; gap: 16px; }
.kpi { display: flex; flex-direction: column; }
.kpi-val { font-family: var(--serif); font-size: 1.8rem; color: var(--accent); line-height: 1.1; }
.kpi-lab { font-family: var(--sans); font-size: .72rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 42% 1fr 34px; align-items: center; gap: 8px; }
.bar-lab { font-size: .82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: var(--bg-soft); border-radius: 6px; height: 12px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); }
.bar-val { font-family: var(--sans); font-size: .78rem; color: var(--muted); text-align: right; }

/* Page Vidéos */
.videos-page .intro { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; margin-top: 22px; }
.video-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; position: relative; color: #fff; }
.video-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.video-link span { position: relative; z-index: 1; font-family: var(--sans); letter-spacing: .06em; }
.video-meta { padding: 14px 16px; }
.video-meta h2 { font-size: 1.3rem; font-weight: normal; margin: 0 0 6px; }
.video-meta .desc { color: var(--text); font-size: .98rem; }
.video-works { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.cta-newsletter { text-align: center; margin: 30px 0 4px; }
.cta-newsletter a { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.newsletter .nl-prefs { margin-top: 30px; }
.newsletter .small { font-size: .82rem; }

/* Bandeau de thème (Noël, anniversaire…) */
.theme-banner { text-align: center; padding: 8px 14px; background: var(--accent); color: #12100c; font-family: var(--sans); font-size: .85rem; letter-spacing: .08em; }

/* Éditeur de thème */
.theme-colors { display: flex; flex-wrap: wrap; gap: 14px; }
.color-field { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.color-field input[type=color] { width: 54px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: none; padding: 2px; cursor: pointer; }
.theme-sched { display: flex; gap: 16px; margin-top: 8px; }
.theme-sched input { width: 90px; }

/* Options sous les textes (éditeurs Home / À propos) : cases en ligne */
.tr-options { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 8px 0 12px; }
.tr-options .opt { flex-direction: row; align-items: center; gap: 8px; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--text); }
.tr-options .opt input { width: auto; }

/* Voix du monde */
.voices .intro { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.voice-group { margin-bottom: 8px; }
.voice-group .pl-section { color: var(--accent-2); }

/* Avant-premières (relecteur) */
.previews .intro, .preview .intro { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.preview audio { width: 100%; margin: 12px 0 22px; }

/* Notes par étoiles (relecture) */
.fb-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 6px; }
.fb-label { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feedback-form textarea { background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; font-family: var(--sans); font-size: 1rem; }
.feedback-form textarea:focus { outline: none; border-color: var(--accent); }
.rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating label { font-size: 1.55rem; color: var(--line); cursor: pointer; line-height: 1; transition: color .1s ease; }
.rating label:hover, .rating label:hover ~ label, .rating input:checked ~ label { color: var(--accent); }
.fb-title { font-family: var(--serif); font-weight: normal; font-size: 1.4rem; margin: 8px 0 6px; }
.fb-hint { color: var(--muted); font-size: .82rem; margin: -4px 0 0; }

/* Alignement des paroles */
.lyrics-body.align-left { text-align: left; }
.lyrics-body.align-center { text-align: center; }
.lyrics-body.align-right { text-align: right; }

/* Onglets Musiques + albums publics */
.music-tabs { display: flex; gap: 26px; margin: 6px 0 30px; font-family: var(--sans); font-size: .85rem; letter-spacing: .06em; }
.music-tabs a { color: var(--muted); padding-bottom: 6px; border-bottom: 2px solid transparent; }
.music-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.music-tabs a:hover { color: var(--text); }
.album-detail { text-align: center; }
.album-detail .back { text-align: left; }
.album-detail .cover { display: block; width: 300px; max-width: 78%; height: auto; border-radius: 12px; margin: 20px auto 14px; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.album-detail h1 { font-size: 2.4rem; margin: 6px 0; }
.album-tracks { list-style: decimal inside; text-align: left; max-width: 520px; margin: 26px auto; font-family: var(--serif); font-size: 1.2rem; }
.album-tracks li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.album-tracks a:hover { color: var(--accent); }

/* ---------- Catalogue Musiques ---------- */
.catalog h1 { font-size: 2.4rem; margin-bottom: 8px; }
.work-list { list-style: none; padding: 0; margin: 32px 0 0; }
.work-card { border-bottom: 1px solid var(--line); padding: 20px 0; }
.card-row { display: flex; gap: 20px; align-items: center; }
.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.work-card h2 { margin: 0 0 4px; font-size: 1.55rem; }
.work-card a:hover h2 { color: var(--accent); }
.meta { color: var(--muted); font-size: .86rem; margin: 0; font-family: var(--sans); }

/* ---------- Page d'œuvre ---------- */
.work { text-align: center; }
.work .back { text-align: left; }
.work .back a { color: var(--muted); font-size: .82rem; letter-spacing: .05em; }
.work .back a:hover { color: var(--accent); }
.work .cover { display: block; width: 340px; max-width: 78%; height: auto; border-radius: 12px; margin: 24px auto 18px; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.work h1 { font-size: 2.5rem; margin: 6px 0; }
.work .meta { margin-bottom: 6px; }
.work .langs { font-size: .8rem; color: var(--muted); margin: 12px 0 26px; }
.work .langs a { color: var(--accent); margin: 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.work .desc { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--text); }

.renditions { margin: 30px auto; max-width: 560px; text-align: left; }
.rendition { margin-bottom: 22px; }
.rendition h3 { font-weight: 500; font-size: 1.15rem; margin: 0 0 8px; }
.rendition audio { width: 100%; }
.locked { color: var(--muted); font-style: italic; margin: 0; font-family: var(--serif); }

.lyrics { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 28px; text-align: center; }
.lyrics h2 { font-size: 1.4rem; }
.lyrics-body { font-family: var(--serif); font-size: 1.22rem; line-height: 2; color: var(--text); }

/* ---------- Pages texte (À propos) ---------- */
.page h1 { font-size: 2.4rem; margin-bottom: 20px; }
.page-body { font-family: var(--serif); font-size: 1.28rem; line-height: 1.85; color: var(--text); }
.page-body p { margin: 0 0 20px; }
.page-body em { color: var(--accent-2); }
.page-body .signature { letter-spacing: .22em; text-transform: uppercase; font-family: var(--sans); font-size: .82rem; color: var(--accent); }

/* Journal de réflexions */
.reflections-list h1 { font-size: 2.4rem; margin-bottom: 26px; }
.reflection-item { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); }
.reflection-item time { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.reflection-item h2 { margin: 0; font-size: 1.7rem; }
.reflection-item:hover h2 { color: var(--accent); }
.reflection .back a { color: var(--muted); font-size: .82rem; }
.reflection .back a:hover { color: var(--accent); }
.reflection time { display: block; font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 18px 0 6px; }
.reflection h1 { font-size: 2.6rem; margin: 4px 0; line-height: 1.1; }
.reflection .byline { color: var(--muted); font-family: var(--sans); font-size: .85rem; margin: 0 0 30px; }

/* ---------- Formulaire de contact ---------- */
.contact h1 { font-size: 2.4rem; }
.contact .intro { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 520px; margin-top: 28px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea {
    background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
    border-radius: 8px; padding: 12px 14px; font-family: var(--sans); font-size: 1rem;
    transition: border-color .2s ease;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button {
    align-self: flex-start; background: var(--accent); color: var(--bg); border: none;
    padding: 13px 34px; border-radius: 40px; font-family: var(--sans); font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; cursor: pointer;
    transition: background .2s ease;
}
.contact-form button:hover { background: var(--accent-2); }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; font-family: var(--sans); }
.notice.ok { background: rgba(40,120,70,.18); color: #a9e2ba; border: 1px solid rgba(80,160,110,.35); }
.notice.error { background: rgba(150,50,50,.18); color: #ecaeae; border: 1px solid rgba(180,80,80,.35); }

/* Authentification / compte */
.nav-account { color: var(--accent); }
.auth .intro { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.account-info { margin: 22px 0 30px; }
.account-info dt { font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.account-info dd { margin: 4px 0 0; font-size: 1.2rem; }

/* Formulaire de préférences */
.prefs-form select {
    background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
    border-radius: 8px; padding: 12px 14px; font-family: var(--sans); font-size: 1rem;
}
.prefs-form select:focus { outline: none; border-color: var(--accent); }
.prefs-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 16px; margin: 0; }
.prefs-form legend { font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 0 6px; }
.prefs-form .checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.prefs-form .check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: .98rem; color: var(--text); }
.prefs-form .check input { width: auto; }
.field-static { color: var(--muted); font-size: .9rem; margin: 0; }
.field-static strong { color: var(--text); }
.account-logout-line { margin-top: 26px; }
.account-logout-line a { color: var(--muted); }
.account-logout-line a:hover { color: var(--accent); }

/* Signalement de bug */
.report-form { margin-top: 12px; }
.report-link { background: none; border: none; color: var(--muted); font-family: var(--sans); font-size: .78rem; cursor: pointer; text-decoration: underline; padding: 0; }
.report-link:hover { color: var(--accent); }
.report-link:disabled { color: var(--accent); text-decoration: none; cursor: default; }
.report .intro { color: var(--muted); }

/* Playlists */
.pl-list { list-style: none; padding: 0; margin: 28px 0; }
.pl-card { border-bottom: 1px solid var(--line); padding: 16px 0; }
.pl-card h2 { margin: 0 0 4px; font-weight: normal; font-size: 1.4rem; }
.pl-card a:hover h2 { color: var(--accent); }
.badge { display: inline-block; font-family: var(--sans); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 9px; border-radius: 20px; background: rgba(201,162,75,.18); color: var(--accent-2); }
.badge.own { background: rgba(255,255,255,.08); color: var(--muted); }
.pl-create, .pl-edit { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 24px; }
.pl-create h2, .pl-edit h2 { font-weight: normal; font-size: 1.2rem; }
.pl-items { list-style: none; padding: 0; margin: 24px 0; }
.pl-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.pl-item.is-hidden { opacity: .5; }
.pl-item-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.pl-item-head strong { font-size: 1.1rem; }
.pl-item-head a:hover strong { color: var(--accent); }
.pl-item .rname { color: var(--muted); font-size: .85rem; }
.pl-item audio { width: 100%; }
.pl-item-actions { display: flex; gap: 18px; margin-top: 10px; }
.linkbtn { background: none; border: none; color: var(--muted); font-family: var(--sans); font-size: .78rem; cursor: pointer; text-decoration: underline; padding: 0; }
.linkbtn:hover { color: var(--accent); }
.linkbtn.danger:hover { color: #e8a6a6; }
.pl-delete-form { margin-top: 16px; }
.addpl { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.addpl select { background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 6px 8px; font-family: var(--sans); font-size: .85rem; }
.addpl-hint { margin-top: 8px; font-size: .85rem; }
.addpl-hint a { color: var(--accent); }

/* Cartes playlists */
.pl-section { font-weight: normal; font-size: 1.1rem; letter-spacing: .04em; color: var(--accent); margin: 34px 0 14px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pl-card2 { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; transition: border-color .2s ease, transform .2s ease; }
.pl-card2:hover { border-color: var(--accent); transform: translateY(-2px); }
.pl-cover { width: 64px; height: 64px; border-radius: 8px; background: var(--bg-soft); flex-shrink: 0; overflow: hidden; display: block; }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pl-name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.15; }
.pl-sub { font-family: var(--sans); font-size: .78rem; color: var(--muted); }

/* Administration */
.admin-nav { display: flex; gap: 20px; margin: 8px 0 24px; font-family: var(--sans); font-size: .85rem; }
.admin-nav a { color: var(--accent); }
.admin-search { display: flex; gap: 10px; margin-bottom: 18px; }
.admin-search input { background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 8px 12px; font-family: var(--sans); flex: 1; max-width: 320px; }
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9rem; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: 8px 10px; }
.admin-table td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: middle; }
.admin-table td a { color: var(--accent); }
.admin .muted { color: var(--muted); }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 6px 10px; font-family: var(--sans); }
.admin-link { margin-top: 26px; }
.row-actions { display: flex; gap: 12px; align-items: center; }

/* Note publique (« j'aime ») */
.rating-box { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin: 14px 0 22px; }
.stars-static { color: var(--line); font-size: 1.3rem; letter-spacing: 2px; }
.stars-static .on { color: var(--accent); }
.rating-meta { color: var(--muted); font-size: .9rem; font-family: var(--sans); }
.rating-form { display: flex; align-items: center; gap: 10px; }
.rating-login { color: var(--accent); font-size: .9rem; }

.stub h1, .page.contact h1 { font-weight: 500; }
.stub { text-align: center; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 30px;
    color: var(--muted);
    font-size: .82rem;
    font-family: var(--sans);
}
.heart { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
    .site-header { flex-direction: column; align-items: flex-start; padding: 18px 20px; position: static; }
    .main-nav { flex-wrap: wrap; gap: 16px; }
    .site-main { padding: 52px 20px; }
    .hero h1 { font-size: 2.3rem; }
    .lead { font-size: 1.35rem; }
    .latest-card { flex-direction: column; text-align: center; }
    .work .cover { max-width: 100%; }
}

/* ---------- Accessibilité : animations réduites ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
