/* ------------------------------
   POLICE MARCK SCRIPT DIT MARCO
------------------------------ */
@font-face {
    font-family: "Marco";
    src: url("fonts/marco.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* ------------------------------
   RESET & BASE
------------------------------ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background: #faf9f7 url('texture-beige.png') repeat;
    font-family: "Marco", serif;
    font-size: 18px;
    line-height: 1.7;
    color: #2b2b2b;
}

/* ------------------------------
   HEADER & BANNIÈRE
------------------------------ */
header {
    text-align: center;
    padding: 10px 20px 0 20px;
}

.banner {
    width: 100%;
    max-width: 900px;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ------------------------------
   TITRES
------------------------------ */
h1, h2, h3 {
    font-family: "Marco", serif;
    font-weight: normal;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    font-size: 3em;
    white-space: nowrap;
}

/* ------------------------------
   NAVIGATION
------------------------------ */
nav {
    text-align: center;
    margin: 10px 0 20px 0;
}

nav a {
    margin: 0 12px;
    text-decoration: none;
    color: #4a3f2a;
    font-size: 1.1em;
    letter-spacing: 1px;
    padding: 6px 4px;
    border-bottom: 2px solid #d6c6a8;
    transition: border-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    border-color: #a48b5f;
    color: #000;
}

/* ------------------------------
   CONTENEUR PRINCIPAL
------------------------------ */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ------------------------------
   PARAGRAPHES
------------------------------ */
.container p {
    font-family: "Times New Roman", serif;
    font-style: normal;
    font-size: 1.3em;
    line-height: 1.95;
    letter-spacing: 0.3px;
    color: #2b2b2b;
    text-align: justify;
    text-justify: inter-word;
}

/* ------------------------------
   LETTRINE
------------------------------ */
.container p:first-of-type::first-letter,
.home-intro:first-letter {
    font-size: 2.2em;
    font-family: "Georgia", serif;
    color: #4a3f2a;
    float: none;
    vertical-align: baseline;
    line-height: 1;
    padding-right: 6px;
}

/* ------------------------------
   STYLE POÈMES
------------------------------ */
.poem,
.poem p {
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-size: 1.3em;
    line-height: 1.95;
    letter-spacing: 0.3px;
    color: #2b2b2b;
    text-align: justify;
    text-justify: inter-word;
}

.poem {
    margin-top: 30px;
    white-space: normal;
}

.center {
    text-align: center;
}

/* ------------------------------
   CADRES POUR LES POÈMES
------------------------------ */
.poem-boxes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 40px 0;
}

.poem-boxes a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 80px;
    height: 22px;
    white-space: nowrap;
    overflow: hidden;
    border: 1px solid #d6c6a8;
    border-radius: 4px;
    background: #fdfbf7;
    color: #4a3f2a;
    text-decoration: none;
    font-size: 1.05em;
    letter-spacing: 0.6px;
    transition: 0.25s ease;
}

.poem-boxes a:hover {
    background: #f5efe4;
    border-color: #b79f75;
    color: #000;
    transform: translateY(-1px);
}

/* ------------------------------
   SÉPARATEUR
------------------------------ */
.separator {
    width: 120px;
    height: 1px;
    background: #c8c2b8;
    margin: 20px auto 30px auto;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
    text-align: center;
    padding: 30px;
    font-size: 0.9em;
    color: #6b5c45;
    opacity: 0.8;
    margin-top: 40px;
}

/* ------------------------------
   RETOUR À L’ACCUEIL
------------------------------ */
.back-home {
    text-align: center;
    margin: 30px 0 10px 0;
}

.back-home a {
    font-family: "Marco", serif;
    font-size: 1.4em;
    color: #4a3f2a;
    text-decoration: none;
    letter-spacing: 1px;
    border-bottom: 1px solid #d6c6a8;
    padding-bottom: 3px;
    transition: 0.3s ease;
}

.back-home a:hover {
    color: #000;
    border-color: #a48b5f;
}

/* ------------------------------
   PAGE JUKEBOX
------------------------------ */
.jukebox-page {
    background: radial-gradient(circle at top, #1b1230 0%, #05030a 55%, #020107 100%);
    color: #fdfdfd;
}

.jukebox-wrapper {
    max-width: 1200px;
    margin: 40px auto 20px auto;
    padding: 0 20px;
}

.jukebox-title {
    font-size: 2.6em;
    text-align: center;
    background: linear-gradient(90deg, #ff4fd8, #4fd8ff);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 12px rgba(255,79,216,0.7), 0 0 18px rgba(79,216,255,0.6);
    margin-bottom: 25px;
}

/* ------------------------------
   GHETTOBLASTER
------------------------------ */
.ghettoblaster {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    border-radius: 18px;
    padding: 18px;
    background: radial-gradient(circle at top, #2a163f 0%, #0b0715 55%, #05030b 100%);
    box-shadow:
        0 0 25px rgba(255,79,216,0.6),
        0 0 40px rgba(79,216,255,0.5),
        0 0 80px rgba(0,0,0,0.9);
    border: 2px solid rgba(255,79,216,0.8);
    position: relative;
    overflow: hidden;
}

.ghettoblaster::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 14px;
    border: 1px solid rgba(79,216,255,0.7);
    box-shadow: 0 0 18px rgba(79,216,255,0.4);
    pointer-events: none;
}

/* Bandeau supérieur */
.gb-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 18px;
    margin-bottom: 12px;
    color: #fdfdfd;
    font-size: 0.9em;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

.gb-label {
    color: #f7e9ff;
}

.gb-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,79,216,0.9);
    background: radial-gradient(circle, #ff4fd8 0%, #7b1f6f 70%);
}

.gb-light-right {
    box-shadow: 0 0 10px rgba(79,216,255,0.9);
    background: radial-gradient(circle, #4fd8ff 0%, #1b4f7b 70%);
}

/* Corps principal */
.gb-body {
    display: grid;
    grid-template-columns: 1fr 2.2fr 1fr;
    gap: 18px;
    align-items: center;
}

/* Haut-parleurs */
.gb-speaker {
    height: 260px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(0,0,0,0.8) 0, #050308 60%);
    box-shadow:
        inset 0 0 18px rgba(0,0,0,0.9),
        0 0 18px rgba(0,0,0,0.8);
    position: relative;
}

.gb-speaker::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 2px solid rgba(79,216,255,0.4);
    box-shadow: 0 0 12px rgba(79,216,255,0.4);
}

/* Centre */
.gb-center {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Liste des pistes */
.track-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
}

.track-item {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: rgba(10,6,20,0.9);
    color: #f7f3ff;
    font-size: 0.98em;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

.track-item::before {
    content: "●";
    font-size: 0.7em;
    color: rgba(255,79,216,0.7);
}

.track-item:hover {
    background: rgba(30,16,60,0.95);
    border-color: rgba(79,216,255,0.6);
    box-shadow: 0 0 10px rgba(79,216,255,0.4);
    transform: translateX(3px);
}

.track-item.active {
    background: linear-gradient(90deg, rgba(255,79,216,0.25), rgba(79,216,255,0.25));
    border-color: rgba(255,79,216,0.8);
    box-shadow:
        0 0 12px rgba(255,79,216,0.7),
        0 0 18px rgba(79,216,255,0.6);
}

.track-item.active::before {
    content: "▶";
    color: #ffbdf3;
}

/* Cassette */
.gb-cassette-window {
    margin-top: 6px;
    height: 80px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1028, #0b0715);
    border: 1px solid rgba(200,200,255,0.3);
    box-shadow:
        inset 0 0 10px rgba(0,0,0,0.9),
        0 0 14px rgba(79,216,255,0.4);
    position: relative;
    overflow: hidden;
}

.gb-tape-reel {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(220,220,255,0.7);
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.gb-tape-left {
    left: 22%;
}

.gb-tape-right {
    right: 22%;
}

.gb-tape-reel::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #fdfdfd 0%, #777 60%, #111 100%);
}

.gb-tape-strip {
    position: absolute;
    top: 50%;
    left: 18%;
    right: 18%;
    height: 4px;
    background: linear-gradient(90deg, #111, #444, #111);
    transform: translateY(-50%);
}

/* Boutons */
.gb-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.gb-btn {
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,79,216,0.7);
    background: radial-gradient(circle at top, #ff4fd8 0%, #5b1a4f 60%, #1a0a22 100%);
    color: #fdfdfd;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow:
        0 0 10px rgba(255,79,216,0.7),
        0 0 16px rgba(79,216,255,0.5);
    transition: 0.15s ease;
}

.gb-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 14px rgba(255,79,216,0.9),
        0 0 20px rgba(79,216,255,0.7);
}

.gb-btn:active {
    transform: translateY(1px);
    box-shadow:
        0 0 6px rgba(255,79,216,0.6),
        0 0 10px rgba(79,216,255,0.5);
}

/* ------------------------------
   LECTEUR YOUTUBE (NOUVEAU)
------------------------------ */
.youtube-wrapper iframe {
    border-radius: 10px;
    box-shadow:
        0 0 12px rgba(255,79,216,0.6),
        0 0 18px rgba(79,216,255,0.5);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Barre inférieure */
.gb-bottom-bar {
    margin-top: 14px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(79,216,255,0.7), transparent 70%);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
    .gb-body {
        grid-template-columns: 1fr;
    }

    .gb-speaker {
        display: none;
    }

    .ghettoblaster {
        padding: 14px;
    }

    .jukebox-wrapper {
        padding: 0 10px;
    }
}

/* ------------------------------
   LIENS BLANCS SUR PAGE JUKEBOX
------------------------------ */
.jukebox-page nav a,
.jukebox-page nav a:visited,
.jukebox-page nav a:active {
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,0.7) !important;
}

.jukebox-page nav a:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff !important;
}

.jukebox-page .back-home a,
.jukebox-page .back-home a:visited,
.jukebox-page .back-home a:active {
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,0.7) !important;
}

.jukebox-page .back-home a:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff !important;
}

/* ------------------------------
   INTRO QUANTIQUE
------------------------------ */
.intro-quantique .line {
    display: block;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.intro-quantique .block-space {
    height: 10px;
}
