/* Reset et variables */
:root {
    --primary-color: #0065FC;
    --primary-dark: #0052CC;
    --secondary-color: #6cb2eb;
    --accent-color: #FF6B6B;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, blue 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    gap: 10px;
}

.lettre {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 5px;
    animation: flash 1.4s linear infinite;
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

.lettre:nth-child(1) { animation-delay: 0s; }
.lettre:nth-child(2) { animation-delay: 0.1s; }
.lettre:nth-child(3) { animation-delay: 0.2s; }
.lettre:nth-child(4) { animation-delay: 0.3s; }
.lettre:nth-child(5) { animation-delay: 0.4s; }
.lettre:nth-child(6) { animation-delay: 0.5s; }
.lettre:nth-child(7) { animation-delay: 0.6s; }
.lettre:nth-child(8) { animation-delay: 0.7s; }
.lettre:nth-child(9) { animation-delay: 0.8s; }
.lettre:nth-child(10) { animation-delay: 0.9s; }
.lettre:nth-child(11) { animation-delay: 1s; }

/* Header */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
}

.logo i {
    color: var(--secondary-color);
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.favoris-link {
    position: relative;
}

.favoris-count {
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 5px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, blue 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    max-width: 900px;
    margin: 0 auto;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.search-input-group i {
    color: var(--primary-color);
}

.search-input-group input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Filters Section */
.filters-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.filters-section h2 {
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--primary-color);
}

.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    transition: var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-apply-btn,
.filter-reset-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-apply-btn {
    background: var(--primary-color);
    color: white;
}

.filter-apply-btn:hover {
    background: var(--primary-dark);
}

.filter-reset-btn {
    background: white;
    color: var(--text-dark);
    border: 2px solid #ddd;
}

.filter-reset-btn:hover {
    background: var(--bg-light);
}

/* Listings Section */
.listings-section,
.populaires-section,
.activites-section,
.favoris-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Card Style */
.listing-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.listing-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.listing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.favoris-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

.favoris-btn:hover {
    transform: scale(1.1);
}

.favoris-btn i {
    color: var(--text-light);
    font-size: 18px;
    transition: var(--transition);
}

.favoris-btn.active i {
    color: var(--accent-color);
}

.listing-content {
    padding: 20px;
}

.listing-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.listing-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.listing-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.listing-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-light);
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--bg-light);
}

.listing-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.listing-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

.listing-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #FFD700;
}

.rating-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Populaires Grid */
.populaires-section {
    background: var(--bg-light);
}

.populaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.populaire-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    height: 180px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.populaire-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
}

.populaire-image {
    width: 180px;
    height: 100%;
    object-fit: cover;
}

.populaire-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Activités Grid */
.activites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.activite-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 450px;
}

.activite-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.activite-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.activite-content {
    padding: 20px;
}

.activite-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 0 auto;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-body {
    padding: 30px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    transition: bottom 0.3s ease;
}

.toast.show {
    bottom: 30px;
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .populaires-grid {
        grid-template-columns: 1fr;
    }
    
    .populaire-card {
        flex-direction: column;
        height: auto;
    }
    
    .populaire-image {
        width: 100%;
        height: 200px;
    }
    
    .activites-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .lettre {
        font-size: 32px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
}
