:root {
    --event-card-bg: #fffaf2;
}

.events-hero {
    position: relative;
    min-height: 285px;
    padding: 100px 20px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        url("/assets/images/dordu.jpg")
        center 48% / cover no-repeat;
    color: #fff;
    text-align: center;
}

.events-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(8,8,12,.42),
            rgba(8,8,12,.78)
        );
}

.events-hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 92%);
}

.events-kicker {
    margin: 0 0 4px;
    color: var(--turquoise);
    text-transform: uppercase;
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.events-hero h1 {
    margin: 0;
    font-family: "Lilita One", sans-serif;
    font-size: clamp(3.4rem, 7vw, 5.6rem);
    font-weight: 400;
    line-height: .92;
}

.events-intro {
    margin: 8px auto 0;
    max-width: 680px;
    font-family: "Caveat", cursive;
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    line-height: 1.1;
}

.events-page {
    min-height: 55vh;
    padding: 34px 20px 60px;
    background:
        linear-gradient(
            to bottom,
            #141211 0,
            var(--deep-dark) 100%
        );
}

.events-container {
    width: min(94%, 1120px);
    margin: 0 auto;
}

.events-list {
    display: grid;
    gap: 20px;
}

.event-card-public {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 15px;
    background: var(--event-card-bg);
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}

.event-poster-wrap {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: #201d1b;
}

.event-poster {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.event-poster-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, #282321, #0f0e0d);
    color: rgba(255,255,255,.7);
    font-family: "Lilita One", sans-serif;
    font-size: 2rem;
}

.event-full-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    text-transform: uppercase;
    font-size: .76rem;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(0,0,0,.25);
}

.event-card-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.event-date-box {
    padding: 11px 6px;
    border-radius: 11px;
    background: var(--turquoise);
    color: #fff;
    text-align: center;
    box-shadow: 0 6px 18px rgba(9,180,205,.22);
}

.event-date-box strong {
    display: block;
    font-family: "Lilita One", sans-serif;
    font-size: 2.15rem;
    font-weight: 400;
    line-height: .9;
}

.event-date-box span {
    display: block;
    margin-top: 5px;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.event-info {
    min-width: 0;
}

.event-type {
    margin: 0 0 4px;
    color: var(--pink);
    text-transform: uppercase;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .07em;
}

.event-info h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1;
}

.event-time {
    margin: 9px 0 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.event-time span {
    margin: 0 4px;
    color: var(--muted, #726d68);
}

.event-description {
    margin: 14px 0 0;
    max-width: 650px;
    line-height: 1.45;
}

.event-footer-line {
    margin-top: 18px;
}

.event-price {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
}

.event-price.free {
    background: var(--turquoise);
}

.events-empty {
    padding: 42px 25px;
    border-radius: 15px;
    background: var(--cream);
    text-align: center;
}

.events-empty h2 {
    margin: 0 0 7px;
    font-size: 2rem;
}

.events-empty p {
    margin: 0;
}

@media (max-width: 760px) {
    .event-card-public {
        grid-template-columns: 1fr;
    }

    .event-poster-wrap {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .event-card-body {
        padding: 18px;
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 15px;
    }

    .event-date-box strong {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .events-hero {
        min-height: 250px;
        padding-top: 92px;
    }

    .events-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .event-card-body {
        grid-template-columns: 1fr;
    }

    .event-date-box {
        width: 72px;
    }
}

/* V10F : cartes éditoriales sans grande colonne d'affiche */
.events-list .event-card-public{display:block;overflow:hidden}
.events-list .event-card-public .tb-event-cover{width:100%;max-height:280px;overflow:hidden}
.events-list .event-card-public .tb-event-cover img{width:100%;height:280px;object-fit:cover;display:block}
.events-list .event-card-public .event-card-body{width:100%;box-sizing:border-box}
.events-list .event-card-public .tb-event-rich img{max-width:100%;height:auto}

/* 10G — Cartes éditoriales pleine largeur et identité de catégorie */
.events-list .event-card-public {display:block!important;min-width:0;overflow:hidden;background:#fffaf2;color:#201d1a}
.events-list .event-card-public .event-card-body {display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;gap:22px;align-items:start;padding:28px 32px}
.events-list .event-card-public .event-info {min-width:0;width:100%;max-width:none}
.events-list .event-card-public .tb-event-rich {display:block;width:100%;max-width:100%;min-width:0;overflow-wrap:break-word}
.events-list .event-card-public .tb-event-rich img {max-width:100%;height:auto;object-fit:contain}
.events-list .event-card-public .event-description {max-width:none}
.tb-event-category-band {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 26px;background:#1c2c32;color:#70c6db;font-size:.9rem;font-weight:900;letter-spacing:.08em}
.tb-event-category-name {display:inline-flex;gap:10px;align-items:center}
.tb-event-category-name span {font-size:1.3rem}
.tb-event-category-date {color:#f7f0e8;font-size:.85rem}
.tb-event-category-sport .tb-event-category-band {background:#292a20;color:#efc66e}
.tb-event-category-animation .tb-event-category-band {background:#29283c;color:#c2b5fa}
.tb-event-category-special .tb-event-category-band {background:#36242f;color:#f3a0ba}
.tb-event-category-other .tb-event-category-band {background:#2b2928;color:#ded5c8}
.tb-event-category-sport .event-date-box {background:#a87824}
.tb-event-category-animation .event-date-box {background:#8271b9}
.tb-event-category-special .event-date-box {background:#bc496f}
.tb-event-category-other .event-date-box {background:#746b61}
.events-list .event-card-public .event-type {display:none}
@media(max-width:640px){.events-list .event-card-public .event-card-body{grid-template-columns:1fr!important;padding:20px;gap:14px}.events-list .event-card-public .event-date-box{width:76px}.tb-event-category-band{padding:12px 16px}.tb-event-category-date{font-size:.75rem}}

/* 10I : miniatures de remplacement, hauteur égale pour toutes les cartes */
.tb-publication-grid .tb-publication-card{display:flex;flex-direction:column;min-height:0}
.tb-publication-grid .tb-card-content{flex:1}
.tb-card-placeholder{height:245px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;background:linear-gradient(145deg,#243944,#14252d);color:#c2e7f0}
.tb-card-placeholder>span{font-size:72px;line-height:1}
.tb-card-placeholder small{font-size:14px;letter-spacing:.12em;font-weight:800}
.tb-news-placeholder{background:linear-gradient(145deg,#354532,#243427);color:#cce5b6}
@media(max-width:700px){.tb-card-placeholder{height:180px}}
