/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
 --bg: #0a0a0f;
 --bg-soft: #0f0f17;
 --card: #14141f;
 --text: #ececf2;
 --dim: #9a9aab;
 --hot: #ff4d2e; /* musique — red cup */
 --hot-soft: rgba(255, 77, 46, 0.12);
 --cold: #4cc9f0; /* code — red cpu */
 --cold-soft: rgba(76, 201, 240, 0.10);
 --border: rgba(255, 255, 255, 0.08);
 --radius: 16px;
 --max: 980px;
}

html { scroll-behavior: smooth; }

body {
 font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
 background: var(--bg);
 color: var(--text);
 line-height: 1.6;
 -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
section { scroll-margin-top: 80px; }

/* ===== Header ===== */
.header {
 position: sticky; top: 0; z-index: 100;
 background: rgba(10, 10, 15, 0.82);
 backdrop-filter: blur(12px);
 border-bottom: 1px solid var(--border);
}
.header__inner {
 display: flex; align-items: center; justify-content: space-between;
 height: 64px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.logo-text.dim { color: var(--dim); font-weight: 500; }

/* Logo SVG */
.logo-mark {
 width: 38px; height: 38px;
 display: block;
 transition: transform 0.2s, filter 0.2s;
 filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}
.logo:hover .logo-mark {
 transform: scale(1.05);
 filter: drop-shadow(0 0 8px rgba(255, 77, 46, 0.4));
}

.nav { display: flex; gap: 28px; }
.nav a { color: var(--dim); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
 position: relative;
 display: grid; place-items: center;
 text-align: center;
 min-height: 88vh;
 padding: 110px 24px;
 overflow: hidden;
}
.hero__glow-hot,
.hero__glow-cold {
 position: absolute; width: 480px; height: 480px; border-radius: 50%;
 filter: blur(10px); pointer-events: none; z-index: -1;
}
.hero__glow-hot { top: -120px; left: -120px; background: radial-gradient(circle, var(--hot-soft) 0%, transparent 70%); }
.hero__glow-cold { bottom: -120px; right: -120px; background: radial-gradient(circle, var(--cold-soft) 0%, transparent 70%); }

.hero__eyebrow {
 color: var(--dim); font-size: 0.82rem; font-weight: 600;
 letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 22px;
}
.hero__title {
 font-size: clamp(2.8rem, 9vw, 5.2rem);
 font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
}
.hero__title.cold { color: var(--cold); }
.hero__subtitle {
 color: var(--dim); font-size: 1.15rem; margin: 22px auto 0;
 max-width: 540px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }


/* ===== Boutons ===== */
.btn {
 display: inline-flex; align-items: center; gap: 8px;
 padding: 13px 26px; border-radius: 10px;
 font-weight: 650; font-size: 0.95rem;
 border: 1px solid transparent; cursor: pointer;
 transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--hot { background: var(--hot); color: #fff; }
.btn--hot:hover { background: #ff6438; }
.btn--cold { background: var(--cold); color: #06222e; }
.btn--cold:hover { background: #6cd6f7; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--dim); }

/* ===== Ticker ===== */
.ticker {
 overflow: hidden; white-space: nowrap;
 border-block: 1px solid var(--border);
 background: var(--bg-soft);
}
.ticker__inner {
 display: inline-block; padding: 13px 0;
 font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
 color: var(--dim);
 animation: ticker 22s linear infinite;
}
.ticker__inner span { margin: 0 18px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 105px 0; }
.section--music { background: rgba(255, 77, 46, 0.06); }
.section--code { background: rgba(76, 201, 240, 0.06); }

.section__kicker {
 text-align: center; font-size: 1.1rem; font-weight: 700;
 letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 18px;
 position: relative; display: block;
 padding: 6px 16px; border-radius: 6px;
 min-width: 120px;
 margin-left: 0;
 margin-right: auto;
}
.section--music .section__kicker { 
 color: var(--hot); 
 background: rgba(255, 77, 46, 0.1);
}
.section--code .section__kicker { 
 color: var(--cold); 
 background: rgba(76, 201, 240, 0.1);
}
.contact .section__kicker { 
 color: var(--text); 
 background: rgba(255, 255, 255, 0.03);
}

.section__kicker::after {
 content: '';
 position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
 width: 50px; height: 3px; background: currentColor;
 border-radius: 2px;
}

.section__title {
 font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 750;
 letter-spacing: -0.025em; text-align: center; margin-bottom: 14px;
 background: linear-gradient(90deg, var(--hot), var(--cold));
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
}

.section__title {
 font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 750;
 letter-spacing: -0.025em; text-align: center; margin-bottom: 14px;
}
.section__lead {
 color: var(--dim); font-size: 1.08rem; text-align: center;
 max-width: 580px; margin: 0 auto 52px;
}

/* ===== Cartes ===== */
.cards {
 display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
 gap: 22px;
}
.card {
 background: var(--card); border: 1px solid var(--border);
 border-radius: var(--radius); padding: 30px 26px;
 transition: border-color 0.2s, transform 0.2s;
}
.card:hover { transform: translateY(-3px); }
.card--music:hover { border-color: rgba(255, 77, 46, 0.35); }
.card--code:hover { border-color: rgba(76, 201, 240, 0.35); }
.card__icon { font-size: 1.9rem; margin-bottom: 14px; }
.card h3 { font-size: 1.12rem; font-weight: 650; margin-bottom: 7px; }
.card p { color: var(--dim); font-size: 0.94rem; }

/* ===== Musique : carte "now generating" ===== */
.music-grid {
 display: grid; grid-template-columns: 1.1fr 1fr;
 gap: 40px; align-items: center;
}
@media (max-width: 720px) {.music-grid { grid-template-columns: 1fr; } }

.player-card {
 background: var(--card); border: 1px solid rgba(255, 77, 46, 0.25);
 border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden;
}
.player-card::before {
 content: ""; position: absolute; inset: 0;
 background: radial-gradient(600px 200px at 20% 0%, var(--hot-soft), transparent 70%);
 pointer-events: none;
}
.artwork {
 width: 100%;
 aspect-ratio: 1 / 1;
 border-radius: 12px;
 object-fit: cover;
 margin-bottom: 20px;
 box-shadow: 0 10px 30px rgba(140, 42, 240, 0.3);
 transition: transform 0.3s, box-shadow 0.3s;
}
.player-card:hover .artwork {
 transform: scale(1.02);
 box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
}
.player-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.player-title { font-weight: 680; font-size: 1.05rem; }
.player-sub { color: var(--dim); font-size: 0.85rem; }
.tag {
 display: inline-block; margin-top: 10px;
 background: var(--hot-soft); color: var(--hot);
 padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 660;
 letter-spacing: 0.08em; text-transform: uppercase;
}

/* Égaliseur CSS */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.eq i {
 width: 4px; border-radius: 2px; background: var(--hot);
 animation: eq 1s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.30s; }
.eq i:nth-child(4) { animation-delay: 0.45s; }
.eq i:nth-child(5) { animation-delay: 0.60s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 24px; } }

.music-side h3 { font-size: 1.25rem; font-weight: 690; margin-bottom: 10px; }
.music-side p { color: var(--dim); font-size: 0.98rem; margin-bottom: 24px; }
.music-side.side-note { font-size: 0.85rem; margin-top: 14px; color: var(--dim); }

/* ===== Code : cartes repos ===== */
.repo-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; justify-content: center; }
.repo-chip {
 font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
 font-size: 0.85rem; color: var(--cold);
 border: 1px solid rgba(76, 201, 240, 0.25);
 background: var(--cold-soft);
 padding: 6px 14px; border-radius: 20px;
 transition: all 0.2s;
 text-decoration: none;
}
.repo-chip:hover {
 border-color: var(--cold);
 background: rgba(76, 201, 240, 0.2);
 transform: translateY(-2px);
}
.code-cta { text-align: center; margin-top: 40px; }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact-socials { display: flex; gap: 22px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.contact-socials a { color: var(--dim); font-size: 0.92rem; font-weight: 550; transition: color 0.2s; }
.contact-socials a:hover { color: var(--text); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer__inner {
 display: flex; justify-content: space-between; align-items: center;
 color: var(--dim); font-size: 0.86rem; gap: 12px; flex-wrap: wrap;
}
.footer.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
.nav { gap: 18px; }
.nav a { font-size: 0.85rem; }
.hero { min-height: 78vh; padding: 90px 24px; }
.hero__actions { flex-direction: column; align-items: center; }
.section { padding: 75px 0; }
.footer__inner { flex-direction: column; text-align: center; }
}