/*
 * italopower-dark.css - Variante DARK CONTRASTEE
 * Meme palette sombre mais surfaces visibles, bordures nettes, lisibilite amelioree
 */

:root {
  --bg:          #060c1e;
  --bg-surface:  #0e1835;
  --bg-elevated: #162048;
  --bg-card:     #111d3f;
  --line:        rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.20);
  --text:        #f0f3ff;
  --text-dim:    #8e97b8;
  --text-muted:  #5a6280;
  --accent:      #f82249;
  --accent-soft: rgba(248,34,73,0.18);
  --it-green:        #009246;
  --it-green-bright: #1FB66B;
  --it-white:        #f0f3ff;
  --it-red:          #CE2B37;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --body:    'Familjen Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 80px;
}

body::before {
  content: ''; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(248,34,73,0.13), transparent 60%),
    radial-gradient(900px 600px at 0% 80%, rgba(0,146,70,0.08), transparent 65%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.t-green { color: var(--it-green-bright) !important; }
.t-red   { color: var(--accent) !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,12,30,0.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-strong);
}
.site-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand__logo { height: 38px; width: auto; }
.brand__tag {
  font-family: var(--body); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-dim); font-weight: 600; line-height: 1.4;
}
.nav { display: flex; gap: 30px; flex-wrap: wrap; }
.nav a {
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text); padding: 6px 0; position: relative;
  transition: color .25s, opacity .25s; opacity: .75;
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
#mobile-nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; padding: 4px; }
#mobile-nav { display: none; flex-direction: column; background: rgba(6,12,30,0.97); border-top: 1px solid var(--line); padding: 12px 0; }
#mobile-nav a { display: block; padding: 12px 24px; font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--line); transition: color .2s; }
#mobile-nav a:hover { color: var(--accent); }
#mobile-nav.is-open { display: flex; }

/* Hero */
.hero {
  max-width: 1240px; margin: 0 auto; padding: 80px 24px 60px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(248,34,73,.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(248,34,73,.18); }
  50%      { box-shadow: 0 0 0 10px rgba(248,34,73,0); }
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 132px);
  line-height: .92; letter-spacing: .01em;
  color: var(--text); text-transform: uppercase;
}
.hero__sub { font-size: 18px; color: var(--text-dim); margin-top: 22px; max-width: 540px; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__stats {
  margin-top: 36px; display: flex; gap: 36px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line-strong);
}
.stat__num { font-family: var(--display); font-size: 36px; letter-spacing: .02em; color: var(--text); line-height: 1; }
.stat__label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; font-weight: 600; }

/* Cover hero + bouton play overlay */
.now { position: relative; display: flex; flex-direction: column; align-items: center; }
.now__label {
  font-family: var(--display); font-size: 22px; letter-spacing: .35em;
  color: var(--text-dim); margin-bottom: 18px; text-transform: uppercase;
  position: relative; padding-left: 32px;
}
.now__label::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 20px; height: 2px; background: var(--accent); transform: translateY(-50%);
}
.cover-wrap {
  position: relative; width: min(440px, 90%); aspect-ratio: 1/1;
  border-radius: 4px; overflow: hidden; padding: 3px;
  background: linear-gradient(90deg, var(--it-green) 0 33.33%, var(--it-white) 33.33% 66.66%, var(--it-red) 66.66% 100%);
  box-shadow: 0 30px 80px -20px rgba(248,34,73,.4), 0 0 120px -20px rgba(248,34,73,.28);
  cursor: pointer;
  perspective: 1000px; transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.cover-wrap.is-flipping { transform: rotateY(180deg); }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; backface-visibility: hidden; }

/* Overlay play/pause sur la cover - toujours visible coin bas droite */
.cover-play-overlay {
  position: absolute; inset: 3px; border-radius: 2px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 12px;
  background: transparent; z-index: 2; pointer-events: none;
}
.cover-play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent);
  border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transform: scale(1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  pointer-events: none;
  flex-shrink: 0;
}
.cover-play-btn svg { width: 22px; height: 22px; }
.cover-play-btn.is-playing { background: rgba(30,58,122,0.95); }

.hero-np-info { margin-top: 16px; text-align: center; max-width: min(440px, 90%); }
.hero-np-artist { font-family: var(--display); font-size: 26px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); line-height: 1.1; }
.hero-np-title  { font-size: 18px; color: var(--text-dim); margin-top: 4px; }
.hero-np-year   { font-family: var(--display); font-size: 19px; letter-spacing: .15em; color: var(--text-muted); margin-top: 4px; }

/* Sections */
section { max-width: 1240px; margin: 0 auto; padding: 80px 24px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 36px;
}
.section-head h2 { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); letter-spacing: .01em; text-transform: uppercase; line-height: 1; color: var(--text); }
.section-head h2 em { color: var(--accent); font-style: normal; }
.section-head p { color: var(--text-dim); max-width: 480px; font-size: 15px; }
.rule { width: 56px; height: 3px; background: var(--accent); margin-bottom: 16px; }

/* Tracks - avec bordures visibles */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.track {
  display: grid; grid-template-columns: 64px 1fr auto;
  align-items: center; gap: 14px; padding: 10px 14px; border-radius: 8px;
  border: 1px solid #1e3a7a;
  background: transparent;
  transition: background .2s, border-color .2s;
}
.track:hover { background: rgba(30,58,122,0.18); border-color: #3a6fd8; }
.track__cover { width: 60px; height: 60px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong); flex-shrink: 0; }
.track__cover img { width: 100%; height: 100%; object-fit: cover; }
.track__info { min-width: 0; }
.track__name { font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__year { font-family: var(--display); font-size: 15px; letter-spacing: .12em; color: var(--text-muted); }
.chart-empty { color: var(--text-dim); font-size: 15px; padding: 20px 0; grid-column: 1/-1; }

/* About */
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about__card {
  background: var(--bg-card); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 28px 26px; position: relative; overflow: hidden;
}
.about__card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--it-green) 0 33.33%, var(--it-white) 33.33% 66.66%, var(--it-red) 66.66% 100%);
}
.about__card h3 { font-family: var(--display); font-size: 26px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; color: var(--text); }
.about__card p { color: var(--text-dim); font-size: 15px; }
.about__card p + p { margin-top: 12px; }

/* Contact */
.contact__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--bg-surface); padding: 32px; border-radius: 10px;
  border: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; color: var(--text); font: inherit; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.captcha-row { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; }
.captcha-row img { border-radius: 4px; }
.captcha-row input {
  flex: 1; max-width: 200px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; color: var(--text); font: inherit; transition: border-color .2s;
}
.captcha-row input:focus { outline: none; border-color: var(--accent); }
.submit-btn {
  grid-column: 1 / -1; background: var(--accent); color: var(--text); border: 0;
  padding: 14px 28px; border-radius: 999px;
  font: 600 13px/1 var(--body); letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: background .2s; justify-self: start;
}
.submit-btn:hover { background: #ff3a5e; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-strong); margin-top: 60px; padding: 50px 24px 30px; background: rgba(0,0,0,0.4); }
.site-footer__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--display); font-size: 18px; letter-spacing: .25em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.site-footer__brand p { color: var(--text-dim); font-size: 14px; margin-top: 12px; max-width: 360px; }
.it-flag { display: inline-block; width: 40px; height: 8px; margin-top: 16px; background: linear-gradient(90deg, var(--it-green) 0 33.33%, var(--it-white) 33.33% 66.66%, var(--it-red) 66.66% 100%); border-radius: 2px; }
.copyright { max-width: 1240px; margin: 30px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-align: center; }

/* Player bar */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(6,12,30,0.96); backdrop-filter: blur(14px);
  border-top: 2px solid var(--line-strong);
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,0.8);
}
.player-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--it-green) 0 33.33%, var(--it-white) 33.33% 66.66%, var(--it-red) 66.66% 100%);
}
.player-bar__inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.pb-info { min-width: 0; display: flex; align-items: center; gap: 14px; }
.pb-cover { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); flex-shrink: 0; }
.pb-live { font-family: var(--display); font-size: 13px; letter-spacing: .3em; color: var(--accent); display: flex; align-items: center; gap: 8px; text-transform: uppercase; white-space: nowrap; }
.pb-live::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(248,34,73,.18); animation: pulse 2.2s ease-in-out infinite; flex-shrink: 0; }
.pb-track { min-width: 0; }
.pb-track__name { font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-track__year { font-family: var(--display); font-size: 13px; letter-spacing: .14em; color: var(--text-muted); }
.pb-controls { display: flex; align-items: center; gap: 10px; }
.pb-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--line-strong); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.pb-btn:hover { background: rgba(248,34,73,0.15); border-color: var(--accent); color: var(--accent); }
.pb-btn--play { width: 56px; height: 56px; background: var(--accent); border-color: var(--accent); color: var(--text); box-shadow: 0 0 30px -8px rgba(248,34,73,.6); }
.pb-btn--play:hover { background: #ff3a5e; color: var(--text); }
.pb-btn svg { width: 18px; height: 18px; }
.pb-btn--play svg { width: 22px; height: 22px; }
.pb-vol { position: relative; }
.vol-horiz-wrap { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px); background: var(--bg-elevated); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 16px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; width: 160px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 16px 40px -10px rgba(0,0,0,0.7); white-space: nowrap; }
.pb-vol:hover .vol-horiz-wrap, .pb-vol:focus-within .vol-horiz-wrap { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.vol-horiz-track { width: 100%; display: flex; align-items: center; gap: 8px; }
.vol-horiz-track input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); outline: none; cursor: pointer; }
.vol-horiz-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px var(--bg-elevated), 0 0 0 4px var(--accent); cursor: pointer; }
.vol-horiz-track input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px var(--bg-elevated), 0 0 0 4px var(--accent); cursor: pointer; border: none; }
.vol-label { font-family: var(--display); font-size: 14px; letter-spacing: .1em; color: var(--text-dim); }
.pb-btn.is-muted { color: var(--text-muted); border-color: var(--text-muted); }
.pb-share { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.pb-share__label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.pb-share a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--line-strong); color: var(--text-dim); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s; }
.pb-share a:hover { color: var(--text); border-color: var(--accent); background: rgba(248,34,73,0.15); }
.pb-share svg { width: 16px; height: 16px; }

/* Cookie */
.cookie-popup { display: none; position: fixed; z-index: 200; bottom: 80px; left: 0; right: 0; padding: 12px 20px; background: #1a1f35; color: #eee; text-align: center; border-top: 1px solid var(--line-strong); font-size: 13px; }
.cookie-popup a { color: var(--accent); text-decoration: underline; }
.accept-btn { background: #4CAF50; color: #fff; border: none; padding: 8px 18px; font-size: 14px; cursor: pointer; margin-left: 10px; border-radius: 4px; }
.accept-btn:hover { background: #3e8e41; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 50px 20px 30px; }
  .tracks { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
  .captcha-row { grid-column: 1; }
  .submit-btn { grid-column: 1; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .nav { display: none; }
  #mobile-nav-toggle { display: block; }
  .player-bar__inner { grid-template-columns: 1fr auto; gap: 12px; padding: 0 14px; height: 70px; }
  .pb-share { display: none; }
  .pb-live { display: none; }
  .pb-btn { width: 40px; height: 40px; }
  .pb-btn--play { width: 50px; height: 50px; }
  body { padding-bottom: 72px; }
}
