* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6a1dba;
    --primary-dark: #5a189a;
    --secondary: #1a1a2e;
    --accent: #9d4edd;
    --light: #f8f9fa;
    --dark: #0f0f1a;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
}

.logo-img {
    height: 35px;
    width: auto;
}

.logo-text {
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0rem;
}

.nav-actions .btn-primary {
    display: none;
}

.btn-text {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(106, 29, 186, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 29, 186, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.banner-section {
    padding: 1rem 0;
}

.banner-image {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
}

.section {
    padding: 1.5rem 0;
    background: var(--white);
}

.section-header {
    text-align: left;
    margin-bottom: 1rem;
}

.section-value .section-header {
    text-align: center;
}

.section-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 0.75rem;
    color: var(--gray);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 100%;
}

.item-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.item-image-wrapper {
    position: relative;
    width: 100%;
}

.item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--gray-light);
    display: block;
}

.item-content {
    padding: 0.5rem 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.item-meta-bottom {
    display: flex;
    align-items: center;
}

.item-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

.item-likes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray);
    white-space: nowrap;
    flex-shrink: 0;
}

.item-shop {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.6875rem;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    z-index: 10;
    max-width: calc(100% - 1rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.item-shop:hover {
    background: rgba(0, 0, 0, 0.85);
}

.item-shop-logo {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.item-shop-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.shops-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
}

.shops-grid::-webkit-scrollbar {
    display: none;
}

.section-top-coffee .section-header::after,
.section-most-visited .section-header::after,
.section-new .section-header::after {
    content: '→ Faites défiler';
    display: inline-block;
    font-size: 0.6875rem;
    color: var(--gray);
    margin-left: 0.5rem;
    font-weight: 500;
}

.shop-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.shop-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--gray-light);
}

.shop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--white);
    color: var(--primary);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.shop-badge.new {
    background: var(--accent);
    color: var(--white);
}

.shop-content {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.shop-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.shop-city {
    font-size: 0.8125rem;
    color: var(--gray);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.shop-stats {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray);
    white-space: nowrap;
    flex-shrink: 0;
}

.shop-stats strong {
    color: var(--dark);
    font-weight: 600;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.value-card {
    text-align: center;
    padding: 1rem;
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.value-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--dark);
}

.value-description {
    font-size: 0.75rem;
    color: var(--gray);
    line-height: 1.4;
}

.value-cta {
    text-align: center;
}

.section-cta {
    padding: 2rem 0;
}

.cta-card {
    background: linear-gradient(135deg, #6a1dba 0%, #9d4edd 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(106, 29, 186, 0.2);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.section-final-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.final-cta-title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.final-cta-subtitle {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.final-cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.final-cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(157, 78, 221, 0.3);
    border-radius: 50%;
    color: #9d4edd;
    font-weight: 700;
    font-size: 0.875rem;
}

.btn-final-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #6a1dba 0%, #9d4edd 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.0625rem;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(106, 29, 186, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-final-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(106, 29, 186, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-section {
    padding: 1rem 0 0 0;
    background: var(--white);
}

.city-selector-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.city-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.city-btn:hover {
    background: var(--light);
}

.city-btn:hover .city-icon {
    transform: scale(1.1);
}

.city-icon {
    flex-shrink: 0;
    color: var(--primary);
    transition: var(--transition);
}

.city-chevron {
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--gray);
}

.city-btn.active .city-chevron {
    transform: rotate(180deg);
}

.city-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 150px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1000;
}

.city-option {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: none;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.city-option:last-child {
    border-bottom: none;
}

.city-option:hover {
    background: var(--light);
    color: var(--primary);
}

.city-option.active {
    background: var(--primary);
    color: var(--white);
}

.city-option.active:hover {
    background: var(--primary-dark);
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 0.6rem 3rem 0.6rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    font-size: 0.8rem;
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 29, 186, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

.search-result-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: var(--light);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-light);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--dark);
    margin-bottom: 0.125rem;
}

.search-result-city {
    font-size: 0.8125rem;
    color: var(--gray);
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--gray);
}

.section-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8125rem;
    border: 2px solid var(--primary);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-explore:hover {
    background: var(--primary);
    color: var(--white);
}

.explore-hero {
    padding: 2rem 0 1rem;
    background: var(--light);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

.explore-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.explore-subtitle {
    font-size: 0.9375rem;
    color: var(--gray);
}

.section-explore {
    padding: 2rem 0;
}

.shops-explore-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
}

.btn-load-more:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 1.5rem 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer .logo-text {
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.skeleton-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-card::before {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, var(--gray-light) 25%, #f0f0f0 50%, var(--gray-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-shop {
    flex: 0 0 280px;
}

.skeleton-shop::before {
    height: 180px;
    aspect-ratio: auto;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.125rem;
}

@media (min-width: 769px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.0625rem;
    }

    .cta-card {
        padding: 3rem 2rem;
    }

    .final-cta-icon {
        font-size: 4.5rem;
    }

    .final-cta-title {
        font-size: 2.75rem;
    }

    .final-cta-subtitle {
        font-size: 1.25rem;
    }

    .section-final-cta {
        padding: 4rem 0;
    }

    .items-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-price {
        font-size: 1.125rem;
    }

    .item-content {
        padding: 0.75rem;
    }

    .shop-card {
        flex: 0 0 320px;
    }

    .shop-image-wrapper {
        height: 220px;
    }

    .shop-name {
        font-size: 1.25rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
        text-align: center;
    }

    .section-header-content {
        align-items: center;
    }

    .explore-title {
        font-size: 2.5rem;
    }

    .explore-subtitle {
        font-size: 1.0625rem;
    }

    .shops-explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .section-top-coffee .section-header::after,
    .section-most-visited .section-header::after,
    .section-new .section-header::after {
        display: none;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-text {
        font-size: 1rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-actions .btn-primary {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.75rem 0 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }

    .section {
        padding: 1.25rem 0;
    }

    .container {
        padding: 0 0.625rem;
    }
}
