/* ===== Sacha Music Charts — styles globaux ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: #000; }
body {
  min-height: 100vh;
  background: #000;
  color: #f5f3ee;
  font-family: 'IBM Plex Sans', sans-serif;
  overflow-x: hidden;
}
::selection { background: #eeb927; color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a2822; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #eeb927; }

@keyframes smcFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes smcGlow { 0%,100% { opacity: .5; } 50% { opacity: .9; } }
@keyframes smcDrift { from { background-position: 0 0; } to { background-position: 64px 64px; } }
@keyframes smcMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes smcFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(-0.8deg); } }

/* Carte témoignage du hero (accueil) */
.avis-hero { animation: smcFloat 6.5s ease-in-out infinite; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .avis-hero { animation: none; } }

.smc-marquee-track { animation: smcMarquee 60s linear infinite; }
.smc-marquee-track:hover { animation-play-state: paused; }

/* Vue active / masquée */
.smc-view { display: none; animation: smcFadeUp .5s ease both; }
.smc-view.is-active { display: block; }

/* Hover / focus génériques (remplacent les style-hover du runtime d'origine) */
.btn-primary { transition: transform .2s, box-shadow .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(238,185,39,0.35); }

.btn-ghost { transition: border-color .2s, color .2s; }
.btn-ghost:hover { border-color: #eeb927; color: #eeb927; }

.link-underline { border-bottom: 1px solid transparent; transition: border-color .2s; }
.link-underline:hover { border-color: #eeb927; }

.card-lift { transition: transform .25s, border-color .25s, box-shadow .25s; }
.card-lift:hover { transform: translateY(-4px); border-color: rgba(238,185,39,0.5); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }

.card-channel { transition: border-color .25s, background .25s; }
.card-channel:hover { border-color: #eeb927; }

.res-card { transition: transform .25s, border-color .25s; }
.res-card:hover { transform: translateY(-4px); border-color: rgba(238,185,39,0.5); }

.formation-card { transition: border-color .3s, box-shadow .3s; }
.formation-card:hover { border-color: rgba(238,185,39,0.5); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }

.footer-link { transition: color .2s; }
.footer-link:hover { color: #eeb927; }

.nav-btn { transition: color .25s; }

.field { transition: border-color .2s; }
.field:focus { border-color: #eeb927; }
textarea.field { resize: vertical; line-height: 1.5; }

.ab-play { transition: background .2s, color .2s; }
.ab-play:hover { background: #eeb927; color: #000; }

/* ===== Navigation & footer partagés (multi-pages) ===== */
.smc-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(20px,5vw,72px); height: 74px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(238,185,39,0.16);
}
.smc-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.smc-dot { width: 11px; height: 11px; border-radius: 50%; background: #eeb927; box-shadow: 0 0 14px #eeb927; display: inline-block; flex: none; }
.smc-logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: #f5f3ee; white-space: nowrap; }
.smc-logo-text b, .smc-footer-brand b { color: #eeb927; font-weight: inherit; }
.smc-nav-links { display: flex; align-items: center; gap: clamp(6px,1.6vw,28px); }
.smc-nav-link {
  position: relative; padding: 6px 2px; text-decoration: none;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap; color: #9a968c; transition: color .25s;
}
.smc-nav-link:hover { color: #eeb927; }
.smc-nav-link.is-current { color: #eeb927; }
.smc-nav-link.is-current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: #eeb927; box-shadow: 0 0 12px #eeb927;
}
.smc-main { min-height: calc(100vh - 74px); animation: smcFadeUp .5s ease both; }

.smc-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 38px clamp(20px,5vw,72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.smc-footer-brand { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; }
.smc-footer-copy { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: #55524b; }

/* ===== Menu mobile (hamburger) ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(238,185,39,0.35);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #f5f3ee;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  #nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    right: clamp(20px,5vw,72px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px !important;
    margin-top: 10px;
    padding: 8px;
    min-width: 210px;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(238,185,39,0.22);
    border-radius: 10px;
    box-shadow: 0 22px 55px rgba(0,0,0,0.65);
  }
  #nav-links.open { display: flex !important; }
  #nav-links .smc-nav-link {
    padding: 13px 14px !important;
    text-align: left;
    border-radius: 6px;
  }
  #nav-links .smc-nav-link:hover { background: rgba(238,185,39,0.08); }
  #nav-links .smc-nav-link.is-current::after { display: none; }
}
@media (max-width: 680px) {
  .videos-grid { grid-template-columns: 1fr !important; }
  #audio-blocks { grid-template-columns: 1fr !important; }
  #avis-grid { column-count: 2 !important; }
  .avis-hero { max-width: 250px !important; margin-left: auto !important; margin-right: auto !important; }
  .testi-card { height: 220px !important; max-width: 78vw !important; border-radius: 12px !important; }
  .testi-img { max-width: 78vw !important; }
}
@media (max-width: 460px) {
  .testi-card { height: 190px !important; max-width: 82vw !important; }
  .testi-img { max-width: 82vw !important; }
}
@media (max-width: 460px) {
  #avis-grid { column-count: 1 !important; }
}
