/* Variables isolées */
.events-page-container {
    --primary-orange: #e65100;
    --primary-orange-hover: #cf4700;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light-pill: #f8fafc;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* HERO BANNER SECTION */
.events-page-container .events-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.events-page-container .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.events-page-container .hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.events-page-container .hero-buttons {
    display: flex;
    gap: 15px;
}

.events-page-container .btn-hero-primary {
    background-color: var(--primary-orange);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    display: inline-block;
}

.events-page-container .btn-hero-primary:hover {
    background-color: var(--primary-orange-hover);
}

.events-page-container .btn-hero-secondary {
    background-color: #fff;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.events-page-container .hero-image-wrapper {
    width: 100%;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
}

.events-page-container .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SECTION TOP EXPERIENCES */
.events-page-container .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.events-page-container .section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.events-page-container .carousel-nav-btns {
    display: flex;
    gap: 10px;
}

.events-page-container .nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.events-page-container .nav-btn.btn-next {
    background-color: var(--primary-orange);
    color: #fff;
    border-color: var(--primary-orange);
}

/* GRILLE DE CARTES */
.events-page-container .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.events-page-container .event-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.events-page-container .event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.events-page-container .event-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #f1f5f9;
}

.events-page-container .event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-page-container .verified-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #059669;
    font-size: 1.5rem;
    background: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.events-page-container .badge-status.complet {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.events-page-container .event-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.events-page-container .event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.events-page-container .event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d97706;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* PUCE / TAGS */
.events-page-container .event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.events-page-container .tag-pill {
    background-color: var(--bg-light-pill);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .events-page-container .events-hero {
        grid-template-columns: 1fr;
    }

    .events-page-container .hero-image-wrapper {
        height: 220px;
    }
}


/* ==========================================================================
   PAGE LISTE DES ÉVÉNEMENTS (LAYOUT FLUIDE & IMPACTANT)
   ========================================================================== */

/* 1. Barres d'actions utilisateur en haut */
.actions-utilisateur-barre {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--bordure, #e2e8f0);
    border-radius: var(--radius-md, 16px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.actions-utilisateur-barre .lien-retour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--texte-principal, #0f172a);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.actions-utilisateur-barre .lien-retour:hover {
    background: var(--primaire, #f97316);
    color: #ffffff;
    border-color: var(--primaire, #f97316);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

/* 2. Grille responsive des cartes */
.grille-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.75rem;
    margin-top: 1rem;
}

/* 3. Carte Événement Premium */
.carte-cagnotte {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--bordure, #e2e8f0);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.carte-cagnotte:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(249, 115, 22, 0.2);
}

/* Container Média / Image */
.carte-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    overflow: hidden;
}

.carte-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carte-cagnotte:hover .carte-image img {
    transform: scale(1.08);
}

/* Badge Complet */
.badge-complet {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    backdrop-filter: blur(4px);
}

/* Corps de la Carte */
.carte-corps {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge-categorie {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    background-color: #ffedd5;
    color: #ea580c;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.85rem;
}

.carte-titre {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evenement-lieu,
.evenement-date {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Prix à partir de */
.evenement-prix {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed #f1f5f9;
    font-size: 1.15rem;
    font-weight: 900;
    color: #f97316;
    letter-spacing: -0.02em;
}

/* État vide */
.aucun-evenement-box {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
}