     /* Thème clair par défaut. L’index transmet le choix via dark-mode + postMessage. */
      
:root {
    /* THÈME CLAIR */
    --bg: #ffffff;
    --page-bg: linear-gradient(180deg, #ffffff 0%, #f7f5f2 100%);

    --panel: #ffffff;
    --panel-soft: #f6f2ee;

    --gold: #8a5b22;
    --gold-soft: #2f2925;

    --copper: #a97863;
    --copper-light: #b98972;

    --cream: #201a17;
    --muted: #6e625a;
    --line: rgba(86, 62, 48, 0.18);
    --lyrics: #302923;

    /* LIGNE CHANTÉE — THÈME CLAIR */
    --active-text: #000000;
    --active-bg: transparent;
    --active-weight: 700;
    --active-font-size: 1.5rem;
    --active-shadow: none;
--icon-bg: #000000;
--icon-fg: #1f1a17;
--icon-border: rgba(47, 41, 37, 0.34);

    --button-bg: #efe7e1;
    --button-fg: #51372c;
    --button-hover: #e4d6cc;

    --return-bg: #f3ede8;
    --return-fg: #3c2b24;

    --shadow: 0 18px 48px rgba(63, 45, 34, 0.12);
}


html.dark-mode,
body.dark-mode {
    /* THÈME SOMBRE */
    --bg: #060504;
    --page-bg:
        radial-gradient(
            circle at 50% -15%,
            rgba(169, 120, 99, 0.17),
            transparent 34rem
        ),
        linear-gradient(
            180deg,
            #090605 0%,
            #000000 80%
        );

    --panel: #120d0b;
    --panel-soft: #1b1210;

    --gold: #f3d07a;
    --gold-soft: #f7e7b4;

    --copper: #a97863;
    --copper-light: #c99579;

    --cream: #fff6df;
    --muted: #cdbf9f;
    --line: rgba(243, 208, 122, 0.24);
    --lyrics: #f3ead7;

    /* LIGNE CHANTÉE — THÈME SOMBRE */
    --active-text: #fff2b7;
    --active-bg: linear-gradient(
        90deg,
        rgba(245, 211, 108, 0.16),
        rgba(245, 211, 108, 0)
    );
    --active-weight: 600;
    --active-font-size: 2em;
    --active-shadow: 0 0 18px rgba(245, 211, 108, 0.18);

    --icon-bg: #171513;
    --icon-fg: #ffffff;

    --button-bg: #211613;
    --button-fg: #ffffff;
    --button-hover: #38231d;

    --return-bg: #17110f;
    --return-fg: #fff6df;

    --shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}


* {
    box-sizing: border-box;
}
--active-shadow: none;
            --icon-bg: #f2eeea;
            --icon-fg: #2a211d;
            --button-bg: #efe7e1;
            --button-fg: #51372c;
            --button-hover: #e4d6cc;
            --return-bg: #f3ede8;
            --return-fg: #3c2b24;
            --shadow: 0 18px 48px rgba(63, 45, 34, .12);
        }

        html.dark-mode,
        body.dark-mode {
            --bg: #060504;
            --page-bg: radial-gradient(circle at 50% -15%, rgba(169, 120, 99, 0.17), transparent 34rem), linear-gradient(180deg, #090605 0%, #000 80%);
            --panel: #120d0b;
            --panel-soft: #1b1210;
            --gold: #f3d07a;
            --gold-soft: #f7e7b4;
            --copper: #a97863;
            --copper-light: #c99579;
            --cream: #fff6df;
            --muted: #cdbf9f;
            --line: rgba(243, 208, 122, 0.24);
            --lyrics: #f3ead7;
            --active-text: #fff2b7;
            --active-bg: linear-gradient(90deg, rgba(245,211,108,.16), rgba(245,211,108,0));
            --icon-bg: #171513;
            --icon-fg: #ffffff;
            --button-bg: #211613;
            --button-fg: #ffffff;
            --button-hover: #38231d;
            --return-bg: #17110f;
            --return-fg: #fff6df;
            --shadow: 0 28px 70px rgba(0,0,0,.48);
        }

        * { box-sizing: border-box; }

        html, body {
            margin: 0;
            padding: 0;
            min-height: 100%;
            background: var(--page-bg);
            color: var(--gold-soft);
            font-family: "Helvetica Neue", Arial, sans-serif;
        }

        body { padding: 1.6rem 1rem 3rem; }

        .page-musique {
            width: min(1180px, 100%);
            margin: 0 auto;
            text-align: center;
        }

        .partage-reseaux { margin: 0 auto 1.7rem; }
        .partage-reseaux h2 {
            margin: 0 0 0.75rem;
            color: var(--muted);
            font-size: 0.82rem;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            font-weight: 600;
        }

       


        .partage-liens a {
  x
}

.partage-liens svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}


        .partage-liens {
            display: flex;
            justify-content: center;
            gap: 0.6rem;
            flex-wrap: wrap;
        }

        .partage-liens a {

              width: 48px;
    height: 48px;
    border: 2px solid var(--icon-border);
    background: var(--icon-bg);
    color: var(--icon-fg);
            display: inline-flex;
      
          
            align-items: center;
            justify-content: center;
    
            border-radius: 50%;
     
            color: var(--icon-fg);
            text-decoration: none;
            transition: transform .2s ease, background .2s ease, border-color .2s ease;
        }

        .partage-liens a:hover,
        .partage-liens a:focus-visible {
            transform: translateY(-2px);
            background: var(--copper);
            border-color: var(--copper-light);
        }

        .partage-liens svg { width: 22px; height: 22px; fill: currentColor; }

        .hero {
            margin: 1.4rem auto 2rem;
            padding: clamp(1.3rem, 3vw, 2.6rem);
            border: 1px solid var(--line);
            border-radius: 24px;
            background:
                linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.008)),
                var(--panel);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .eyebrow {
            margin: 0 0 .55rem;
            color: var(--copper-light);
            font-size: clamp(.78rem, 1.4vw, .95rem);
            letter-spacing: .22em;
            text-transform: uppercase;
            font-weight: 700;
        }

        h1 {
            margin: 0;
            color: var(--cream);
            font-family: Georgia, "Times New Roman", serif;
            font-size: clamp(2.7rem, 7vw, 6.6rem);
            line-height: .92;
            letter-spacing: .015em;
            font-weight: 500;
            text-wrap: balance;
        }

        .byline {
            margin: .9rem 0 0;
            color: var(--gold);
            font-family: Georgia, "Times New Roman", serif;
            font-size: clamp(1rem, 2vw, 1.35rem);
            font-style: italic;
        }

        .tagline {
            max-width: 760px;
            margin: 1.15rem auto 0;
            color: var(--muted);
            font-size: clamp(1rem, 1.7vw, 1.16rem);
            line-height: 1.65;
        }

        .site-complet {
            margin: 1.2rem auto 0;
            font-size: .85rem;
            letter-spacing: .2em;
            text-transform: uppercase;
        }
        .site-complet a { color: var(--cream); text-decoration: none; }
        .site-complet a:hover { color: var(--gold); }

        .oeuvre-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
            gap: clamp(1.4rem, 3vw, 2.5rem);
            align-items: stretch;
            margin: 0 auto 2rem;
        }

        .visuel,
        .paroles {
            border: 1px solid var(--line);
            border-radius: 20px;
            background: var(--panel);
            overflow: hidden;
        }

        .visuel {
            min-height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: .65rem;
        }

        .visuel img {
            width: 100%;
            height: 100%;
            min-height: 420px;
            object-fit: cover;
            object-position: center;
            display: block;
            border-radius: 14px;
        }

        .paroles {
            padding: clamp(1.35rem, 2.4vw, 2rem);
            text-align: left;
            background:
                linear-gradient(180deg, rgba(169,120,99,.08), transparent 35%),
                var(--panel);
        }

        .paroles h2 {
            margin: 0 0 1rem;
            color: var(--gold);
            font-size: .9rem;
            letter-spacing: .18em;
            text-transform: uppercase;
        }

        .lyrics {
            margin: 0;
            color: var(--lyrics);
            font-family: Georgia, "Times New Roman", serif;
            font-size: clamp(1.02rem, 1.4vw, 1.18rem);
            line-height: 1.58;
        }

        .lyrics .verse {
            display: block;
            margin-bottom: 1.2rem;
        }

        .lyrics .verse:last-child { margin-bottom: 0; }

        .lyrics-scroll {
            max-height: 560px;
            overflow-y: auto;
            overscroll-behavior: contain;
            scroll-behavior: smooth;
            padding: .35rem .35rem 1.2rem 0;
            scrollbar-width: thin;
            scrollbar-color: var(--copper) rgba(255,255,255,.06);
        }

        .lyrics-scroll::-webkit-scrollbar { width: 8px; }
        .lyrics-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 999px; }
        .lyrics-scroll::-webkit-scrollbar-thumb { background: var(--copper); border-radius: 999px; }

        .lyric-line {
            display: block;
            margin: .14rem 0;
            padding: .18rem .45rem;
            border-radius: 8px;
            opacity: .46;
            transition: opacity .06s linear, color .06s linear, background .06s linear, transform .06s linear;
        }

    .lyric-line.current {
    color: var(--active-text);
    background: var(--active-bg);
    font-weight: var(--active-weight);
    font-size: var(--active-font-size);
    text-shadow: var(--active-shadow);
    opacity: 1;
}




        .verse.current-verse .lyric-line:not(.current) { opacity: .72; }

        .lyrics-status {
            margin: 0 0 .85rem;
            color: var(--muted);
            font-size: .82rem;
            letter-spacing: .06em;
        }

        .menu-musique-page {
            display: flex;
            justify-content: center;
            gap: .8rem;
            flex-wrap: wrap;
            margin: 2.2rem auto 1.5rem;
        }

        .musique-onglet {
            min-width: 150px;
            border: 1px solid rgba(255,255,255,.1);
            border-radius: 999px;
            padding: .78rem 1.6rem;
            background: var(--button-bg);
            color: var(--button-fg);
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: .08em;
            cursor: pointer;
            text-transform: uppercase;
            transition: .2s ease;
        }

        .musique-onglet:hover,
        .musique-onglet:focus-visible {
            transform: translateY(-2px);
            border-color: var(--copper-light);
            background: var(--button-hover);
        }

        .musique-onglet.actif {
            background: var(--cream);
            color: #5d3a2e;
            border-color: var(--cream);
            box-shadow: 0 0 22px rgba(243,208,122,.2);
        }

        .intro {
            max-width: 760px;
            margin: 0 auto 1.8rem;
            color: var(--muted);
            font-size: 1.03rem;
            line-height: 1.65;
        }

        .bloc-musique {
            max-width: 980px;
            margin: 1rem auto 2rem;
            text-align: center;
        }
        .bloc-musique[hidden] { display: none; }

        .choix-media {
            padding: clamp(1rem, 2.5vw, 1.6rem);
            border: 1px solid var(--line);
            border-radius: 20px;
            background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--panel-soft);
            box-shadow: 0 20px 45px rgba(0,0,0,.28);
            transition: box-shadow .25s ease, border-color .25s ease;
        }

        .choix-media.en-ondes {
            border-color: rgba(243,208,122,.65);
            box-shadow: 0 0 26px rgba(243,208,122,.18), 0 20px 45px rgba(0,0,0,.34);
        }

        .choix-media h2 {
            margin: 0 0 .55rem;
            color: var(--gold);
            font-size: 1.15rem;
            text-transform: uppercase;
            letter-spacing: .12em;
        }

        .choix-media > p {
            margin: 0 0 1rem;
            color: var(--muted);
            line-height: 1.55;
        }

        audio, video {
            display: block;
            width: 100%;
            margin: 0 auto;
            border-radius: 14px;
            background: #000;
        }
        video { max-height: 520px; object-fit: contain; }

        .note-media {
            max-width: 780px;
            margin: 1.15rem auto 0;
            padding-top: 1rem;
            border-top: 1px solid var(--line);
            color: var(--muted);
            text-align: left;
            line-height: 1.6;
        }

        .note-media h3 {
            margin: 0 0 .45rem;
            color: var(--gold);
            font-size: .78rem;
            text-transform: uppercase;
            letter-spacing: .15em;
        }
        .note-media p { margin: 0; }

        .etat {
            margin: 1.3rem 0 0;
            color: var(--gold);
            font-size: .95rem;
            min-height: 1.4rem;
        }

        .retour { margin: 2rem 0 0; }
        .retour a {
            display: inline-block;
            padding: .78rem 1.25rem;
            border: 1px solid var(--line);
            border-radius: 999px;
            color: var(--return-fg);
            background: var(--return-bg);
            text-decoration: none;
            font-weight: 700;
            transition: .2s ease;
        }
        .retour a:hover,
        .retour a:focus-visible {
            transform: translateY(-2px);
            background: var(--copper);
            border-color: var(--copper-light);
        }

        @media (max-width: 880px) {
            .oeuvre-grid { grid-template-columns: 1fr; }
            .visuel img { min-height: 0; max-height: none; }
            .paroles { text-align: center; }
        }

        @media (max-width: 600px) {
            body { padding: .8rem .55rem 2rem; }
            .hero { border-radius: 18px; }
            .visuel, .paroles, .choix-media { border-radius: 16px; }
            .menu-musique-page { margin-top: 1.6rem; }
            .musique-onglet { width: 100%; max-width: 300px; }
            .lyrics { font-size: 1rem; line-height: 1.55; }
        }



        .lien-musique-image {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lien-musique-image img {
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.lien-musique-image:hover img,
.lien-musique-image:focus-visible img {
    transform: scale(1.015);
    opacity: 0.92;
}

.lien-musique-image:focus-visible {
    outline: 3px solid var(--copper);
    outline-offset: 4px;
}



.lien-conditions {
    text-align: center;
    margin: 1.2rem 0;
}

.lien-conditions a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid currentColor;
}

.lien-conditions a:hover {
    opacity: .75;
}

/* Fond couvrant toute la page */
.modal-conditions {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .72);
}

/* Modal visible */
.modal-conditions.ouvert {
    display: flex;
}

/* Fenêtre */
.modal-conditions-contenu {
    position: relative;
    width: min(850px, 96vw);
    max-height: 88vh;
    overflow-y: auto;
    padding: 2.5rem 2rem 2rem;
    border-radius: 18px;
    background: var(--panel);
    color: var(--lyrics);
    box-shadow: 0 25px 80px rgba(0, 0, 0, .45);
    text-align: left;
}

/* Gros X */
.fermer-conditions {
    position: absolute;
    top: .5rem;
    right: .8rem;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cream);
    font-size: 3rem;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
}

.fermer-conditions:hover,
.fermer-conditions:focus-visible {
    color: var(--gold);
    transform: scale(1.08);
}

.modal-conditions-contenu h2 {
    margin-top: 0;
    padding-right: 3rem;
    color: var(--gold);
}

.modal-conditions-contenu h3 {
    margin-top: 1.8rem;
    color: var(--gold);
}

.texte-conditions {
    line-height: 1.65;
}

.phrase-finale {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-style: italic;
}