/* ============================================================
   Y - WHY · billeterie.css
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-root:      #09050f;
    --bg-deep:      #0d0520;
    --bg-card:      #120828;
    --bg-card-alt:  #1a0d35;
    --border-faint: #1e0f38;
    --border-dim:   #2d1a4a;
    --border-mid:   #3d1f7a;
    --border-main:  #5b21b6;
    --purple-main:  #7c4dff;
    --purple-vivid: #7c4dff;
    --purple-light: #aa44ff;
    --purple-pale:  #c4a8ff;
    --purple-muted: #9b7ed0;
    --text-primary:   #ede0ff;
    --text-secondary: #b59dd4;
    --text-muted:     #6b4fa0;
    --text-faint:     #a891c4;
    --green-live:   #00ff95;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', Inter, sans-serif;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 22px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    min-height: 100vh;
    padding-bottom: 88px;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
img { display: block; max-width: 100%; }


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    background: rgba(9, 5, 15, 0.88);
    border-bottom: 0.5px solid var(--border-faint);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--purple-pale);
    letter-spacing: 3px;
}
.logo span { color: var(--purple-vivid); }

.nav-links { display: flex; gap: 36px; }

.nav-link {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--purple-pale); }

.nav-cta {
    font-size: 12px;
    color: var(--purple-pale);
    background: transparent;
    border: 0.5px solid var(--border-main);
    padding: 9px 22px;
    border-radius: var(--r-sm);
    letter-spacing: 1.5px;
    transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--purple-main); color: white; }

/* Hamburger — masqué sur desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--purple-pale);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}

/* Menu mobile déroulant */
.nav-mobile {
    display: none;
    flex-direction: column;
    background: rgba(9, 5, 15, 0.98);
    border-top: 0.5px solid var(--border-faint);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 8px 0 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
    padding: 13px 24px;
    font-size: 14px;
    border-bottom: 0.5px solid var(--border-faint);
}
.nav-mobile .nav-link:last-child { border-bottom: none; }


/* ============================================================
   EN-TÊTE PAGE
   ============================================================ */
.page-header {
    text-align: center;
    padding: 64px 48px 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-eyebrow {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 400;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.page-title em { font-style: italic; color: var(--purple-light); }

.page-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.back-btn {
    position: fixed;
    top: 120px;
    left: 80px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: black;
    color: var(--purple-pale);
    border: 0.5px solid var(--border-main);
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.back-btn:hover { background: var(--purple-main); color: white; }


/* ============================================================
   PROCHAIN CONCERT (hero card)
   ============================================================ */
.next-show {
    max-width: 1100px;
    margin: 52px auto 0;
    padding: 0 48px;
}

.next-show-inner {
    background: var(--bg-card);
    border: 0.5px solid var(--border-main);
    border-radius: var(--r-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.next-show-inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.next-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--green-live);
    border: 0.5px solid var(--green-live);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 32px;
    opacity: 0.85;
}

.next-show-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: start;
}

.next-show-info { display: flex; gap: 36px; align-items: flex-start; }

.next-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding: 16px 22px;
    background: var(--bg-card-alt);
    border: 0.5px solid var(--border-mid);
    border-radius: var(--r-lg);
    min-width: 90px;
}

.next-day {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--purple-pale);
    line-height: 1;
    text-align: center;
}

.next-month {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 2px;
    margin-top: 4px;
    text-align: center;
}

.next-details { flex: 1; }

.next-venue {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.15;
}

.next-city {
    font-size: 13px;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 16px;
}

.next-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 20px;
}

.next-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.show-tag {
    font-size: 11px;
    color: var(--purple-pale);
    background: rgba(91, 33, 182, 0.15);
    border: 0.5px solid var(--border-mid);
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}
.show-tag.small { font-size: 10px; padding: 3px 10px; }

.next-show-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 240px;
    align-items: stretch;
}

.ticket-price {
    background: var(--bg-card-alt);
    border: 0.5px solid var(--border-dim);
    border-radius: var(--r-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.price-value {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--purple-pale);
    font-weight: 500;
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--purple-main);
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: var(--r-md);
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.15s;
}
.btn-buy:hover { background: #4c1b9a; transform: translateY(-1px); }
.btn-buy:active { transform: translateY(0); }
.btn-buy.disabled { background: var(--border-dim); color: var(--text-muted); cursor: not-allowed; }
.btn-buy.disabled:hover { background: var(--border-dim); transform: none; }

.notify-text {
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
}

.notify-form { display: flex; gap: 8px; }

.notify-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-root);
    border: 0.5px solid var(--border-mid);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}
.notify-input::placeholder { color: var(--text-muted); }
.notify-input:focus { border-color: var(--purple-main); }

.btn-notify {
    font-size: 13px;
    color: var(--purple-pale);
    background: rgba(91, 33, 182, 0.2);
    border: 0.5px solid var(--border-main);
    padding: 10px 16px;
    border-radius: var(--r-sm);
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-notify:hover { background: rgba(91, 33, 182, 0.35); }


/* ============================================================
   LISTE DES DATES
   ============================================================ */
.shows-section {
    max-width: 1100px;
    margin: 64px auto 0;
    padding: 0 48px;
}

.shows-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 14px;
}

.shows-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
}

.shows-filter { display: flex; gap: 8px; }

.filter-btn {
    font-size: 13px;
    color: var(--text-secondary);
    background: transparent;
    border: 0.5px solid var(--border-mid);
    padding: 7px 18px;
    border-radius: 100px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { color: var(--purple-pale); }
.filter-btn.active {
    background: var(--purple-main);
    color: white;
    border-color: var(--purple-main);
}

.shows-list { display: flex; flex-direction: column; gap: 2px; }

.show-row {
    display: grid;
    grid-template-columns: 14px 90px 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border-radius: var(--r-md);
    border: 0.5px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}
.show-row:hover { background: var(--bg-card); border-color: var(--border-faint); }

.show-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-upcoming {
    background: var(--green-live);
    box-shadow: 0 0 8px rgba(0, 255, 149, 0.6);
    animation: pulse-green 2s ease-in-out infinite;
}
.dot-past { background: var(--border-dim); }

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

.show-date-col { display: flex; flex-direction: column; }
.show-day {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--purple-pale);
    line-height: 1;
}
.show-year {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.show-info-col { min-width: 0; }
.show-venue {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.show-city { font-size: 12px; color: var(--text-muted); }

.show-tags-col { display: flex; gap: 6px; }

.show-action-col { display: flex; justify-content: flex-end; min-width: 130px; }

.btn-ticket-sm {
    font-size: 13px;
    color: var(--purple-pale);
    background: rgba(91, 33, 182, 0.15);
    border: 0.5px solid var(--border-mid);
    padding: 8px 18px;
    border-radius: var(--r-sm);
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-ticket-sm:hover { background: rgba(91, 33, 182, 0.3); }
.btn-ticket-sm.disabled { color: var(--text-muted); border-color: var(--border-faint); cursor: not-allowed; }
.btn-ticket-sm.disabled:hover { background: rgba(91, 33, 182, 0.15); }

.show-past-label {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}


/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    max-width: 1100px;
    margin: 64px auto 64px;
    padding: 0 48px;
}

.faq-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.faq-list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
    border: 0.5px solid var(--border-faint);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-mid); }

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    background: var(--bg-card);
    transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-card-alt); }

.faq-icon {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--purple-pale);
    transition: transform 0.25s ease;
}

.faq-a {
    background: var(--bg-card-alt);
    border-top: 0.5px solid var(--border-faint);
    padding: 18px 22px;
}
.faq-a p { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }
.faq-a a { color: var(--purple-pale); text-decoration: underline; text-underline-offset: 3px; }


/* ============================================================
   PLAYER BAR
   ============================================================ */
.player-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: var(--bg-card-alt);
    border-top: 0.5px solid var(--border-faint);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    gap: 24px;
    z-index: 200;
}

.player-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }

.player-thumb {
    width: 46px; height: 46px;
    border-radius: var(--r-sm);
    background: var(--border-mid);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--purple-pale); flex-shrink: 0;
    overflow: hidden;
}
.player-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.player-title { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.player-center { flex: 1.5; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.player-controls { display: flex; align-items: center; gap: 8px; }

.ctrl-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: transparent; color: var(--text-muted);
    font-size: 15px; display: flex; align-items: center;
    justify-content: center; cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.ctrl-btn:hover { color: var(--purple-pale); background: rgba(91,33,182,0.15); }

.ctrl-play { width: 42px; height: 42px; background: var(--purple-main); color: white; font-size: 18px; }
.ctrl-play:hover { background: #4c1b9a; color: white; }

.player-progress { display: flex; align-items: center; gap: 10px; width: 100%; }
.player-time { font-size: 11px; color: var(--text-faint); flex-shrink: 0; }

.progress-track { flex: 1; height: 3px; background: var(--border-faint); border-radius: 2px; overflow: hidden; cursor: pointer; }
.progress-fill { height: 100%; width: 0%; background: var(--purple-main); border-radius: 2px; }

.player-right { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }
.volume-track { width: 80px; height: 3px; background: var(--border-dim); border-radius: 2px; overflow: hidden; cursor: pointer; }
.volume-fill { height: 100%; width: 70%; background: var(--purple-main); border-radius: 2px; }


/* ============================================================
   ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .page-header  { animation: fade-up 0.55s ease both; }
    .next-show    { animation: fade-up 0.55s 0.1s ease both; }
    @keyframes fade-up {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}


/* ============================================================
   RESPONSIVE — 1024px  Tablette large
   ============================================================ */
@media (max-width: 1024px) {

    .page-header { padding: 56px 36px 0; }

    .next-show,
    .shows-section,
    .faq-section  { padding: 0 36px; }

    .page-title { font-size: 54px; }

    .back-btn { left: 36px; }
}


/* ============================================================
   RESPONSIVE — 860px  Tablette portrait
   ============================================================ */
@media (max-width: 860px) {

    /* ── Navbar ── */
    .navbar { padding: 14px 20px; position: relative; }
    .nav-links,
    .nav-cta      { display: none; }
    .nav-hamburger { display: flex; }          /* ← clé manquante dans l'original */

    /* ── Page header ── */
    .page-header { padding: 42px 24px 0; }
    .page-title  { font-size: 44px; }
    .page-desc   { font-size: 14px; }

    /* ── Sections ── */
    .next-show,
    .shows-section,
    .faq-section  { padding: 0 24px; }

    /* ── Prochain concert ── */
    .next-show-body { grid-template-columns: 1fr; gap: 28px; }
    .next-show-cta  { min-width: unset; }

    /* ── Liste dates ── */
    .show-row { grid-template-columns: 14px 80px 1fr auto; }
    .show-tags-col { display: none; }

    /* ── Bouton retour ── */
    .back-btn { position: static; margin: 24px auto 0; width: fit-content; }

    /* ── Player : cacher volume ── */
    .player-right { display: none; }
    .player-bar   { padding: 0 20px; gap: 16px; }
}


/* ============================================================
   RESPONSIVE — 580px  Mobile
   ============================================================ */
@media (max-width: 580px) {

    body { padding-bottom: 72px; }

    /* ── Page header ── */
    .page-header  { padding: 32px 16px 0; }
    .page-eyebrow { font-size: 10px; letter-spacing: 2px; }
    .page-title   { font-size: 34px; line-height: 1.1; }
    .page-desc    { font-size: 14px; }

    /* ── Sections ── */
    .next-show,
    .shows-section,
    .faq-section  { padding: 0 16px; }

    /* ── Prochain concert ── */
    .next-show-inner { padding: 24px 18px; }
    .next-show-info  { flex-direction: column; gap: 18px; }
    .next-date       { width: fit-content; }
    .next-venue      { font-size: 24px; }
    .next-desc       { font-size: 13px; }

    .notify-form    { flex-direction: column; }
    .btn-notify     { width: 100%; }

    /* ── Liste dates ── */
    .shows-title,
    .faq-title    { font-size: 24px; }

    .shows-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .shows-filter { width: 100%; overflow-x: auto; }

    .show-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }
    .show-status,
    .show-date-col { display: none; }

    .show-action-col { justify-content: flex-start; min-width: unset; }
    .btn-ticket-sm   { width: 100%; text-align: center; }

    /* ── FAQ ── */
    .faq-q { padding: 16px; font-size: 13px; }
    .faq-a { padding: 16px; }

    /* ── Player compact ── */
    .player-bar   { height: 66px; padding: 0 14px; gap: 10px; }
    .player-thumb { width: 38px; height: 38px; }
    .player-title  { font-size: 12px; }
    .player-artist { font-size: 11px; }
    .player-time   { display: none; }

    .ctrl-btn  { width: 30px; height: 30px; font-size: 13px; }
    .ctrl-play { width: 36px; height: 36px; font-size: 15px; }
}


/* ============================================================
   RESPONSIVE — 360px  Très petit mobile
   ============================================================ */
@media (max-width: 360px) {

    .page-title  { font-size: 28px; }
    .next-venue  { font-size: 20px; }

    .shows-title,
    .faq-title   { font-size: 20px; }

    .next-show-inner { padding: 20px 14px; }
    .ticket-price    { padding: 12px 14px; }
}