/* ============================================================
   STAGEPASS — style.css
   Thème : fond #09090f (noir profond) + accent #f5a623 (or)
   Fonts  : Clash Display (titres) + Satoshi (corps) via Fontshare
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@400,500,700&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #09090f;
    --surface:   #111118;
    --border:    #252535;
    --gold:      #f5a623;
    --gold-dark: #c47d0e;
    --text:      #e8e8f0;
    --muted:     #8a8898;
    --red:       #e53e3e;
    --green:     #48bb78;
    --blue:      #63b3ed;
    --purple:    #d6bcfa;
    --radius:    12px;
    --radius-sm: 8px;
    --shadow:    0 4px 24px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: 'Clash Display', sans-serif;
    line-height: 1.2;
}

img { max-width: 100%; display: block; }

/* ── NAVBAR ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(9, 9, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Clash Display', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo-placeholder {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 6px;
    /* Remplacer par : <img src="logo.png" alt="StagePass" width="32" height="32"> */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); text-decoration: none; }

.nav-cta {
    background: var(--gold);
    color: #000 !important;
    padding: .45rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .85rem;
    transition: background .2s;
}

.nav-cta:hover { background: var(--gold-dark) !important; text-decoration: none; }

/* ── HERO ── */
.hero {
    padding: 5rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,166,35,.08) 0%, transparent 70%);
}

.hero-inner { max-width: 680px; margin: 0 auto; }

.hero-badge {
    display: inline-block;
    background: rgba(245,166,35,.12);
    color: var(--gold);
    border: 1px solid rgba(245,166,35,.3);
    border-radius: 99px;
    padding: .3rem .9rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: .8rem;
}

.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ── COULEURS UTILITAIRES ── */
.gold   { color: var(--gold); }
.green  { color: var(--green); }
.blue   { color: var(--blue); }
.purple { color: var(--purple); }
.text-muted { color: var(--muted); }

/* ── BOUTONS ── */
.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: #000;
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    padding: .7rem 1.6rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    text-decoration: none;
    color: #000;
}

.btn-outline-sm {
    display: inline-block;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: .4rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
    text-decoration: none;
}

.btn-outline-sm:hover {
    background: var(--gold);
    color: #000;
    text-decoration: none;
}

.btn-small {
    display: inline-block;
    padding: .3rem .75rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
    color: #fff;
    background: var(--muted);
    text-decoration: none;
}

.btn-small:hover { opacity: .8; text-decoration: none; }

.btn-small.danger  { background: var(--red); color: #fff; }
.btn-small.success { background: var(--green); color: #000; }

/* ── FILTRES GENRES ── */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    padding: .5rem 2rem 2rem;
}

.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: .4rem 1rem;
    border-radius: 99px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(245,166,35,.08);
}

/* ── GRILLE CONCERTS ── */
.concerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── CARD CONCERT ── */
.concert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.concert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245,166,35,.35);
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

/* Placeholder image carte */
.card-img-placeholder {
    width: 100%;
    height: 180px;
    background: #1e1e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: .75rem;
    border-bottom: 1px solid var(--border);
    /* Remplacer ce div par : <img src="<?= htmlspecialchars($c['image']) ?>" alt="..." style="width:100%;height:180px;object-fit:cover"> */
}

.card-genre {
    display: inline-block;
    background: rgba(245,166,35,.12);
    color: var(--gold);
    border: 1px solid rgba(245,166,35,.25);
    border-radius: 99px;
    padding: .18rem .6rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.card-complet {
    display: inline-block;
    background: rgba(229,62,62,.15);
    color: var(--red);
    border: 1px solid rgba(229,62,62,.3);
    border-radius: 99px;
    padding: .18rem .6rem;
    font-size: .72rem;
    font-weight: 600;
}

.card-titles {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .3rem;
}

.card-body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }

.card-body h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card-info {
    font-size: .82rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.card-price {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: auto;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.1rem;
    border-top: 1px solid var(--border);
}

/* ── BARRE DE PROGRESSION ── */
.progress-wrap { display: flex; flex-direction: column; gap: .25rem; }

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--muted);
}

.progress-track {
    height: 5px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 99px;
    transition: width .4s ease;
}

/* ── PAGE CONTAINER ── */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 1.5rem;
    transition: color .2s;
}

.back-link:hover { color: var(--text); text-decoration: none; }

/* ── DÉTAIL CONCERT ── */
.detail-img-placeholder {
    width: 100%;
    height: 340px;
    background: #1e1e2e;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: .8rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    /* Remplacer par : <img src="<?= htmlspecialchars($concert['image']) ?>" alt="..." style="width:100%;height:340px;object-fit:cover;border-radius:var(--radius)"> */
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 700px) {
    .detail-layout { grid-template-columns: 1fr; }
}

.concert-desc {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.7;
    margin-top: .5rem;
}

/* ── CARD GÉNÉRIQUE ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.card-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
}

/* ── BOOKING CARD ── */
.booking-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.booking-price {
    font-family: 'Clash Display', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.booking-price span { font-size: .9rem; color: var(--muted); font-family: 'Satoshi', sans-serif; }

/* ── FORMULAIRES ── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Satoshi', sans-serif;
    font-size: .92rem;
    padding: .6rem .85rem;
    width: 100%;
    transition: border-color .2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 540px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-total {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    text-align: right;
    margin: .5rem 0 1rem;
}

/* ── MESSAGES FEEDBACK ── */
.msg {
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.msg-success {
    background: rgba(72,187,120,.12);
    border-color: rgba(72,187,120,.3);
    color: var(--green);
}

.msg-error {
    background: rgba(229,62,62,.12);
    border-color: rgba(229,62,62,.3);
    color: var(--red);
}

.msg-info {
    background: rgba(99,179,237,.1);
    border-color: rgba(99,179,237,.3);
    color: var(--blue);
}

/* ── BADGES ── */
.badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge-confirme {
    background: rgba(72,187,120,.15);
    color: var(--green);
    border: 1px solid rgba(72,187,120,.3);
}

.badge-annule {
    background: rgba(229,62,62,.15);
    color: var(--red);
    border: 1px solid rgba(229,62,62,.3);
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    font-size: .9rem;
}

/* ── ADMIN LAYOUT ── */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    padding: 0 1.2rem .6rem;
    margin-top: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: .5rem;
}

.sidebar-title:first-child { margin-top: 0; }

.sidebar-link {
    display: block;
    padding: .55rem 1.2rem;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color .2s, border-color .2s, background .2s;
    text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--gold);
    border-left-color: var(--gold);
    background: rgba(245,166,35,.05);
    text-decoration: none;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* ── KPI GRID ── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: border-color .2s;
}

.kpi-card:hover { border-color: rgba(245,166,35,.35); }

.kpi-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
}

.kpi-value {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

/* ── ADMIN PANEL (section) ── */
.admin-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    overflow: hidden;
}

.admin-panel h2 {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ── ADMIN TABLE ── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.admin-table th {
    text-align: left;
    padding: .65rem 1rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}

.admin-table td {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td { background: rgba(255,255,255,.02); }

/* Petit input dans tableau admin */
.form-input-sm {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: .82rem;
    padding: .3rem .6rem;
    outline: none;
    font-family: 'Satoshi', sans-serif;
    width: 90px;
}

.form-input-sm:focus { border-color: var(--gold); }

/* ── FOOTER ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }

    .nav-links { display: none; }

    .hero { padding: 3rem 1rem 2.5rem; }

    .concerts-grid { padding: 0 1rem 3rem; grid-template-columns: 1fr; }

    .page-container { padding: 1.5rem 1rem 4rem; }

    .admin-layout { flex-direction: column; }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: .25rem;
        padding: .75rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-title { display: none; }

    .sidebar-link {
        border-left: none;
        border-radius: 6px;
        padding: .4rem .8rem;
        font-size: .8rem;
    }

    .sidebar-link:hover,
    .sidebar-link.active {
        border-left-color: transparent;
        background: rgba(245,166,35,.1);
    }

    .admin-main { padding: 1rem; }

    .kpi-grid { grid-template-columns: 1fr 1fr; }
}
