/* ============================================================
   ÉTÉ EN FEU — Design Premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold:      #C9973A;
    --gold-lt:   #E8C97A;
    --gold-pale: #F5E6C8;
    --black:     #080604;
    --dark:      #0E0B07;
    --dark2:     #161009;
    --text:      #F0E8DC;
    --muted:     #8A7A68;
    --glass:     rgba(255, 240, 200, 0.04);
    --glass2:    rgba(255, 240, 200, 0.07);
    --border:    rgba(201, 151, 58, 0.22);
    --border2:   rgba(201, 151, 58, 0.45);
    --radius:    14px;
    --radius-lg: 22px;
    --ff-serif:  'Cormorant Garamond', Georgia, serif;
    --ff-sans:   'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--ff-sans);
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ── NAV ───────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .4s, backdrop-filter .4s;
}

.nav.scrolled {
    background: rgba(8, 6, 4, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--ff-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-lt);
    letter-spacing: 1px;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color .2s;
}

.nav-links a:hover { color: var(--gold-lt); }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Image de fond — remplacer images/bg.jpg par ta photo */
    background-image:
        linear-gradient(to bottom,
            rgba(8,6,4,.25) 0%,
            rgba(8,6,4,.55) 55%,
            rgba(8,6,4,1)   100%
        ),
        url('../images/bg.jpg');
    background-size: cover;
    background-position: center top;
    background-color: var(--dark);  /* fallback si pas d'image */
}

/* Fallback gradient si pas d'image */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 90%, rgba(201,151,58,.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 85%, rgba(255,80,0,.14)   0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%,rgba(201,151,58,.22) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(20,12,0,.6)     0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 0 1.5rem;
    padding-top: 6rem;
    padding-bottom: 5rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--border2);
    border-radius: 50px;
    padding: .4rem 1.2rem;
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    background: rgba(201,151,58,.06);
}

.hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

.hero h1 {
    font-family: var(--ff-serif);
    font-size: clamp(4.5rem, 14vw, 10rem);
    font-weight: 700;
    line-height: .92;
    letter-spacing: -2px;
    color: var(--gold-pale);
    margin-bottom: .4rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-family: var(--ff-serif);
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 300;
    font-style: italic;
    color: var(--gold-lt);
    letter-spacing: 4px;
    margin-bottom: 3rem;
    opacity: .85;
}

/* ── DIVIDER ───────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.divider-line { flex: 1; max-width: 80px; height: 1px; background: var(--border2); }
.divider-icon { color: var(--gold); font-size: .85rem; }

/* ── INFOS ─────────────────────────────────────────────── */
.hero-infos {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.info-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .55rem 1.2rem;
    font-size: .82rem;
    color: var(--text);
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(8px);
    letter-spacing: .5px;
}

.info-pill svg { color: var(--gold); flex-shrink: 0; }

/* ── COUNTDOWN ─────────────────────────────────────────── */
.countdown {
    display: inline-flex;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 3.5rem;
}

.cd-block {
    padding: 1.2rem 1.6rem;
    text-align: center;
    background: rgba(8,6,4,.85);
    backdrop-filter: blur(10px);
    min-width: 90px;
}

.cd-num {
    font-family: var(--ff-serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--gold-lt);
    line-height: 1;
    display: block;
}

.cd-label {
    font-size: .6rem;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: .35rem;
    display: block;
}

/* ── BOUTONS ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-family: var(--ff-sans);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

.btn-gold {
    background: linear-gradient(135deg, #C9973A 0%, #E8C97A 50%, #C9973A 100%);
    background-size: 200% auto;
    color: #0E0B07;
    box-shadow: 0 4px 24px rgba(201,151,58,.35), inset 0 1px 0 rgba(255,255,255,.2);
}

.btn-gold:hover {
    background-position: right center;
    box-shadow: 0 8px 36px rgba(201,151,58,.5);
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--glass2);
    border: 1px solid var(--border2);
    color: var(--gold-lt);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(201,151,58,.12);
    border-color: var(--gold);
    color: var(--gold-lt);
    transform: translateY(-2px);
}

/* ── SECTION ───────────────────────────────────────────── */
section { padding: 6rem 1.5rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .35rem 1rem;
    margin-bottom: 1.2rem;
}

.section-header h2 {
    font-family: var(--ff-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 600;
    color: var(--gold-pale);
    letter-spacing: -.5px;
    line-height: 1.1;
}

.section-header p {
    color: var(--muted);
    font-size: .92rem;
    margin-top: .8rem;
    font-weight: 300;
    letter-spacing: .3px;
}

/* ── TICKETS ───────────────────────────────────────────── */
#tickets { background: var(--dark2); }

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ticket-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.ticket-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.ticket-card:hover,
.ticket-card.selected {
    border-color: var(--border2);
    background: rgba(201,151,58,.06);
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(201,151,58,.15);
}

.ticket-card:hover::after,
.ticket-card.selected::after { transform: scaleX(1); }

.ticket-card.featured {
    border-color: rgba(201,151,58,.5);
    background: rgba(201,151,58,.05);
}

.ticket-badge {
    position: absolute;
    top: 1.4rem; right: 1.4rem;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark);
    background: linear-gradient(135deg, var(--gold), var(--gold-lt));
    padding: .3rem .8rem;
    border-radius: 50px;
}

.ticket-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: rgba(201,151,58,.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.ticket-type {
    font-family: var(--ff-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-pale);
    margin-bottom: .4rem;
}

.ticket-price {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1.8rem;
}

.ticket-price sup {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    vertical-align: super;
    margin-right: .2rem;
}

.ticket-price sub {
    font-size: .75rem;
    font-weight: 400;
    color: var(--muted);
    vertical-align: baseline;
    margin-left: .2rem;
}

.ticket-sep {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.5rem;
}

.ticket-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    flex: 1;
    margin-bottom: 2rem;
}

.ticket-perks li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .87rem;
    color: var(--muted);
    font-weight: 300;
}

.ticket-perks li::before {
    content: '';
    flex-shrink: 0;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(201,151,58,.15);
    border: 1px solid var(--border2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23C9973A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.ticket-perks li.highlight { color: var(--gold-lt); font-weight: 500; }

/* ── FORM SECTION ──────────────────────────────────────── */
#acheter { background: var(--dark); }

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.form-left h3 {
    font-family: var(--ff-serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--gold-pale);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.form-left p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 2rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border2);
    color: var(--gold);
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,151,58,.06);
}

.step-text strong {
    display: block;
    font-size: .88rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: .15rem;
}

.step-text span {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 300;
}

/* Form card */
.form-card {
    background: var(--glass2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}

.form-group { margin-bottom: 1.4rem; }

.form-group label {
    display: block;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: .55rem;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(8,6,4,.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1.2rem;
    color: var(--text);
    font-family: var(--ff-sans);
    font-size: .95rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
}

.form-group input::placeholder { color: var(--muted); font-weight: 300; }

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
    background: rgba(8,6,4,.85);
    box-shadow: 0 0 0 3px rgba(201,151,58,.12);
}

.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 6 5-6' stroke='%238A7A68' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.2rem center; padding-right: 2.5rem; }
.form-group select option { background: #161009; color: #F0E8DC; }

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

.summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(201,151,58,.06);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    margin-bottom: 1.4rem;
    display: none;
}

.summary-bar .s-label { font-size: .85rem; color: var(--muted); }
.summary-bar .s-price { font-family: var(--ff-serif); font-size: 1.6rem; color: var(--gold); font-weight: 600; }

.pay-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
    font-size: .75rem;
    color: var(--muted);
}

.pay-note::before,
.pay-note::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── CONFIRM PAGE ──────────────────────────────────────── */
.confirm-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--dark);
}

.confirm-card {
    background: var(--glass2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
}

.confirm-card.paid { border-color: rgba(0,200,80,.3); }
.confirm-card.pending { border-color: rgba(255,180,0,.3); }

.confirm-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 1rem; }

.confirm-title {
    font-family: var(--ff-serif);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.confirm-sub { color: var(--muted); font-size: .9rem; font-weight: 300; margin-bottom: 2rem; }

.qr-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.4rem;
    display: inline-flex;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.ticket-details {
    list-style: none;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ticket-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1.2rem;
    font-size: .875rem;
    gap: 1rem;
}

.ticket-details li + li { border-top: 1px solid var(--border); }
.ticket-details .td-key { color: var(--muted); font-weight: 300; flex-shrink: 0; }
.ticket-details .td-val { color: var(--text); font-weight: 500; text-align: right; }
.ticket-details .td-val.gold { color: var(--gold); font-family: var(--ff-serif); font-size: 1.05rem; }

.notice-box {
    background: rgba(201,151,58,.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1.2rem;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.6;
    text-align: left;
}

.btn-row { display: flex; gap: .8rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 120px; }

/* ── SCANNER ───────────────────────────────────────────── */
.scanner-page {
    min-height: 100vh;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 3rem;
}

.scanner-header {
    width: 100%; max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-top: .5rem;
}

.scanner-header h1 {
    font-family: var(--ff-serif);
    font-size: 1.6rem;
    color: var(--gold-lt);
    font-weight: 600;
}

.scanner-wrap { width: 100%; max-width: 480px; }

.cam-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    aspect-ratio: 1;
    border: 1px solid var(--border2);
}

#scanner-video { width: 100%; height: 100%; object-fit: cover; display: block; }
#canvas { display: none; }

.cam-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cam-frame {
    width: 58%; aspect-ratio: 1;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.5);
    position: relative;
}

.cam-frame::before,
.cam-frame::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
}

.cam-frame::before {
    top: -2px; left: -2px;
    border-top: 3px solid var(--gold);
    border-left: 3px solid var(--gold);
    border-radius: 6px 0 0 0;
}

.cam-frame::after {
    bottom: -2px; right: -2px;
    border-bottom: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
    border-radius: 0 0 6px 0;
}

.cam-corners::before,
.cam-corners::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
}

.cam-corners::before {
    top: -2px; right: -2px;
    border-top: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
    border-radius: 0 6px 0 0;
}

.cam-corners::after {
    bottom: -2px; left: -2px;
    border-bottom: 3px solid var(--gold);
    border-left: 3px solid var(--gold);
    border-radius: 0 0 0 6px;
}

.cam-line {
    position: absolute;
    left: 21%; right: 21%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: cam-scan 2.5s ease-in-out infinite;
}

@keyframes cam-scan {
    0%   { top: 21%; opacity: .6; }
    100% { top: 79%; opacity: .2; }
}

/* Result boxes */
.result-box {
    display: none;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
    animation: slide-up .3s ease;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.result-ok   { background: rgba(0,200,80,.08);  border: 1px solid rgba(0,200,80,.35); }
.result-err  { background: rgba(220,30,30,.08); border: 1px solid rgba(220,30,30,.35); }
.result-warn { background: rgba(255,180,0,.08); border: 1px solid rgba(255,180,0,.35); }

.res-icon   { font-size: 2.8rem; line-height: 1; margin-bottom: .8rem; }
.res-title  { font-family: var(--ff-serif); font-size: 1.5rem; font-weight: 600; margin-bottom: .3rem; }
.res-sub    { font-size: .85rem; color: var(--muted); font-weight: 300; }
.res-name   { font-size: 1rem; font-weight: 500; }

.result-ok  .res-title { color: #00e65b; }
.result-err .res-title { color: #ff5555; }
.result-warn .res-title { color: #ffc107; }

.shot-badge {
    display: inline-block;
    background: rgba(201,151,58,.12);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: .7rem 1.2rem;
    color: var(--gold-lt);
    font-size: .9rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Scanner stats */
.scan-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-top: 1.5rem;
}

.ss-card {
    border-radius: var(--radius);
    padding: .9rem .5rem;
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--border);
}

.ss-num   { font-family: var(--ff-serif); font-size: 1.8rem; color: var(--gold); font-weight: 600; }
.ss-label { font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: .2rem; }

/* PIN modal */
.overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
    backdrop-filter: blur(10px);
}

.pin-box {
    background: var(--dark2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 2.8rem 2.5rem;
    max-width: 360px;
    width: 92%;
    text-align: center;
}

.pin-box h2 {
    font-family: var(--ff-serif);
    font-size: 1.8rem;
    color: var(--gold-pale);
    margin-bottom: .5rem;
    font-weight: 600;
}

.pin-box p { color: var(--muted); font-size: .88rem; margin-bottom: 2rem; font-weight: 300; }

.pin-input {
    width: 100%;
    background: rgba(8,6,4,.8);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 1rem;
    color: var(--gold-pale);
    font-size: 2rem;
    letter-spacing: 8px;
    text-align: center;
    outline: none;
    margin-bottom: 1rem;
    font-family: var(--ff-serif);
}

.pin-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,151,58,.12); }
.pin-error { color: #ff5555; font-size: .82rem; min-height: 1.2rem; margin-top: .4rem; }

/* ── ADMIN ─────────────────────────────────────────────── */
.admin-page { background: var(--dark); min-height: 100vh; }
.admin-inner { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-top h1 {
    font-family: var(--ff-serif);
    font-size: 2.2rem;
    color: var(--gold-lt);
    font-weight: 600;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.sc {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1rem;
    text-align: center;
}

.sc-num   { font-family: var(--ff-serif); font-size: 2.2rem; color: var(--gold); font-weight: 600; }
.sc-label { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: .3rem; }

.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th { background: rgba(201,151,58,.08); padding: .85rem 1.2rem; text-align: left; color: var(--gold); font-size: .65rem; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
td { padding: .8rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(201,151,58,.03); }

.badge { padding: .22rem .65rem; border-radius: 50px; font-size: .7rem; font-weight: 600; letter-spacing: .5px; }
.badge-paye    { background: rgba(0,200,80,.12);  color: #00e65b; }
.badge-attente { background: rgba(255,180,0,.12); color: #ffc107; }
.badge-echec   { background: rgba(220,30,30,.12); color: #ff5555; }
.badge-use     { background: rgba(100,100,100,.15); color: #888; }

.filter-bar {
    display: flex; gap: .7rem; flex-wrap: wrap;
    margin-bottom: 1.5rem; align-items: center;
}

.filter-bar input,
.filter-bar select {
    background: rgba(8,6,4,.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .65rem 1rem;
    color: var(--text);
    font-family: var(--ff-sans);
    font-size: .85rem;
    outline: none;
    -webkit-appearance: none;
}

.filter-bar input { flex: 1; min-width: 180px; }
.filter-bar input::placeholder { color: var(--muted); }
.filter-bar input:focus,
.filter-bar select:focus { border-color: var(--gold); }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
    background: var(--black);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 300;
}

footer strong { color: var(--gold); }

/* ── LOADER ────────────────────────────────────────────── */
.spinner {
    display: none;
    width: 20px; height: 20px;
    border: 2px solid rgba(14,11,7,.3);
    border-top-color: var(--dark);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── UTILS ─────────────────────────────────────────────── */
.error-banner {
    background: rgba(220,30,30,.1);
    border: 1px solid rgba(220,30,30,.3);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    font-size: .88rem;
    color: #ff8888;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
    .tickets-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .form-wrapper  { grid-template-columns: 1fr; gap: 2.5rem; }
    .form-left h3  { font-size: 1.8rem; }
    .nav-links     { display: none; }
}

@media (max-width: 640px) {
    .hero h1 { letter-spacing: -1px; }
    .countdown { width: 100%; }
    .cd-block  { flex: 1; min-width: 0; padding: 1rem .8rem; }
    .cd-num    { font-size: 1.8rem; }
    .form-row  { grid-template-columns: 1fr; }
    .form-card { padding: 1.8rem 1.4rem; }
    .confirm-card { padding: 2rem 1.4rem; }
    .btn-row   { flex-direction: column; }
    section    { padding: 4rem 1rem; }
    .hero-content { padding-top: 7rem; }
    .tickets-grid { max-width: 100%; }
}

@media (min-width: 641px) and (max-width: 900px) {
    .tickets-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
    .tickets-grid .ticket-card:last-child { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; width: 100%; }
}

@media print {
    body, .confirm-wrap { background: #fff !important; }
    .confirm-card { border: 1px solid #ccc; color: #000 !important; background: #fff !important; }
    .btn-row { display: none; }
    .qr-box { box-shadow: none; }
}
