body {
    margin: 0;
    background: #ececec;
    color: black;
    font-family: "Inter", sans-serif;
}

.redhead {
background-image: url("../grain1.png");
background-repeat: repeat;
background-size: cover;
animation: grainAnim 0.5s steps(1) infinite;
height: 480px;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}

.redhead img{
    width: 90%;
    max-width: 480px;
    padding-top: 80px;
}

@keyframes grainAnim {
  0% {
    background-image: url("../grain1.png");
  }
  33.333% {
    background-image: url("../grain2.png");
  }
  66.666% {
    background-image: url("../grain3.png");
  }
  100% {
    background-image: url("../grain1.png");
  }
}

.descmind{
        font-family: "Inter", sans-serif;
}

.app {
    display: flex;
    height: 100vh;
}

/* ========== SIDEBAR ========== */

#annotationPanel{
    overflow: scroll;
}

.sidebar {
    width: 280px;
    background-color: white;
    padding: 25px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: transform 0.4s ease;
}

.sidebar h1 {
    margin: 104px 0 20px;
    font-size: 1.4rem;
 color: #3060ff;
}

.reddd{
    color: #3060ff;
        margin-top: 48px;
}

.borddd{
    border-radius: 12px;
}

.video-wrap{
height: 315px;
max-height: 315px;
width: 100%;
max-width:560px;
padding: 0 24px;
}

iframe{
width: 100%;
height: 100%;
}

.song-list .song {
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: #F6F7FB;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.song:hover {
    background: #3060ff;
    color: white;
}

.song.active {
    background: #3060ff;
    color: white;
}

/* ========== LYRICS AREA ========== */

.lyrics-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
    transition: transform 0.4s ease;
}

.placeholder {
    opacity: 0.4;
    text-align: center;
    margin-top: 100px;
}

.lyrics {
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.line {
    cursor: pointer;
    transition: 0.2s;
    line-height: 24px;
    width: calc(100% - 90px);
}

.line:hover {
    color: #3060ff;
}

.line.active{
        color: #3060ff;
}

/* ========== ANNOTATION PANEL ========== */

.annotation-panel {
    width: 360px;
    background: white;
    position: fixed;
    right: -360px;
    top: 0;
    height: 100%;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
}

.annotation-panel.open {
    right: 0;
}

/* HEADER */
.annotation-header {
    padding: 20px;
    border-bottom: 1px solid #242424;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.annotation-header span {
    cursor: pointer;
    font-size: 1.3rem;
}

.annotation-body {
    padding: 102px 20px 20px 20px;
}

.annotation-line {
     color: #3060ff;
    font-weight: 600;
    margin-bottom: 10px;
}

.descmind{
    font-weight: 300;
    color: black;
    text-align: center;
}

/* UTILITIES */
.hidden {
    display: none;
}

.page-title3{
    margin: 48px 0 24px 0;
    color: #3060ff;
}

.metrageimg{
    max-width: 420px;
    width: 90%;
}

.metrageimg2{
    max-width: 640px;
    width: 90%;
}

.center4{
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
    gap: 12px;
}
/* =========================================
   📱 MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 900px) {


    .app {
        position: relative;
    }

    /* Panneaux empilés */
    .sidebar,
    .lyrics-area {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* PAGE 1 : Song list */
    .sidebar {
        transform: translateX(0);
        z-index: 10;
    }

    /* PAGE 2 : Lyrics */
    .lyrics-area {
        background: #ffffff;
        transform: translateX(100%);
        z-index: 20;
    }

    .lyrics-area.active {
        transform: translateX(0);
    }

    /* PAGE 3 : Annotation */
    .annotation-panel {
        width: 100%;
        right: -100%;
    }

    .annotation-panel.open {
        right: 0;
    }
}


/* Bouton retour (mobile only) */
.back-btn {
    display: none;
    background: none;
    border: none;
    color: #3060ff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    cursor: pointer;
}

.song-details-back{
    margin-top: 24px;
}

.back-btn2 {
    display: block;
    background: none;
    border: none;
    color: #3060ff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .back-btn {
        display: block;
    }

        .back-btn2 {
        display: block;
    }
}

/* Fix annotation panel responsive */
@media (max-width: 900px) {
    .annotation-panel {
        width: 100%;
        right: -100%;
        z-index: 9999; /* IMPORTANT */
    }
}

.section-title {
    margin-top: 35px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #3060ff;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
}


h1{
    color: #3060ff;
}



.annotee{
    margin: 24px 0 00 !important;
}

.song-details {
    margin: 40px 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
    width: 100%;
    max-width: 74%;
}

.song-details-title {
    font-size: 0.85em;
    text-transform: uppercase;
    padding: 12px;
    font-weight: 500;
    color: #3060ff;
      border-top: 1px solid #3060ff;
  border-left: 1px solid #3060ff;
  border-right: 1px solid #3060ff;
  border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.song-details-content {
    font-size: 0.95em;
    line-height: 1.6;
    font-weight: 200;
    border: #3060ff solid 1px;
    padding: 12px;
    border-radius: 0 0 12px 12px;
}


:root{
/* Light mode (sans toucher au rouge) */
--bg:#F6F7FB;
--panel:#FFFFFF;
--text:#111827;

--accent:#3060ff;
--accent2:#3060ff;

--border:#D6DAE3;

}

.linkcqs{
color: #3060ff;
}

/* ===== Barre flottante (desktop) ===== */
.site-nav{
position: fixed;
top: 18px;
left: 50%;
transform: translateX(-50%);
z-index: 52;
/* largeur sûre (pas de débordement), padding inclus */
min-width: calc(100vw - 32px);
box-sizing: border-box;
background: color-mix(in srgb, var(--panel) 88%, transparent);
backdrop-filter: blur(10px);
border: 1px solid var(--border);
box-shadow: 0 6px 24px rgba(0,0,0,.35);
padding: 12px 18px;
border-radius: 18px;

/* masque tout débordement interne */
overflow: hidden;
}

.nav-inner{
display: flex;
align-items: center;
justify-content: center;
max-width: 100%;
}

.nav-links{
display: flex;
align-items: center;
/* occupe toute la largeur → pas de lien qui "mord" hors du cadre */
width: 100%;
justify-content: space-between;
margin: 0;
padding: 0;
list-style: none;
}

.nav-link{
display: inline-block;
color: var(--text);
text-decoration: none;
font-weight: 600;
letter-spacing: .2px;
padding: 10px 12px;
border-radius: 12px;
transition: color .2s ease, background .2s ease, box-shadow .2s ease;
white-space: nowrap;           /* pas de retour à la ligne sur desktop */
max-width: 100%;
}

.nav-link.active{
  color: var(--accent2); /* violet clair par ex. */

}

/* ===== Burger + overlay (mobile) ===== */
.nav-burger{
display: none;
position: fixed;
top: 16px;
right: 16px;
z-index: 1001;
width: 42px; height: 42px;
border-radius: 12px;
background: color-mix(in srgb, var(--panel) 88%, transparent);
border: 1px solid var(--border);
backdrop-filter: blur(10px);
box-shadow: 0 6px 20px rgba(0,0,0,.35);
cursor: pointer;
}
.nav-burger:focus-visible{ outline: 2px solid var(--accent2); outline-offset: 2px; }

/* 3 vraies lignes, anim propres */
.nav-burger .line{
position: absolute;
left: 50%;
width: 22px; height: 2px;
background: var(--text);
border-radius: 2px;
transform: translateX(-50%);
transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-burger .line.top{ top: 12px; }
.nav-burger .line.mid{ top: 20px; }
.nav-burger .line.bot{ top: 28px; }

.nav-burger.is-open .line.mid{ opacity: 0; }
.nav-burger.is-open .line.top{
top: 20px;
transform: translateX(-50%) rotate(45deg);
}
.nav-burger.is-open .line.bot{
top: 20px;
transform: translateX(-50%) rotate(-45deg);
}

/* Overlay plein écran — version sobre */
.nav-overlay{
position: fixed; inset: 0; z-index: 1000;
background: #ffffff;
display: none;
}
.nav-overlay.open{ display: grid; }

.nav-ov-inner{
align-self: center; justify-self: center;
width: min(820px, 92vw);
padding: clamp(16px, 4vw, 32px);
}

.nav-ov-list{
list-style: none; margin: 0; padding: 0;
display: grid;
row-gap: clamp(18px, 5.5vh, 42px);
justify-items: center;
}

.nav-ov-list a{
text-decoration: none;
color: #D9DBE3;
font-weight: 500;
text-transform: uppercase;
letter-spacing: .18em;
font-size: 14px !important;
line-height: 1.2;
white-space: normal;     /* “Joey language” s’affiche en entier */
text-align: center;
transition: color .2s ease, opacity .2s ease;
padding: 2px 6px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent2); /* violet clair par ex. */
  background: none;
  box-shadow: none;
}

.nav-ov-list a:hover,
.nav-ov-list a:focus-visible{
color: var(--accent2);
outline: none;
}
.nav-ov-list a.active{ color: var(--accent); }

.nav-link{
font-size: 14px !important;
}

.nav-link img{
width: 32px;
}


.lang-switch{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bouton langue desktop */
.lang-switch{
margin-left: auto; /* pousse à droite */
padding: 8px 12px;
border-radius: 12px;
border: 1px solid var(--border);
background: color-mix(in srgb, var(--panel) 88%, transparent);
color: var(--text);
font-weight: 600;
cursor: pointer;
transition: background .2s ease, color .2s ease;
}
.lang-switch:hover{
background: var(--accent);
color: #fff;
}

/* Bouton mobile */
.lang-mobile{
position: fixed;
top: 66px;   /* juste sous le burger */
right: 16px;
z-index: 1001;
width: 42px;
height: 42px;
border-radius: 12px;
border: 1px solid var(--border);
background: color-mix(in srgb, var(--panel) 88%, transparent);
color: var(--text);
font-weight: 600;
place-items: center;
cursor: pointer;
}
.lang-mobile:hover{
background: var(--accent);
color: #fff;
}


.lang-switch img{
height: 18px;
}

.lang-switch2 img{
height: 18px;
}

.whitenoise{
height: 90px;
}

/* ===== Breakpoint : on bascule en mobile ===== */
@media (max-width: 1199px){
.site-nav{ display: none; }
.nav-burger{ display: block; }
.lang-mobile{ display: grid; }
.whitenoise{display: none;}
.annotation-body {padding: 20px;}
.sidebar h1 {margin: 20px 0;}
.app{overflow: hidden;}
.redhead {
width: 100%;
height: auto;
}

.redhead img{
padding: 42px 0;
}
}

/* Garde la barre lisible si l’écran est juste un peu trop étroit */
@media (min-width: 1200px){
.nav-links{ gap: clamp(10px, 2vw, 24px); }
.nav-link{ padding: 8px 10px; }
.lang-mobile{ display: none;}
}




.nav-links2{
text-align: center;
/* occupe toute la largeur → pas de lien qui "mord" hors du cadre */
width: 100%;
justify-content: space-between;
margin: 0;
padding: 0;
list-style: none;
font-weight: 300;
}

.center{
  display: flex;
  align-items: center;
  justify-content: center;
}


.lang-switch2{
margin-top: 8px;
padding: 8px 12px;
border-radius: 12px;
border: 1px solid var(--border);
background: color-mix(in srgb, var(--panel) 88%, transparent);
color: var(--text);
font-weight: 600;
cursor: pointer;
transition: background .2s ease, color .2s ease;
}
.lang-switch2:hover{
background: var(--accent);
color: #fff;
}


/* === FOOTER === */
.site-footer {
background: #FFFFFF;
border-top: 1px solid #D6DAE3;

  padding: 40px 20px;
  color: #000000;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
  gap: 24px;
}
.footer-logo {
  color: #3060ff;
  font-size: 22px;
  margin-bottom: 4px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.footer-links a {
  color: #D5D8E6;
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: #c50606; }

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.footer-socials img {
  width: 32px;
  height: 32px;
  filter: brightness(0.9);
  transition: filter 0.25s ease, transform 0.25s ease;
}
.footer-socials a:hover img {
  filter: brightness(1.3);
  transform: scale(1.1);
}

/* === Responsive === */
@media (max-width: 700px) {
  .creator-quote { font-size: 18px; }
  .footer-inner { text-align: center; grid-template-columns: 1fr; }


}