/* ============================================
   HOME PAGE STYLES - AccesConcert
   Pixel Perfect Design
   ============================================ */

/* Google Fonts - Inter (for body text) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Custom Font - Averta (for section titles only) */
@font-face {
    font-family: 'Averta';
    src: url('../fonts/b3c7aa419324c19e-s.p.otf') format('opentype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* Variables */
:root {
    --acces-primary: #0066FF;
    --primary: #026CDF;
    --primary-hover: #0052cc;
    --muted: #6b7280;
    --accent: #c56bff;
    --acces-text-dark: #1a1a1a;
    --acces-text-gray: #666666;
    --acces-text-light: #999999;
    --acces-border: #e0e0e0;
    --acces-bg-light: #f5f5f5;
    --acces-bg-white: #ffffff;
    --acces-star-color: #ffc107;
}

/* Container */
.acces-home-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--acces-text-dark);
    background-color: var(--acces-bg-light);
}

.acces-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   1. HERO BANNER SLIDER
   ============================================ */
.acces-home-hero-slider {
    position: relative;
    margin-bottom: 50px;
}

.acces-hero-slider-container {
    position: relative;
    height: 520px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .acces-hero-slider-container {
        height: 220px;
    }
}

.acces-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

@media (max-width: 768px) {
    .acces-hero-slide {
        height: 220px;
    }
}

.acces-hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Single image without slider */
.acces-home-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Navigation buttons */
.acces-hero-prev,
.acces-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 40px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acces-hero-prev:hover,
.acces-hero-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.acces-hero-prev {
    left: 20px;
}

.acces-hero-next {
    right: 20px;
}

/* Dots navigation */
.acces-hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.acces-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.acces-hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.acces-hero-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   2. SECTION TITLES
   ============================================ */
.acces-home-section {
    margin-bottom: 0;
}

.acces-home-section-title {
    font-family: 'AvertaSemiBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 23px;
    font-weight: 600;
    color: var(--acces-text-dark);
    margin: 0 0 24px 0;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.acces-home-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--acces-primary), #8b5cf6);
    border-radius: 2px;
}

/* ============================================
   3. PROCHAINES RENCONTRES - Grid 4 colonnes
   ============================================ */
.acces-home-featured {
    background-color: white;
    padding: 0;
    margin: 0;
}

.acces-home-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.acces-home-event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.acces-home-event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.acces-home-event-card:hover {
    transform: translateY(-4px);
}

.acces-home-event-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.acces-home-event-body {
    padding: 20px;
}

.acces-home-event-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--acces-text-dark);
    text-transform: uppercase;
}

.acces-home-event-date {
    font-size: 14px;
    color: var(--acces-text-gray);
    margin: 0 0 12px 0;
}

.acces-home-event-address {
    font-size: 12px;
    color: var(--acces-text-gray);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.acces-home-event-category {
    font-size: 11px;
    color: var(--acces-text-light);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges pour Prochaines rencontres */
.acces-home-event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.acces-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background-color: #f0f7ff;
    color: var(--acces-primary);
    border: 1px solid var(--acces-primary);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.acces-badge-eticket {
    background-color: #f0f7ff;
    color: var(--acces-primary);
}

.acces-badge-revente {
    background-color: #fff;
    color: #666;
    border-color: #ddd;
}

.acces-badge-plan {
    background-color: #fff;
    color: #666;
    border-color: #ddd;
}

.acces-badge-collector {
    background-color: #fff;
    color: #666;
    border-color: #ddd;
}

.acces-badge svg {
    width: 14px;
    height: 14px;
}

.acces-home-event-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--acces-text-dark);
    margin: 0;
}

/* ============================================
   4. MEILLEURES VENTES - Full Width Section
   ============================================ */
.acces-home-bestsellers-section {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none !important;
}

/* Items de liste d'événements */
.acces-home-bestsellers-section ul li {
    border-bottom: 1px solid #d1d5db;
}

.acces-home-bestsellers-section ul li:last-child {
    border-bottom: none;
}

.acces-home-bestsellers-section .acces-home-section-title {
    text-align: left;
    font-size: 24px;
    margin-bottom: 24px;
}

.acces-home-bestsellers-section .acces-home-section-title::after {
    left: 0;
    transform: none;
}

.acces-home-best-selling {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.acces-home-best-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: white;
    border: 1px solid var(--acces-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.acces-home-best-item:hover {
    border-color: var(--acces-primary);
    transform: translateY(-2px);
}

.best-item-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--acces-primary);
    min-width: 40px;
    line-height: 1;
}

.best-item-content {
    flex: 1;
    min-width: 0;
}

.best-item-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--acces-text-dark);
    line-height: 1.3;
}

.best-item-meta {
    font-size: 12px;
    color: var(--acces-text-gray);
    margin: 0;
    line-height: 1.4;
}

.best-item-arrow {
    display: none;
}

/* ============================================
   5. NOS ÉVÉNEMENTS DISPONIBLES - Full Width Section
   ============================================ */
.acces-home-events-section {
    background: transparent;
    padding: 0;
    box-shadow: none !important;
}

.acces-home-events-section .acces-home-section-title {
    text-align: center;
    font-family: 'AvertaSemiBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 24px;
}

.acces-home-events-section .acces-home-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.acces-home-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Event Grid Item - Tailwind CSS classes sont utilisées directement dans le HTML */
/* CSS custom pour les classes utilisées dans les cartes d'événements */
.shadow-soft {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-medium {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Font brand for event cards */
.font-brand {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   7. PAGINATION
   ============================================ */
.acces-home-pagination {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--acces-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acces-home-pagination .page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.acces-home-pagination .page-numbers li {
    display: inline-block;
}

.acces-home-pagination .page-numbers a,
.acces-home-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--acces-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--acces-text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.acces-home-pagination .page-numbers a:hover {
    border-color: var(--acces-primary);
    color: var(--acces-primary);
    background-color: #f0f7ff;
}

.acces-home-pagination .page-numbers .current {
    background-color: var(--acces-primary);
    color: white;
    border-color: var(--acces-primary);
}

.acces-pagination-info {
    font-size: 14px;
    color: var(--acces-text-gray);
    margin: 0;
}

/* ============================================
   8. RESPONSIVE DESIGN
   ============================================ */

/* Tablette (< 1200px) */
@media (max-width: 1199px) {
    .acces-home-events-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .acces-home-best-selling {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablette portrait (< 992px) */
@media (max-width: 991px) {
    .acces-hero-slider-container,
    .acces-home-hero {
        height: 400px;
    }
    
    .acces-home-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .acces-home-best-selling {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-list-image {
        width: 100px;
        height: 100px;
    }
    
    .acces-hero-prev,
    .acces-hero-next {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .acces-hero-slider-container,
    .acces-home-hero {
        height: 220px;
    }
    
    .acces-hero-prev,
    .acces-hero-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .acces-hero-prev {
        left: 10px;
    }
    
    .acces-hero-next {
        right: 10px;
    }
    
    .acces-hero-dot {
        width: 10px;
        height: 10px;
    }
    
    .acces-hero-dot.active {
        width: 24px;
    }
    
    .acces-home-events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .acces-home-best-selling {
        grid-template-columns: 1fr;
    }
    
    .acces-home-event-list-item {
        flex-direction: column;
    }
    
    .event-list-image {
        width: 100%;
        height: 180px;
    }
    
    .event-list-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .event-list-price {
        text-align: left;
    }
    
    .event-list-btn {
        flex-shrink: 0;
    }
    
    .acces-home-pagination {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Petit mobile (< 576px) */
@media (max-width: 575px) {
    .acces-container {
        padding: 0 15px;
    }
    
    .acces-home-section-title {
        font-size: 20px;
        font-weight: 600;
    }
    
    .acces-home-bestsellers-section,
    .acces-home-events-section {
        padding: 0;
    }
    
    .acces-home-event-badges,
    .event-list-badges {
        gap: 4px;
    }
    
    .acces-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .event-list-title {
        font-size: 16px;
    }
    
    .event-list-price strong {
        font-size: 16px;
    }
}
