/* ==========================================================================
   FATIBILLET - HOMEPAGE MIXTE (Hero V6 / Bas de page V5)
   Racine obligatoire: .homepage-premium
   ========================================================================== */

.homepage-premium {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #111827;
    background-color: #ffffff; /* CORRECTION: Fond blanc pur pour supprimer "l'espace gris" derrière la barre */
}

.homepage-premium .hp-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 767px) {
    .homepage-premium .hp-container { padding: 0 16px; }
}

/* --------------------------------------------------------------------------
   1. HERO IMMERSIF & CENTRÉ (V6)
   -------------------------------------------------------------------------- */
.homepage-premium .hp-hero {
    position: relative;
    width: 100%;
    min-height: clamp(450px, 60vh, 550px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #111827;
    overflow: hidden;
    padding: 80px 20px 80px 20px; /* Espace équilibré */
    text-align: center;
}

.homepage-premium .hp-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.homepage-premium .hp-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 24, 39, 0.65);
    z-index: 1;
}

.homepage-premium .hp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.homepage-premium .hp-hero-title {
    color: #ffffff;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.homepage-premium .hp-hero-subtitle {
    color: #f3f4f6;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --------------------------------------------------------------------------
   2. BARRE DE RECHERCHE FLOTTANTE (V6)
   -------------------------------------------------------------------------- */
.homepage-premium .hp-search-wrapper {
    position: relative;
    z-index: 10;
    /* Ajustement précis de l'espace pour chevaucher le fond du hero */
    margin-top: -45px;
    margin-bottom: 40px; /* Plus d'espace blanc sous la barre avant les événements */
    padding: 0 24px;
}

.homepage-premium .hp-search-bar {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px; /* Angles V5 */
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.homepage-premium .hp-search-field {
    flex: 1;
    position: relative;
    padding: 12px 20px;
    border-right: 1px solid #e5e7eb;
}
.homepage-premium .hp-search-field:nth-last-of-type(2) { border-right: none; }

.homepage-premium .hp-search-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.homepage-premium .hp-search-field .select2-container--default .select2-selection--single {
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 10px 14px;
    height: auto;
}
.homepage-premium .hp-search-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0; font-size: 0.95rem; font-weight: 500; color: #374151;
}
.homepage-premium .hp-search-field .select2-container--default .select2-selection--single .select2-selection__arrow { display: none; }

.homepage-premium .hp-search-btn {
    background-color: #f97316;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 32px;
    height: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.homepage-premium .hp-search-btn:hover { background-color: #ea580c; }


/* --------------------------------------------------------------------------
   3. SECTIONS GLOBALES (V5)
   -------------------------------------------------------------------------- */
.homepage-premium .hp-section { padding: 48px 0; background-color: transparent; margin-bottom: 0;}

.homepage-premium .hp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 16px;
}
.homepage-premium .hp-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}


/* --------------------------------------------------------------------------
   4. EXPLORER (Tuiles V5)
   -------------------------------------------------------------------------- */
.homepage-premium .hp-cat-tiles {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
}
.homepage-premium .hp-cat-tiles::-webkit-scrollbar { height: 6px; }
.homepage-premium .hp-cat-tiles::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.homepage-premium .hp-cat-tile {
    flex: 0 0 auto;
    width: 140px;
    text-align: center;
    text-decoration: none !important;
}
.homepage-premium .hp-cat-tile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.homepage-premium .hp-cat-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.homepage-premium .hp-cat-tile:hover .hp-cat-tile-img { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-color: #f97316; }
.homepage-premium .hp-cat-tile-name { font-size: 0.95rem; font-weight: 600; color: #334155; transition: color 0.2s; }
.homepage-premium .hp-cat-tile:hover .hp-cat-tile-name { color: #f97316; }


/* --------------------------------------------------------------------------
   5. ÉVÉNEMENTS (Style Minimaliste Épuré - Façon Airbnb/Apple)
   -------------------------------------------------------------------------- */
.homepage-premium .hp-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.homepage-premium .hp-events-grid.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
.homepage-premium .hp-events-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 750px; }
.homepage-premium .hp-events-grid.cols-1 { grid-template-columns: 1fr; max-width: 400px; }

.homepage-premium .hp-card-event {
    background: #ffffff;
    border: none; /* Plus de bordure stricte */
    border-radius: 20px; /* Coins très arrondis doux */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); /* Ombre très diffuse */
    height: 100%;
}
.homepage-premium .hp-card-event:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.homepage-premium .hp-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10; /* Un tout petit peu plus haut pour l'élégance */
    background-color: #1f2937;
    overflow: hidden;
}
.homepage-premium .hp-card-media-blur {
    position: absolute; inset: -10px; background-size: cover; background-position: center; filter: blur(15px) brightness(0.6); z-index: 0;
}
.homepage-premium .hp-card-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }

.homepage-premium .hp-card-content {
    padding: 20px 24px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ligne supérieure très aérée (Date • Lieu) */
.homepage-premium .hp-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.homepage-premium .hp-card-meta-date { color: #f97316; }
.homepage-premium .hp-card-meta-dot { color: #d1d5db; }
.homepage-premium .hp-card-meta-venue { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Titre lourd et imposant */
.homepage-premium .hp-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer allégé (sans bordure tiretée, juste le prix propre) */
.homepage-premium .hp-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.homepage-premium .hp-card-price {
    font-size: 0.95rem;
    color: #4b5563;
}
.homepage-premium .hp-card-price strong {
    font-weight: 800;
    color: #111827;
    font-size: 1.15rem;
}


/* --------------------------------------------------------------------------
   6. CTA ORGANISATEUR (V5)
   -------------------------------------------------------------------------- */
.homepage-premium .hp-organizer-banner {
    background-color: #0284c7;
    color: #ffffff;
    border-radius: 8px;
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.homepage-premium .hp-organizer-texts h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 8px 0; }
.homepage-premium .hp-organizer-texts p { font-size: 1.05rem; margin: 0; color: #bae6fd; }
.homepage-premium .hp-organizer-btn {
    background-color: #ffffff; color: #0284c7; padding: 14px 28px; border-radius: 6px; font-weight: 700; font-size: 1.05rem; white-space: nowrap; text-decoration: none; transition: background 0.2s;
}
.homepage-premium .hp-organizer-btn:hover { background-color: #f8fafc; text-decoration: none;}


/* --------------------------------------------------------------------------
   7. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .homepage-premium .hp-events-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .homepage-premium .hp-events-grid { grid-template-columns: repeat(2, 1fr); }
    .homepage-premium .hp-organizer-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 767px) {
    .homepage-premium .hp-hero { padding: 60px 16px 80px 16px; }

    .homepage-premium .hp-search-wrapper { margin-top: -40px; padding: 0 16px; margin-bottom: 24px;}
    .homepage-premium .hp-search-form { flex-direction: column; }
    .homepage-premium .hp-search-form > div { width: 100%; }
    .homepage-premium .hp-search-field { width: 100%; border-right: none; border-bottom: 1px solid #e5e7eb; padding: 12px 0; }
    .homepage-premium .hp-search-field:nth-last-of-type(2) { border-bottom: none; }
    .homepage-premium .hp-search-form > div:last-child { margin-left: 0 !important; margin-top: 12px; padding: 0 !important; }
    .homepage-premium .hp-search-btn { width: 100%; height: 50px;}

    .homepage-premium .hp-events-grid,
    .homepage-premium .hp-events-grid.cols-3,
    .homepage-premium .hp-events-grid.cols-2,
    .homepage-premium .hp-events-grid.cols-1 { grid-template-columns: 1fr; }

    .homepage-premium .hp-cat-tiles::-webkit-scrollbar { display: none; }

    .homepage-premium .hp-section { padding: 32px 0; }
    .homepage-premium .hp-section-title { font-size: 1.4rem; }
    .homepage-premium .hp-organizer-banner { padding: 32px 24px; border-radius: 0; margin: 0 -16px; }
}
