* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    font-size: 1.8rem;
}

.logo span {
    background: linear-gradient(135deg, #2a6db6, #4a8dc6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2a6db6;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-mobile {
    display: none;
}

.icon-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.profile-menu {
    position: relative;
}

.profile-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border-radius: 8px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.profile-dropdown.show {
    display: flex;
}

.profile-dropdown a {
    padding: 0.8rem 1rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.profile-dropdown a:hover {
    background: #2a6db6;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 85vh;  /* Augmenté de 80vh à 85vh */
    min-height: 600px; 
    display: flex;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 2rem;
    margin-bottom: 4rem;
}

.hero-badge {
    background: #2a6db6;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cccccc;
    font-size: 0.9rem;
}

.hero-meta i {
    margin-right: 0.3rem;
    color: #2a6db6;
}

.hero-description {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: white;
}

.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.5);
}

/* ========== CATEGORIES ========== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-section {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.category-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.category-link {
    color: #2a6db6;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.category-link:hover {
    text-decoration: underline;
}

.category-row {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.category-row::-webkit-scrollbar {
    /* height: 6px; */
    display: none;
}

.category-row::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.category-row::-webkit-scrollbar-thumb {
    background: #2a6db6;
    border-radius: 3px;
}

.event-card {
    flex: 0 0 auto;
    width: 200px;  /* Augmenté de 140px à 200px */
    cursor: pointer;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: scale(1.05);
}

.event-card-image {
    position: relative;
    width: 100%;
    height: 280px;  /* Augmenté de 200px à 280px */
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 0.5rem;
}

.event-card-title {
    font-size: 0.9rem;  /* Augmenté de 0.8rem */
    font-weight: bold;
    color: white;
    margin: 0;
}

.event-card-info {
    padding: 0.8rem 0;
}

.event-card-date {
    font-size: 0.8rem;  /* Augmenté de 0.7rem */
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-card-date i {
    font-size: 0.7rem;
    color: #2a6db6;
}

.event-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.event-card-badge.free {
    background: #2e7d32;
}

.event-card-badge.paid {
    background: #2a6db6;
}

.favorite-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: white;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ff4444;
}

/* ========== FOOTER ========== */
.footer {
    margin-top: 4rem;
    background: #0a0a0a;
    padding: 2rem;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #2a6db6;
}

.copyright {
    color: #666;
    font-size: 0.8rem;
}

/* ========== PAGE CATÉGORIE ========== */
.category-page {
    padding-top: 80px;
    min-height: 100vh;
}

.category-header-page {
    background: linear-gradient(to bottom, #1a1a1a, #000);
    padding: 2rem;
    text-align: center;
}

.category-header-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-stats {
    color: #999;
}

.events-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

/* ========== PAGE DÉTAILS ========== */
.details-page {
    padding-top: 60px;
}

.details-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
}

.details-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #000, transparent);
    padding: 2rem;
}

.details-content {
    max-width: 800px;
    margin: -50px auto 0;
    position: relative;
    z-index: 2;
    background: #000;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.details-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
}

.details-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.details-meta-item i {
    color: #2a6db6;
}

.details-section {
    margin-bottom: 1.5rem;
}

.details-section h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.details-description {
    color: #ccc;
    line-height: 1.6;
}

.activities-list {
    list-style: none;
    padding-left: 0;
}

.activities-list li {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activities-list li i {
    color: #2a6db6;
    font-size: 0.5rem;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    margin: 1rem 0;
}

/* ========== PAGE RECHERCHE ========== */
.search-page {
    padding-top: 80px;
    min-height: 100vh;
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.search-box {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #2a6db6;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #2a6db6;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.chip {
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.chip:hover,
.chip.active {
    background: #2a6db6;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ========== PAGE LOGIN/REGISTER ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1533174072545-7a4b6ad7a6c3?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 2rem;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    background: rgba(0,0,0,0.85);
    padding: 2rem;
    border-radius: 8px;
}

.auth-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: #2a6db6;
}

.auth-btn {
    background: #2a6db6;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #999;
}

.auth-footer a {
    color: #2a6db6;
    text-decoration: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .search-mobile {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .main-content {
        padding: 0 1rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .event-card {
        width: 120px;
    }
    
    .event-card-image {
        height: 170px;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .details-content {
        padding: 1rem;
        margin: -30px 1rem 0;
    }
    
    .details-title {
        font-size: 1.5rem;
    }
    
    .details-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
    }
    
    .event-card {
        width: 100px;
    }
    
    .event-card-image {
        height: 140px;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-results {
        grid-template-columns: repeat(2, 1fr);
    }
}