/* ==================================================
   BodyNerd · Protocole de Sueur
   Student work: Mars Acoursou
   Trainer: Mares P. W.
   Framework: FuTuRisN

   MAIN STYLESHEET ¡ª TEACHING DOCUMENT

   Project logic:
   This CSS is not only decoration.
   It teaches how a visual system is built from:
   1. design tokens,
   2. layout rules,
   3. media behaviour,
   4. responsive adaptation,
   5. accessibility and readability choices.

   Visual identity:
   - black technical surface
   - red intensity / sweat / threshold
   - cyan-blue neuromuscular signal
   - readable French interface
   - industrial album-cover logic without unreadable typography

   Student note:
   Change variables first before changing isolated rules.
   That is how a real visual system stays coherent.
   ================================================== */


/* ==================================================
   1. DESIGN TOKENS

   These variables define the global visual identity.
   A student can safely modify colors, radius, fonts or
   shadows here and see the whole interface change.
   ================================================== */

:root{
  --bg:#050506;
  --bg2:#0b0d10;

  --panel:#101218;
  --panel2:#171a22;

  --paper:#f2f2ee;
  --text:#e7e7e1;
  --muted:#a9adb6;

  --red:#e12a20;
  --red2:#9e1712;

  --cyan:#19bfff;
  --blue:#0b67c4;

  --line:rgba(225,42,32,.38);
  --line2:rgba(25,191,255,.28);

  --shadow:0 24px 80px rgba(0,0,0,.48);
  --radius:24px;

  --font-body:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --font-title:"Arial Narrow",Impact,"League Spartan",system-ui,sans-serif;
}


/* ==================================================
   2A. GLOBAL RESET / BASE

   Teaching goal:
   A reset removes browser inconsistencies.
   Then the body defines the global atmosphere.
   ================================================== */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:
    radial-gradient(circle at 72% 10%,rgba(225,42,32,.22),transparent 28%),
    radial-gradient(circle at 42% 18%,rgba(25,191,255,.13),transparent 24%),
    linear-gradient(135deg,#050506 0,#0b0d10 52%,#020202 100%);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.58;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
textarea{
  font:inherit;
}

code{
  color:#bceeff;
  background:rgba(25,191,255,.09);
  padding:.08rem .32rem;
  border-radius:6px;
}

*::selection{
  background:var(--red);
  color:#fff;
}

/* ==================================================
   2B. BODYNERD POINTER SYSTEM

   Teaching goal:
   The cursor is part of the interface atmosphere.
   We avoid the default web pointer where possible and use
   a sharper arrow-like technical pointer.

   Important:
   Text fields keep the normal text cursor for usability.
   ================================================== */

html,
body{
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M5 3 L22 14 L14.5 16.2 L11.6 24 L5 3 Z' fill='%23e12a20' stroke='%23f2f2ee' stroke-width='1.2'/%3E%3Cpath d='M13 14 L22 14' stroke='%2319bfff' stroke-width='1.4'/%3E%3C/svg%3E") 4 4, auto;
}

a,
button,
summary,
[role="button"],
.tab-btn,
.button,
.share-button,
.floating-share-btn,
.to-top-btn{
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M4 15 H22' stroke='%23e12a20' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M15 7 L23 15 L15 23' fill='none' stroke='%23f2f2ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='24' cy='15' r='3' fill='%2319bfff'/%3E%3C/svg%3E") 15 15, pointer;
}

input,
textarea,
[contenteditable="true"]{
  cursor:text;
}

/* ==================================================
   3. READABLE HEADING SCALE

   Teaching goal:
   Industrial design often becomes too heavy.
   Here we keep power but reduce visual clogging.

   Testing note:
   To deactivate a rule for testing, put comment markers
   around only that line. To reactivate it, remove them.
   ================================================== */

.hero h1{
  font-size:clamp(2.8rem,6.8vw,6.8rem);
  line-height:.98;
  letter-spacing:.005em;
  font-weight:600;
  max-width:900px;
}

.section h2,
.section-head h2{
  font-size:clamp(1.9rem,3.6vw,3.7rem);
  line-height:1.05;
  letter-spacing:.005em;
  font-weight:600;
}

.song-card h3{
  font-size:clamp(1.5rem,2.9vw,2.85rem);
  line-height:1.06;
  letter-spacing:.003em;
  font-weight:600;
}

.eyebrow{
  font-size:.72rem;
  letter-spacing:.14em;
}

.full-player-copy h3,
.visual-archive h3,
.annex-card h3{
  font-size:clamp(1.35rem,2.3vw,2.2rem);
  line-height:1.08;
  font-weight:600;
}


/* ==================================================
   4. NAVIGATION FLOTTANTE

   Teaching goal:
   The navigation remains visible at all times.
   It behaves like a floating control bar, not like a
   heavy header glued to the page.

   Visual logic:
   - black glass surface,
   - red/cyan technical border,
   - compact album-interface behaviour.
   ================================================== */

.topbar{
  position:fixed;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  z-index:90;

  width:min(calc(100% - 36px),1280px);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;

  padding:14px 18px;
  border:1px solid rgba(225,42,32,.24);
  border-radius:999px;

  background:
    radial-gradient(circle at 12% 50%,rgba(225,42,32,.12),transparent 32%),
    radial-gradient(circle at 88% 50%,rgba(25,191,255,.08),transparent 30%),
    rgba(5,5,6,.84);

  backdrop-filter:blur(18px);
  box-shadow:
    0 18px 60px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.035);
}

.brand{
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.brand span{
  display:block;
  font-family:var(--font-title);
  font-size:1.25rem;
  line-height:1;
  color:var(--paper);
  letter-spacing:.05em;
  font-weight:600;
}

.brand small{
  display:block;
  color:var(--muted);
  font-size:.72rem;
  letter-spacing:.16em;
  margin-top:4px;
}

.navlinks{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.navlinks a{
  color:var(--muted);
  font-weight:600;
  font-size:.88rem;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.navlinks a:hover{
  color:#fff;
}

.menu-toggle{
  display:none;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  color:#fff;
  border-radius:12px;
  padding:8px 12px;
}

html{
  scroll-behavior:smooth;
  scroll-padding-top:120px;
}

/* ==================================================
   5. HERO

   Teaching goal:
   The hero section sets the whole atmosphere.
   It uses the album front cover as background, but darkens
   it enough so text remains readable.
   ================================================== */

.hero{
  min-height:100vh;
  background:
    linear-gradient(90deg,rgba(5,5,6,.95) 0,rgba(5,5,6,.68) 48%,rgba(5,5,6,.88) 100%),
    url('assets/images/front.jpg') center/cover fixed;
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(25,191,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(225,42,32,.04) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(to bottom,black,transparent 88%);
}

.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(280px,520px);
  gap:clamp(28px,5vw,72px);
  align-items:center;
  padding:132px clamp(18px,6vw,92px) 98px;
}

.hero-copy{
  max-width:900px;
}

.eyebrow{
  display:inline-block;
  padding:.42rem .72rem;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(0,0,0,.48);
  color:var(--red);
  text-transform:uppercase;
  font-weight:600;
}

.hero h1{
  margin:.18em 0 .16em;
  color:var(--paper);
  font-family:var(--font-title);
  text-transform:uppercase;
  text-shadow:
    0 0 34px rgba(225,42,32,.25),
    0 0 22px rgba(25,191,255,.16);
}

.hero h1 span{
  color:var(--red);
  font-size:.54em;
  letter-spacing:.08em;
}

.lead{
  font-size:clamp(1.08rem,2vw,1.42rem);
  max-width:760px;
  color:#dfe2e7;
}

.actions,
.song-tools,
.full-player-actions,
.footer-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}


/* ==================================================
   6. BUTTONS

   Teaching goal:
   Shared button styling avoids repetition.
   Primary buttons show the main action.
   Secondary buttons stay readable but calmer.
   ================================================== */

.button,
.share-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:.78rem 1rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
  transition:.2s;
}

.button:hover,
.share-button:hover{
  transform:translateY(-2px);
  border-color:var(--line2);
}

.button.primary{
  background:linear-gradient(135deg,var(--red),var(--red2));
  border:none;
  box-shadow:0 14px 34px rgba(225,42,32,.28);
}


/* ==================================================
   7. HERO ART

   Teaching goal:
   Images should reinforce the identity without becoming
   unreadable or distorted.
   ================================================== */

.hero-art{
  margin:0;
  padding:10px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius);
  background:rgba(255,255,255,.05);
  box-shadow:var(--shadow);
}

.hero-art img{
  border-radius:18px;
  aspect-ratio:1/1;
  object-fit:cover;
}


/* ==================================================
   8. GENERAL SECTIONS

   Teaching goal:
   Sections create rhythm. Borders, padding and subtle
   background changes help the user understand structure.
   ================================================== */

.section{
  padding:78px clamp(18px,6vw,90px);
  border-top:1px solid rgba(255,255,255,.08);
}

.section:nth-of-type(even){
  background:rgba(255,255,255,.025);
}

.section-head{
  max-width:880px;
  margin-bottom:30px;
}

.section h2,
.visual-archive h3,
.full-player-copy h3,
.song-card h3,
.pedagogy-grid h3{
  font-family:var(--font-title);
  text-transform:uppercase;
  color:var(--paper);
}

.section h2{
  margin:.15em 0;
}

.section-note,
.support-note,
.missing-note,
.download-help{
  color:var(--muted);
}

.text-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  font-size:1.08rem;
}

.text-columns p{
  margin-top:0;
}


/* ==================================================
   9. PANELS / CARDS

   Teaching goal:
   These components use the same visual language:
   glass-dark panel, red/cyan energy, border and shadow.
   ================================================== */

.full-album-player,
.annex-card,
.visual-archive,
.pedagogy-grid article,
.feedback-form{
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  background:
    radial-gradient(circle at 74% 12%,rgba(25,191,255,.09),transparent 28%),
    radial-gradient(circle at 18% 82%,rgba(225,42,32,.11),transparent 32%),
    rgba(8,9,12,.78);
  box-shadow:var(--shadow);
}

.full-album-player{
  padding:clamp(22px,4vw,42px);
  margin-top:34px;
}

.full-player-copy h3{
  margin:.2em 0;
}

audio{
  width:100%;
  accent-color:var(--red);
}

.full-album-player audio{
  margin-top:14px;
}


/* ==================================================
   10. VISUAL ARCHIVE

   Teaching goal:
   Album images stay square because they are album-cover
   assets. Avoid random crops and layout distortion.
   ================================================== */

.wide-art{
  margin:40px auto 0;
  max-width:760px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:10px;
  background:#050506;
  box-shadow:var(--shadow);
}

.wide-art img{
  border-radius:18px;
  aspect-ratio:1/1;
  object-fit:cover;
}

.visual-archive{
  margin-top:36px;
  padding:28px;
}

.visual-archive h3{
  margin:0 0 8px;
}

.archive-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:16px;
  margin-top:22px;
}

.archive-grid a{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:#000;
}

.archive-grid img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  transition:.25s;
}

.archive-grid a:hover img{
  transform:scale(1.04);
  filter:brightness(1.12);
}


/* ==================================================
   11. TRACK INDEX

   Teaching goal:
   The index is generated by JavaScript from data.js.
   CSS only controls its visual behaviour.
   ================================================== */

.song-index{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:10px;
  margin-bottom:38px;
}

.song-index a{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:12px 14px;
  background:rgba(255,255,255,.055);
  font-weight:600;
}

.song-index a:hover{
  border-color:var(--line);
  background:rgba(225,42,32,.12);
}

.song-index small{
  color:var(--red);
  margin-right:8px;
  font-weight:600;
}


/* ==================================================
   12. TRACK CARDS

   Teaching goal:
   Each card combines:
   - image / animated video,
   - audio,
   - download actions,
   - lyrics and system-reading tabs.
   ================================================== */

.songs{
  display:grid;
  gap:34px;
}

.song-card{
  display:grid;
  grid-template-columns:minmax(280px,40%) 1fr;
  gap:28px;
  padding:18px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  box-shadow:var(--shadow);
}

.song-media{
  position:sticky;
  top:92px;
  align-self:start;
}

.song-media figure{
  margin:0;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.14);
  overflow:hidden;
  background:#000;
}

.song-number{
  color:var(--red);
  letter-spacing:.18em;
  font-size:1.05rem;
  font-weight:600;
}

.song-card h3{
  margin:.18em 0 .12em;
}


/* ==================================================
   13. ANIMATED VISUALS

   Teaching goal:
   The static image appears first.
   The MP4 appears only on hover or viewport via JavaScript.
   This protects performance and avoids all videos playing
   at the same time.
   ================================================== */

.animated-slot{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
}

.animated-slot .song-static,
.animated-slot .song-animation{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:20px;
}

.animated-slot .song-static{
  position:relative;
  z-index:1;
  opacity:1;
  transition:opacity .32s ease,transform .8s ease;
}

.animated-slot .song-animation{
  position:absolute;
  inset:0;
  z-index:2;
  opacity:0;
  transition:opacity .32s ease;
  pointer-events:none;
  background:#000;
}

.animated-slot.is-playing .song-static{
  opacity:0;
}

.animated-slot.is-playing .song-animation{
  opacity:1;
}

.motion-hint{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:3;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line2);
  background:rgba(0,0,0,.62);
  color:#dff6ff;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.75rem;
  backdrop-filter:blur(8px);
}

.animated-slot.is-playing .motion-hint,
.animated-slot.video-failed .motion-hint{
  display:none;
}


/* ==================================================
   14A. AUDIO PLAYER

   Teaching goal:
   Native audio controls remain because accessibility and
   browser compatibility matter more than over-styling.
   ================================================== */

.audio-box{
  margin:18px 0 0;
  padding:16px;
  border:1px solid rgba(225,42,32,.24);
  border-radius:20px;
  background:
    linear-gradient(135deg,rgba(225,42,32,.10),transparent 34%),
    radial-gradient(circle at 92% 12%,rgba(25,191,255,.09),transparent 28%),
    linear-gradient(180deg,rgba(255,255,255,.045),rgba(0,0,0,.34)),
    rgba(5,5,6,.72);
  box-shadow:
    0 18px 50px rgba(0,0,0,.38),
    inset 0 0 0 1px rgba(255,255,255,.035);
  display:grid;
  gap:12px;
  position:relative;
  overflow:hidden;
}

.audio-box::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:linear-gradient(to bottom,var(--red),var(--cyan),var(--red));
  opacity:.75;
}

.audio-box-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-left:4px;
}

.audio-box-title{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:.78rem;
  font-weight:700;
}

.audio-box-title::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 16px rgba(225,42,32,.85);
}

.audio-box audio{
  width:100%;
  display:block;
  margin:0;
  accent-color:var(--red);
  filter:saturate(.88) contrast(1.05);
}

.audio-meta-row{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:10px;
  align-items:stretch;
}

.audio-meta-pill{
  min-height:62px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.095);
  border-radius:14px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018)),
    rgba(0,0,0,.26);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}

.audio-meta-label{
  display:block;
  color:var(--muted);
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.13em;
  line-height:1.2;
}

.audio-meta-pill strong{
  color:#fff;
  font-size:.95rem;
  font-weight:700;
  line-height:1.25;
}

.audio-meta-pill-link{
  text-decoration:none;
  border-color:rgba(25,191,255,.20);
  transition:
    background .22s ease,
    border-color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.audio-meta-pill-link strong{
  color:#f2f2ee;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.82rem;
}

.audio-meta-pill-link:hover,
.audio-meta-pill-link:focus-visible{
  border-color:rgba(225,42,32,.50);
  background:
    linear-gradient(135deg,rgba(225,42,32,.14),rgba(25,191,255,.06)),
    rgba(0,0,0,.32);
  box-shadow:inset 0 0 0 1px rgba(225,42,32,.12);
  transform:translateY(-1px);
}

.audio-meta-pill-link:hover strong,
.audio-meta-pill-link:focus-visible strong{
  color:#fff;
}

.audio-meta-pill-link:focus-visible{
  outline:2px solid rgba(225,42,32,.38);
  outline-offset:2px;
}

@media (max-width:640px){
  .audio-meta-row{
    grid-template-columns:1fr;
  }

  .audio-meta-pill{
    min-height:auto;
  }
}

/* ==================================================
   14B. DARK NATIVE AUDIO CONTROL

   Teaching goal:
   Native audio players are controlled by the browser.
   We cannot fully redesign every internal button everywhere,
   but we can force a darker visual behaviour where supported.

   Works best in Chromium-based browsers.
   Firefox respects color-scheme more than pseudo-controls.
   ================================================== */

audio{
  width:100%;
  accent-color:var(--red);
  color-scheme:dark;
}

.audio-box audio,
.full-album-player audio{
  border-radius:999px;
  background:#08090c;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10),
    0 12px 30px rgba(0,0,0,.28);
}

/* Chrome / Edge / Safari-style internal media controls */
audio::-webkit-media-controls-enclosure{
  border-radius:999px;
  background:
    linear-gradient(135deg,rgba(225,42,32,.22),rgba(25,191,255,.08)),
    #101116;
}

audio::-webkit-media-controls-panel{
  background:
    linear-gradient(135deg,rgba(225,42,32,.18),rgba(25,191,255,.07)),
    #101116;
  color:#fff;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-overflow-button{
  filter:invert(1) brightness(1.2);
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display{
  color:#f2f2ee;
  text-shadow:none;
}

audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-volume-slider{
  filter:saturate(.8) brightness(.9);
}

/* ==================================================
   15. TRACK METADATA

   Teaching goal:
   Metadata helps the student understand that each track
   is also a small data object.
   ================================================== */

.track-meta{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:16px 0 18px;
}

.track-meta div{
  padding:12px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  background:rgba(255,255,255,.045);
}

.track-meta span{
  display:block;
  color:var(--muted);
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.track-meta strong{
  color:#fff;
  font-weight:600;
}

/* ==================================================
   16. TABS: PROTOCOLE / LECTURE SYSTÈME
   
   Teaching goal:
   JavaScript switches the active class.
   CSS decides which panel is visible.

   1. Protocole = lyrics from data.js
   2. Lecture syst¨¨me = analysis from data.js
   3. The song card must stay readable.
   4. Long lyrics should not force the whole page scroll.
   5. Lyrics and analysis get their own internal scroll area.
   ================================================== */

.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:18px 0;
}

.tab-btn{
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:.72rem 1rem;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.tab-btn:hover{
  border-color:var(--line2);
  background:rgba(25,191,255,.08);
}

.tab-btn.active{
  background:linear-gradient(135deg,var(--red),var(--red2));
  border-color:var(--red);
}

.tab-panel{
  display:none;
  max-height:min(58vh, 560px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:20px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(0,0,0,.20)),
    rgba(0,0,0,.38);
  color:#e8e8e2;
  font-size:1rem;
  line-height:1.62;
}

.tab-panel.active{
  display:block;
}

/* 1. Protocole: preserves song-part labels and line breaks. */
.lyrics{
  white-space:pre-wrap;
  font-family:var(--font-body);
}

/* 2. Lecture système: explanatory reading, not lyrics layout. */
.analysis{
  white-space:normal;
  border-color:rgba(25,191,255,.22);
  background:
    radial-gradient(circle at 92% 8%,rgba(25,191,255,.08),transparent 28%),
    radial-gradient(circle at 12% 90%,rgba(225,42,32,.08),transparent 32%),
    rgba(0,0,0,.40);
}

.analysis p:first-child{
  margin-top:0;
}

.analysis p:last-child{
  margin-bottom:0;
}

.analysis strong{
  color:#fff;
  font-weight:600;
}

.analysis em{
  color:var(--cyan);
  font-style:normal;
}

/* Internal scrollbar — BodyNerd visual line */
.tab-panel::-webkit-scrollbar{
  width:10px;
}

.tab-panel::-webkit-scrollbar-track{
  background:rgba(255,255,255,.045);
  border-radius:999px;
}

.tab-panel::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,var(--red),rgba(25,191,255,.65));
  border-radius:999px;
  border:2px solid rgba(0,0,0,.35);
}

.tab-panel::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#ff3a2e,var(--cyan));
}

@media (max-width:760px){
  .tab-panel{
    max-height:52vh;
  }
}
/* ==================================================
   17. PEDAGOGY / ANNEX / FEEDBACK

   Teaching goal:
   These sections make the site readable as a school,
   training or STI2D/SIN-oriented project.
   ================================================== */

.annex-card{
  padding:clamp(24px,4vw,46px);
  font-size:1.08rem;
  color:#f0f1ed;
}

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

.pedagogy-grid article{
  padding:26px;
}

.pedagogy-grid h3 {
    margin: .1em 0;
    color: var(--red);
    letter-spacing: 0.5rem;
    font-weight: 600;
}

.feedback-form{
  max-width:820px;
  padding:26px;
}

.feedback-form label{
  display:block;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#fff;
}

/* ==================================================
   CONTACT SECTION — CENTERED EDITORIAL BLOCK
   ================================================== */

.feedback{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.feedback .section-head{
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}

.feedback-form{
  width:min(100%,820px);
  margin:0 auto;
  padding:26px;
  text-align:left;
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  background:
    radial-gradient(circle at 78% 18%,rgba(25,191,255,.08),transparent 28%),
    radial-gradient(circle at 18% 82%,rgba(225,42,32,.10),transparent 32%),
    rgba(8,9,12,.78);
  box-shadow:var(--shadow);
}

.feedback-form label{
  display:block;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#fff;
}

.feedback-form textarea{
  width:100%;
  margin-top:12px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  background:#08090c;
  color:#fff;
  padding:16px;
  resize:vertical;
  min-height:160px;
}

.feedback-form button{
  margin-top:16px;
}

.privacy-section a{
  color:var(--cyan);
  font-weight:600;
}


/* ==================================================
   18A. FOOTER / SHARE / BACK TO TOP

   Teaching goal:
   The footer closes the system and keeps authorship clear.
   ================================================== */

.footer{
  padding:38px clamp(18px,6vw,90px);
  background:#020202;
  border-top:1px solid rgba(255,255,255,.1);
  color:var(--muted);
}

.footer strong{
  color:#fff;
  font-weight:600;
}

.footer p{
  margin:4px 0;
}

.share-button{
  background:rgba(255,255,255,.05);
}

.to-top-btn{
  position:fixed;
  right:18px;
  bottom:86px;
  z-index:86;
  width:48px;
  height:48px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--red);
  color:#fff;
  font-weight:600;
  opacity:0;
  pointer-events:none;
  transition:.2s;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}

.to-top-btn.visible{
  opacity:1;
  pointer-events:auto;
}

.noscript-warning{
  padding:18px;
  background:var(--red);
  color:#fff;
  font-weight:600;
  text-align:center;
}

/* ==================================================
   18B. FLOATING SHARE DOCK

   Teaching goal:
   The visitor should always have access to:
   - share,
   - copy link,
   - Bandcamp support.

   Visual logic:
   Same spirit as pepe.futurisn.com, adapted to BodyNerd:
   compact black dock, red/cyan signal, circular controls.
   ================================================== */

.floating-share-dock{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:85;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:9px 12px;
  border:1px solid rgba(225,42,32,.26);
  border-radius:999px;

  background:
    radial-gradient(circle at 18% 50%,rgba(225,42,32,.14),transparent 34%),
    radial-gradient(circle at 82% 50%,rgba(25,191,255,.10),transparent 30%),
    rgba(5,5,6,.88);

  backdrop-filter:blur(16px);
  box-shadow:
    0 18px 60px rgba(0,0,0,.48),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.floating-share-dock{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:85;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:9px 12px;
  border:1px solid rgba(225,42,32,.26);
  border-radius:999px;

  background:
    radial-gradient(circle at 18% 50%,rgba(225,42,32,.14),transparent 34%),
    radial-gradient(circle at 82% 50%,rgba(25,191,255,.10),transparent 30%),
    rgba(5,5,6,.88);

  backdrop-filter:blur(16px);
  box-shadow:
    0 18px 60px rgba(0,0,0,.48),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.floating-share-btn{
  min-width:42px;
  width:auto;
  height:42px;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);

  background:
    linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025)),
    rgba(0,0,0,.36);

  color:#f2f2ee;
  font-weight:800;
  font-size:.86rem;
  line-height:1;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}

.floating-share-btn:hover,
.floating-share-btn:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(225,42,32,.62);
  background:
    linear-gradient(135deg,rgba(225,42,32,.42),rgba(25,191,255,.12)),
    rgba(0,0,0,.42);
  color:#fff;
  box-shadow:0 0 24px rgba(225,42,32,.24);
}

.floating-buy-btn{
  padding:0 18px;
  color:#fff;
  border-color:rgba(225,42,32,.45);
  background:
    linear-gradient(135deg,rgba(225,42,32,.72),rgba(158,23,18,.82)),
    rgba(0,0,0,.42);
  box-shadow:0 0 22px rgba(225,42,32,.18);
}

.floating-buy-btn:hover,
.floating-buy-btn:focus-visible{
  border-color:rgba(25,191,255,.45);
  background:
    linear-gradient(135deg,rgba(225,42,32,.85),rgba(25,191,255,.18)),
    rgba(0,0,0,.45);
}

@media (max-width:640px){
  .floating-share-dock{
    bottom:12px;
    gap:7px;
    padding:8px;
    max-width:calc(100% - 20px);
    overflow-x:auto;
    scrollbar-width:none;
  }

  .floating-share-dock::-webkit-scrollbar{
    display:none;
  }

  .floating-share-btn{
    min-width:auto;
    width:auto;
    height:40px;
    padding:0 12px;
    font-size:.76rem;
    flex:0 0 auto;
  }

  .floating-buy-btn{
    padding:0 14px;
  }

  .to-top-btn{
    right:12px;
    bottom:76px;
  }
}

/* ==================================================
   19. RESPONSIVE DESIGN

   Teaching goal:
   On smaller screens:
   - columns become one column,
   - sticky media stops being sticky,
   - navigation becomes collapsible,
   - headers remain strong but readable.
   ================================================== */

@media (max-width:980px){
  .hero-grid,
  .song-card,
  .text-columns{
    grid-template-columns:1fr;
  }

  .song-media{
    position:relative;
    top:auto;
  }

  .pedagogy-grid{
    grid-template-columns:1fr;
  }

  .track-meta{
    grid-template-columns:1fr;
  }
}

@media (max-width:760px){
  .topbar{
    top:12px;
    width:calc(100% - 24px);
    border-radius:22px;
    align-items:center;
  }

  .menu-toggle{
    display:block;
  }

  .navlinks{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 10px);
    padding:16px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:20px;
    background:
      radial-gradient(circle at 12% 20%,rgba(225,42,32,.10),transparent 30%),
      rgba(8,9,12,.96);
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:stretch;
  }

  .navlinks.open{
    display:flex;
  }

  .navlinks a{
    padding:.7rem .8rem;
    color:#fff;
  }
  
  .hero{
    min-height:auto;
    background-attachment:scroll;
  }
  
    .hero-grid{
    padding:118px 18px 70px;
  }

  .section{
    padding:62px 18px;
  }

  .hero h1{
    font-size:clamp(2.35rem,11vw,4.3rem);
    line-height:1;
  }

  .section h2,
  .section-head h2{
    font-size:clamp(1.75rem,8vw,3rem);
  }

  .song-card h3{
    font-size:clamp(1.45rem,7.5vw,2.45rem);
  }

  .archive-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* ==================================================
   20. REDUCED MOTION

   Teaching goal:
   Respect users who disable motion.
   This is accessibility, not decoration.
   ================================================== */

@media (prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    animation-duration:.001ms!important;
    transition-duration:.001ms!important;
  }

  .animated-slot .song-animation{
    display:none;
  }

  .motion-hint{
    display:none;
  }
}

/* ==================================================
   21. BANDCAMP LINKS

   Teaching goal:
   External purchase/listening links are visually clear,
   readable, and consistent with the red/cyan identity.
   ================================================== */

.support-note a,
.download-help a,
.footer a,
.annex-card a{
  color:#f2f2ee;
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid rgba(225,42,32,.55);
}

.support-note a:hover,
.download-help a:hover,
.footer a:hover,
.annex-card a:hover{
  color:var(--red);
  border-bottom-color:var(--red);
}

.missing-note strong{
  color:#fff;
  font-weight:600;
}
