/*
 * Pages publiques des événements (liste, fiche, billet, désinscription).
 * Palette reprise de la page d'accueil : rose Qwerty, vert, bleu nuit.
 */
:root {
    --ev-pink: #ee0e51;
    --ev-pink-dark: #d30d47;
    --ev-green: #1cd46c;
    --ev-green-dark: #18bd5f;
    --ev-dark: #1b2e4b;
    --ev-bg: #f6f8fb;
    --ev-card: #ffffff;
    --ev-border: #e4e7ee;
    --ev-muted: #64748b;
    --ev-radius: 16px;
}

.ev-body {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    background: var(--ev-bg);
    color: var(--ev-dark);
    margin: 0;
}

.ev-main { min-height: 60vh; }

.ev-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Bandeau ---------- */
.ev-hero {
    background:
        radial-gradient(900px 380px at 85% -20%, rgba(238, 14, 81, .35), transparent 60%),
        radial-gradient(700px 320px at 0% 110%, rgba(28, 212, 108, .22), transparent 60%),
        linear-gradient(135deg, #16273f 0%, #1b2e4b 55%, #24405f 100%);
    color: #fff;
    padding: 62px 20px 70px;
}

.ev-hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }

.ev-hero .ev-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ev-hero h1 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.6px;
    margin: 20px 0 14px;
}

.ev-hero p {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- Grille de cartes ---------- */
.ev-section { padding: 46px 0 64px; }

.ev-section-head { text-align: center; margin-bottom: 30px; }

.ev-section-head h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.4px;
    margin: 0 0 8px;
}

.ev-section-head p { color: var(--ev-muted); font-size: 14px; margin: 0; }

.ev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.ev-card {
    background: var(--ev-card);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    box-shadow: 0 8px 26px rgba(21, 42, 70, .06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ev-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(21, 42, 70, .1); }

.ev-card-banner {
    position: relative;
    padding: 20px 22px 18px;
    background: linear-gradient(135deg, #1b2e4b, #2b4a72);
    color: #fff;
}

.ev-card-banner::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(238, 14, 81, .28);
    filter: blur(2px);
}

.ev-card-banner .ev-date {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 8px;
}

.ev-card-banner h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.ev-card-banner .ev-sub {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
}

.ev-card-body { padding: 20px 22px 18px; flex: 1 1 auto; }

.ev-card-body p { color: var(--ev-muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }

.ev-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.ev-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f4f7fb;
    color: #43536b;
    font-size: 12px;
    font-weight: 500;
}

.ev-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px 20px;
    border-top: 1px solid #f0f3f8;
}

.ev-price { font-size: 18px; font-weight: 800; color: var(--ev-dark); }

.ev-price small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--ev-muted); }

.ev-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.ev-badge-green { background: rgba(28, 212, 108, .14); color: #128a47; }
.ev-badge-pink { background: rgba(238, 14, 81, .1); color: var(--ev-pink); }
.ev-badge-grey { background: #eef1f6; color: var(--ev-muted); }

/* ---------- Boutons ---------- */
.ev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1.2;
}

.ev-btn-primary { background: var(--ev-pink); color: #fff; }
.ev-btn-primary:hover { background: var(--ev-pink-dark); color: #fff; box-shadow: 0 8px 20px rgba(238, 14, 81, .3); }

.ev-btn-green { background: var(--ev-green); color: #fff; }
.ev-btn-green:hover { background: var(--ev-green-dark); color: #fff; box-shadow: 0 8px 20px rgba(28, 212, 108, .3); }

.ev-btn-outline { background: #fff; border-color: var(--ev-border); color: var(--ev-dark); }
.ev-btn-outline:hover { border-color: var(--ev-pink); color: var(--ev-pink); }

.ev-btn-block { width: 100%; }

/* ---------- Fiche événement ---------- */
.ev-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; padding: 42px 0 64px; }

.ev-panel {
    background: var(--ev-card);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    box-shadow: 0 8px 26px rgba(21, 42, 70, .06);
    padding: 26px 28px;
}

.ev-panel h2 { font-size: 21px; font-weight: 700; margin: 0 0 14px; }
.ev-panel h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 12px; color: #43536b; }

.ev-description { white-space: pre-line; color: #3c4a60; font-size: 14.5px; line-height: 1.75; margin: 0; }

.ev-facts { list-style: none; margin: 0; padding: 0; }

.ev-facts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #edf1f7;
    font-size: 14px;
}

.ev-facts li:last-child { border-bottom: 0; }

.ev-facts .ev-fact-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(238, 14, 81, .08);
    color: var(--ev-pink);
    font-size: 14px;
}

.ev-facts strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ev-muted); font-weight: 600; }
.ev-facts span { color: var(--ev-dark); }

.ev-pack-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(28, 212, 108, .1), rgba(28, 212, 108, .04));
    border: 1px solid rgba(28, 212, 108, .25);
    color: #146c3c;
    font-size: 13px;
    line-height: 1.55;
}

/* ---------- Formulaire ---------- */
.ev-field { margin-bottom: 14px; }

.ev-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #4b5c74;
    margin-bottom: 6px;
}

.ev-field input,
.ev-field select,
.ev-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid var(--ev-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ev-dark);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ev-field input:focus,
.ev-field select:focus,
.ev-field textarea:focus {
    outline: none;
    border-color: var(--ev-pink);
    box-shadow: 0 0 0 3px rgba(238, 14, 81, .1);
}

.ev-field .ev-hint { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ev-muted); }

.ev-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 16px;
}

.ev-alert-success { background: rgba(28, 212, 108, .12); color: #146c3c; border: 1px solid rgba(28, 212, 108, .3); }
.ev-alert-error { background: rgba(238, 14, 81, .08); color: #a10a38; border: 1px solid rgba(238, 14, 81, .25); }
.ev-alert-info { background: #eef4fd; color: #1e4b8f; border: 1px solid #d5e3f7; }

/* ---------- Billet ---------- */
.ev-ticket-wrap { padding: 46px 0 64px; display: flex; justify-content: center; }

.ev-ticket {
    width: 100%;
    max-width: 620px;
    background: var(--ev-card);
    border-radius: 20px;
    border: 1px solid var(--ev-border);
    box-shadow: 0 18px 46px rgba(21, 42, 70, .12);
    overflow: hidden;
}

.ev-ticket-head {
    padding: 26px 30px;
    background: linear-gradient(135deg, #16273f, #24405f);
    color: #fff;
}

.ev-ticket-head .ev-badge { background: rgba(255, 255, 255, .16); color: #fff; }
.ev-ticket-head h1 { font-size: 24px; font-weight: 800; margin: 12px 0 6px; letter-spacing: -.4px; }
.ev-ticket-head p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 13.5px; }

.ev-ticket-body { display: flex; gap: 26px; padding: 26px 30px; align-items: center; flex-wrap: wrap; }

.ev-qr {
    flex: 0 0 220px;
    width: 220px;
    height: 220px;
    padding: 10px;
    border-radius: 14px;
    border: 1px dashed #d7deea;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev-qr svg { width: 100%; height: auto; }

.ev-ticket-infos { flex: 1 1 240px; min-width: 0; }

.ev-ticket-code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--ev-dark);
    margin: 0 0 12px;
}

.ev-ticket-infos dl { margin: 0; font-size: 13.5px; }

.ev-ticket-infos dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--ev-muted); margin-top: 10px; }
.ev-ticket-infos dd { margin: 2px 0 0; color: var(--ev-dark); font-weight: 600; }

.ev-ticket-foot {
    padding: 18px 30px 26px;
    border-top: 1px dashed #e3e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.ev-ticket-foot .ev-note { font-size: 11.5px; color: var(--ev-muted); margin: 0; flex: 1 1 240px; }

.ev-empty { text-align: center; padding: 70px 20px; color: var(--ev-muted); }
.ev-empty i { font-size: 40px; display: block; margin-bottom: 14px; opacity: .4; }

@media (max-width: 860px) {
    .ev-detail { grid-template-columns: 1fr; }
    .ev-hero h1 { font-size: 30px; }
}

@media (max-width: 560px) {
    .ev-ticket-body { justify-content: center; text-align: center; }
    .ev-ticket-infos { text-align: left; }
}

/* Utilitaires minimaux : ces pages ne chargent pas dashforge/bootstrap. */
.ev-body .mg-t-5 { margin-top: 5px !important; }
.ev-body .mg-t-10 { margin-top: 10px !important; }
.ev-body .mg-t-20 { margin-top: 20px !important; }
.ev-body .mg-b-0 { margin-bottom: 0 !important; }
.ev-body .mg-b-20 { margin-bottom: 20px !important; }
.ev-body .mg-r-5 { margin-right: 5px !important; }

@media print {
    body.ev-body { background: #fff; }
    .qw-nav, .qw-nav-slogan-bar, .ev-ticket-foot, .ev-no-print { display: none !important; }
    .ev-ticket-wrap { padding: 0; }
    .ev-ticket { box-shadow: none; border: 2px solid #1b2e4b; max-width: 100%; }
    .ev-main { min-height: 0; }
}
