/* -------------------------- */
/* PAGE GENERALE */
/* -------------------------- */

.event-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f7f7f7;
    color: #111;
}

.container {
    max-width: 1100px;
}

/* -------------------------- */
/* HERO */
/* -------------------------- */

.event-hero {
    height: 330px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
}

.event-hero-content {
    position: relative;
    padding-bottom: 40px;
    color: #fff;
}

.event-hero h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
}

.event-hero span {
    font-weight: 700;
    font-size: 2.6rem;
}

/* -------------------------- */
/* TITRES DE SECTION */
/* -------------------------- */

.event-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 5px;
    color: #000;
}

/* -------------------------- */
/* INPUTS et SELECTS */
/* -------------------------- */

.event-input, 
.event-input-file {
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    background-color: white;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.event-input-file {
    border-radius: 999px;
    padding: 10px 18px;
}

textarea.event-input {
    border-radius: 25px;
    padding: 15px 20px;
    resize: vertical;
}

/* Boutons de type file input */
.event-input-file::-webkit-file-upload-button {
    background-color: transparent;
    border: 2px solid #3D18D3;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #3D18D3;
    transition: 0.2s;
}

.event-input-file::-webkit-file-upload-button:hover {
    background-color: #3D18D3;
    color: white;
}

/* -------------------------- */
/* COMPTEURS (+ / -) */
/* -------------------------- */

.event-counter .btn {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid #3D18D3;
    color: #3D18D3;
    background: white;
}

.event-counter .btn:hover {
    background: #3D18D3 !important;
    color: white !important;
}

.event-counter input {
    width: 70px;
    border-radius: 999px;
}

/* -------------------------- */
/* RÃˆGLEMENTATION */
/* -------------------------- */

.event-rules-box {
    background-color: #fff;
    border-radius: 25px;
    padding: 18px 22px;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.event-rules-box.expanded {
    max-height: 600px;
}

.event-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #3D18D3;
}

.event-checkbox:checked {
    background-color: #3D18D3;
    border-color: #3D18D3;
}

/* -------------------------- */
/* BOUTONS GLOBAUX */
/* -------------------------- */

.event-page .btn {
    border-radius: 999px;
    padding: 8px 26px;
    font-weight: 500;
    transition: 0.25s ease-in-out;
}

/* Normal */
.event-page .btn-primary,
.event-page .btn-outline-primary {
    border: 2px solid #3D18D3;
    color: #3D18D3;
    background: white;
}

/* Hover global : violet + blanc */
.event-page .btn:hover,
.event-page .btn:focus {
    background-color: #3D18D3 !important;
    color: white !important;
    border-color: #3D18D3 !important;
}

/* Voir plus */
.btn-see-more {
    border: 2px solid #3D18D3;
    color: #3D18D3;
}

/* -------------------------- */
/* TICKET FINAL */
/* -------------------------- */

.event-ticket-wrapper {
    margin-top: 50px;
}

.event-ticket {
    background: white;
    border-radius: 25px;
    padding: 25px 30px;
    display: flex;
    gap: 25px;
    box-shadow: 0 0 0 1px #e4e4e4;
}

.event-ticket-image img {
    width: 220px;
    height: 220px;
    border-radius: 25px;
    object-fit: cover;
    background-color: #eee;
}

.ticket-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.ticket-description {
    font-size: 0.95rem;
    margin: 10px 0;
    line-height: 1.4;
}

.ticket-meta {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.ticket-heart {
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.ticket-heart:hover {
    color: #3D18D3;
}

/* Bouton voir plus sur le ticket */
.btn-ticket-more {
    border: 2px solid #3D18D3;
    color: #3D18D3;
    margin-top: 15px;
}

/* -------------------------- */
/* RESPONSIVE */
/* -------------------------- */

@media (max-width: 768px) {

    .event-hero {
        height: 260px;
    }

    .event-ticket {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-ticket-image img {
        width: 100%;
        height: auto;
    }

    .event-ticket-actions {
        align-items: flex-start;
        width: 100%;
    }
}