/*
Theme Name: IJ44
Theme URI: https://ij44officiel.com
Author: DMO Groupe
Description: Thème sur mesure pour le site officiel du rappeur ivoirien IJ44. Site vitrine one-page, esthétique sombre et or, navigation par ancres. Conçu d'après le handoff de design IJ44 (variante de hero « Portrait »).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ij44
Tags: one-page, dark, music, artist
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Couleurs */
  --bg:            #0c0a06;
  --bg-alt:        #0a0805;
  --gold:          #d6b25c;
  --gold-light:    #e8c877;
  --text:          #f4ecd9;
  --text-hero:     #e6dcc4;
  --text-body:     #d3c9b0;
  --text-muted:    #c9bfa6;
  --text-meta:     #8a7f63;
  --text-placeholder: #6b5f3c;
  --text-copyright:   #5f5638;

  --border-gold-strong: rgba(214, 178, 92, .35);
  --border-gold-mid:    rgba(214, 178, 92, .2);
  --border-gold-soft:   rgba(214, 178, 92, .15);
  --border-gold-faint:  rgba(214, 178, 92, .12);
  --border-gold-hair:   rgba(214, 178, 92, .1);
  --border-light:       rgba(244, 236, 217, .3);
  --border-light-strong: rgba(244, 236, 217, .35);

  --hatch: repeating-linear-gradient(45deg, #1a160c, #1a160c 12px, #141009 12px, #141009 24px);
  --hatch-fine: repeating-linear-gradient(45deg, #1a160c, #1a160c 10px, #141009 10px, #141009 20px);

  /* Typographies */
  --font-display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'Courier New', monospace;

  /* Layout */
  --wrap:      1200px;
  --wrap-narrow: 1000px;
  --wrap-text: 820px;
  --gutter:    40px;
  --nav-height: 80px;

  --radius:    2px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

a:hover { color: var(--gold-light); }

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

/* Focus visible — cohérent partout, en or */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Lien d'évitement pour la navigation au clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
}

.skip-link:focus {
  left: 0;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2311; border-radius: 5px; }

/* Compense la nav fixe lors du saut vers une ancre */
section[id] { scroll-margin-top: var(--nav-height); }

/* ==========================================================================
   3. Utilitaires partagés
   ========================================================================== */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  width: 100%;
}

.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--text   { max-width: var(--wrap-text); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  margin: 0 0 44px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--solid {
  color: var(--bg);
  background: var(--gold);
  font-weight: 600;
}

.btn--solid:hover {
  background: var(--gold-light);
  color: var(--bg);
}

.btn--outline {
  color: var(--text);
  border-color: var(--border-light-strong);
  font-weight: 500;
  background: transparent;
}

.btn--outline:hover {
  color: var(--text);
  border-color: rgba(244, 236, 217, .6);
}

/* Glyphe ▶ en SVG — remplace le caractère Unicode du prototype */
.icon-play {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

/* Placeholders hachurés — à remplacer par les vrais médias */
.placeholder {
  background: var(--hatch);
  border: 1px solid var(--border-gold-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-placeholder);
  text-align: center;
  padding: 20px;
  line-height: 1.6;
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(#0c0a06ee, #0c0a0600);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--text);
}

.site-logo:hover { color: var(--text); }
.site-logo span  { color: var(--gold); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

.nav-link:hover { color: var(--gold); }

.nav-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 9px 18px;
  border-radius: var(--radius);
}

.nav-cta:hover {
  color: var(--bg);
  background: var(--gold-light);
}

/* Bouton burger — masqué au-dessus de 720px */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle span + span { margin-top: 5px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   5. Hero — variante « Portrait »
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Image large déjà recadrée : cadrage d'origine du handoff. */
  object-position: center 22%;
  filter: grayscale(1) contrast(1.08) brightness(.82);
  animation: kenburns 18s ease-out forwards alternate;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0c0a0699 0%, #0c0a0633 40%, #0c0a06e6 88%, #0c0a06 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter) 90px;
  animation: fadeUp .8s ease both;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 16vw, 200px);
  line-height: .82;
  letter-spacing: -2px;
  margin: 0;
  color: var(--text);
}

.hero-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 21px);
  color: var(--text-hero);
  max-width: 520px;
  margin: 20px 0 0;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-actions .btn {
  font-size: 14px;
  letter-spacing: 2px;
  padding: 15px 28px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.10); }
}

/* ==========================================================================
   6. Écouter
   ========================================================================== */

.section-listen {
  padding: 110px var(--gutter) 90px;
}

.section-listen .section-title { margin-bottom: 50px; }

.single {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.single-cover {
  flex: 0 0 320px;
  max-width: 100%;
}

.single-cover-inner {
  position: relative;
  aspect-ratio: 1;
}

.single-cover-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-gold-mid);
}

.cover-play {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
}

.cover-play:hover { background: var(--gold-light); }

.single-body {
  flex: 1;
  min-width: 280px;
}

.single-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}

.single-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 52px);
  margin: 0 0 16px;
  line-height: 1;
  text-transform: uppercase;
}

.single-desc {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 26px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platforms .btn {
  font-size: 13px;
  letter-spacing: 1px;
  padding: 12px 22px;
  font-weight: 500;
}

.platforms .btn--outline { border-color: var(--border-light); }

/* Liste de titres */
.tracklist {
  margin-top: 70px;
  border-top: 1px solid var(--border-gold-soft);
}

.track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border-gold-hair);
}

.track-index {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--gold);
  width: 34px;
  flex: none;
}

.track-play {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-gold-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gold);
  background: none;
  flex: none;
  cursor: pointer;
}

.track-play:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.track-meta { flex: 1; min-width: 0; }

.track-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  text-transform: uppercase;
}

.track-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-meta);
}

.track-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-meta);
  flex: none;
}

/* Bande image entre « Écouter » et « Clips » */
.band {
  margin: 70px 0 0;
  border: 1px solid var(--border-gold-soft);
  overflow: hidden;
}

.band img {
  width: 100%;
  height: clamp(260px, 42vw, 480px);
  object-fit: cover;
  object-position: center 32%;
  filter: grayscale(1) contrast(1.05);
}

/* ==========================================================================
   7. Clips
   ========================================================================== */

.section-clips { padding: 70px var(--gutter); }

.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.clip {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-gold-mid);
}

.clip.placeholder { padding: 0; }

.clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .2s ease, transform .2s ease;
}

.clip:hover img {
  filter: grayscale(.4);
  transform: scale(1.02);
}

.clip-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background-color .2s ease;
}

.clip:hover .clip-play { background: var(--gold-light); }

.clip-caption {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text);
}

/* ==========================================================================
   8. Bio
   ========================================================================== */

.section-bio {
  background: var(--bg-alt);
  padding: 100px var(--gutter);
  border-top: 1px solid var(--border-gold-faint);
  border-bottom: 1px solid var(--border-gold-faint);
}

.bio-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.bio-aside {
  flex: 0 0 380px;
  max-width: 100%;
}

.bio-sticky { position: sticky; top: 110px; }

.bio-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--border-gold-mid);
}

.bio-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-meta);
  margin-top: 12px;
  letter-spacing: 1px;
}

.bio-main {
  flex: 1;
  min-width: 300px;
}

.bio-main .section-title {
  font-size: clamp(38px, 6vw, 64px);
  margin-bottom: 30px;
}

.bio-text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.bio-text:last-of-type { margin-bottom: 40px; }
.bio-text strong { color: var(--text); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.stat { flex: 1; min-width: 140px; }

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-meta);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.timeline {
  border-left: 2px solid var(--gold);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0;
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--gold);
}

.timeline-text {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 4px 0 0;
}

/* ==========================================================================
   9. Dates
   ========================================================================== */

.section-dates { padding: 100px var(--gutter); }

.gig {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--border-gold-soft);
}

.gig:last-child { border-bottom: 1px solid var(--border-gold-soft); }
.gig--soon { opacity: .6; }

.gig-date { flex: 0 0 90px; }

.gig-day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
}

.gig-month {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-meta);
  letter-spacing: 1px;
}

.gig-place { flex: 1; min-width: 200px; }

.gig-city {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  text-transform: uppercase;
}

.gig-venue {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-meta);
}

.gig .btn {
  font-size: 13px;
  letter-spacing: 1px;
  padding: 12px 24px;
}

.gig-badge {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-meta);
  border: 1px solid rgba(214, 178, 92, .25);
  padding: 12px 24px;
  border-radius: var(--radius);
}

/* ==========================================================================
   10. Galerie
   ========================================================================== */

.section-gallery { padding: 70px var(--gutter); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-item {
  border: 1px solid var(--border-gold-soft);
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.05);
  transition: filter .2s ease, transform .2s ease;
}

.gallery-item:hover img {
  filter: grayscale(.4) contrast(1.05);
  transform: scale(1.02);
}

.gallery-item--feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid .placeholder {
  background: var(--hatch-fine);
  border-color: var(--border-gold-soft);
  font-size: 10px;
  padding: 10px;
}

/* ==========================================================================
   11. Contact + pied de page
   ========================================================================== */

.section-contact {
  background: var(--bg-alt);
  padding: 110px var(--gutter);
  border-top: 1px solid var(--border-gold-faint);
  text-align: center;
}

.section-contact .eyebrow { margin-bottom: 16px; }

.section-contact .section-title {
  font-size: clamp(40px, 7vw, 80px);
  line-height: .95;
  margin-bottom: 24px;
}

.contact-lead {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 auto 40px;
  max-width: 520px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.contact-actions .btn {
  font-size: 15px;
  letter-spacing: 2px;
  padding: 16px 34px;
}

.contact-actions .btn--outline { border-color: var(--border-light); }

.site-footer {
  padding: 60px var(--gutter) 44px;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--text);
}

.footer-logo span { color: var(--gold); }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-social a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-social a:hover { color: var(--gold); }

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-copyright);
  width: 100%;
  text-align: center;
  letter-spacing: 1px;
}

/* ==========================================================================
   12. Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .bio-aside { flex-basis: 100%; }
  .bio-sticky { position: static; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0c0a06f5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-gold-faint);
    border-bottom: 1px solid var(--border-gold-faint);
    padding: 8px 0 16px;
    display: none;
  }

  .nav-menu.is-open { display: flex; }

  .nav-link {
    padding: 14px var(--gutter);
    font-size: 15px;
  }

  .nav-cta {
    margin: 10px var(--gutter) 0;
    text-align: center;
    padding: 14px 18px;
    font-size: 13px;
  }

  .gallery-item--feature {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 600px) {
  :root { --gutter: 22px; }

  .section-listen { padding: 90px var(--gutter) 70px; }
  .section-bio,
  .section-dates { padding: 70px var(--gutter); }
  .section-contact { padding: 80px var(--gutter); }

  .hero-content { padding-bottom: 70px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

  /* Le sur-titre tient sur une ligne jusqu'à 360px de large. */
  .hero-overline { font-size: 11px; letter-spacing: 2.5px; }

  .single-cover { flex-basis: 100%; }
  .tracklist { margin-top: 50px; }
  .track { gap: 12px; }
  .track-name { font-size: 17px; }

  .stat-value { font-size: 42px; }

  .gig .btn,
  .gig-badge { width: 100%; justify-content: center; text-align: center; }

  .gallery-grid { grid-auto-rows: 160px; }

  .footer-social { gap: 16px; }
}

/* ==========================================================================
   13. Préférences d'accessibilité
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .hero-media img { animation: none; transform: scale(1.05); }
}

/* Lecture en cours : la pastille se remplit, la ligne passe en or */
.track-play.is-playing,
.cover-play.is-playing {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.track.is-playing .track-name,
.track.is-playing .track-index {
  color: var(--gold);
}

/* Le lecteur n'a pas d'interface propre : il est pilote par les pastilles */
#ij44-audio {
  display: none;
}
