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

:root {
    --white: #ffffff;
    --green: #4ade80;
    --green-dark: #22c55e;
    --text: #1a2a3a;
    --text-muted: #8a9aaa;
    --border: #e8ecf0;
    --bg-light: #fafbfc;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ============ HEADER ============ */
.main-header {
    position: sticky;
    top: 16px;
    z-index: 100;
    background: var(--white);
    border-radius: 60px;
    height: 60px;
    border: 1px solid var(--border);
    margin: 16px 16px 0 16px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--green);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.market-btn {
    background: var(--green);
    border: none;
    border-radius: 40px;
    padding: 8px 18px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

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

.profile-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.profile-btn:hover {
    background: var(--green);
    color: white;
    transform: scale(1.05);
}

/* ============ BANNIÈRE INSTALLATION ============ */
.install-banner {
    background: var(--bg-light);
    border: 1px solid var(--green);
    padding: 12px 20px;
    margin: 16px 16px 0 16px;
    border-radius: 60px;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.install-banner.show {
    display: flex;
}

.install-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--green);
}

.install-btn {
    background: var(--green);
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

/* ============ BANNIÈRES CTA ============ */
.cta-banner {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin: 20px 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.3s;
}

.cta-banner:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}

.cta-banner.alt {
    background: var(--bg-light);
    border-left: 4px solid var(--green);
}

.cta-banner.last {
    background: var(--bg-light);
    border-left: 4px solid var(--green);
}

.cta-icon {
    font-size: 2rem;
    color: var(--green);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.cta-content {
    flex: 1;
}

.cta-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.cta-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    padding: 6px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.cta-btn:hover {
    background: var(--green);
    color: white;
}

.cta-btn.primary {
    background: var(--green);
    color: white;
}

.cta-btn.primary:hover {
    background: var(--green-dark);
}

/* ============ WELCOME CARD ============ */
.welcome-section {
    margin: 20px 16px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--bg-light), var(--white));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
}

.welcome-card i {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 12px;
}

.welcome-card h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.welcome-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============ SECTIONS ============ */
section {
    margin: 32px 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.section-header h2 i {
    color: var(--green);
}

.section-link {
    color: var(--green);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-link:hover {
    text-decoration: underline;
}

/* ============ PRODUITS TENDANCES (CARROUSEL) ============ */
.trending-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0 16px;
    scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
    height: 4px;
}

.carousel-track::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 4px;
}

.trending-item {
    flex: 0 0 160px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.trending-item:hover {
    transform: translateY(-4px);
    border-color: var(--green);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.15);
}

.trending-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.trending-item .image-placeholder {
    width: 100%;
    height: 140px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.trending-item .info {
    padding: 10px;
}

.trending-item .name {
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.trending-item .price {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 700;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-nav:hover {
    background: var(--green);
}

/* ============ MARCHÉS GRILLE ============ */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.market-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.market-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
}

.market-card i {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 8px;
}

.market-card h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-card p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============ PRODUITS TOP (CARROUSEL AUTO) ============ */
.top-products-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.top-products-carousel .carousel-container {
    position: relative;
}

.top-products-carousel .carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.top-products-carousel .carousel-slide {
    flex: 0 0 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    cursor: pointer;
}

.top-products-carousel .carousel-slide img {
    width: 140px;
    height: 140px;
    object-fit: cover;
}

.top-products-carousel .carousel-slide .image-placeholder {
    width: 140px;
    height: 140px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.top-products-carousel .carousel-slide .info {
    flex: 1;
    padding: 16px;
}

.top-products-carousel .carousel-slide .badge {
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.top-products-carousel .carousel-slide h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.top-products-carousel .carousel-slide .price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green);
}

.top-products-carousel .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
}

.top-products-carousel .carousel-control.prev {
    left: 12px;
}

.top-products-carousel .carousel-control.next {
    right: 12px;
}

.top-products-carousel .carousel-control:hover {
    background: var(--green);
}

.top-products-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
}

.top-products-carousel .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.top-products-carousel .carousel-dot.active {
    background: var(--green);
    width: 20px;
    border-radius: 4px;
}

/* ============ PRODUITS DISPONIBLES ============ */
.products-horizontal-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.products-horizontal-scroll::-webkit-scrollbar {
    height: 4px;
}

.products-horizontal-scroll::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 4px;
}

.products-horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 4px;
}

.products-scroll-track {
    display: flex;
    gap: 12px;
    padding: 4px 0 8px;
}

.product-scroll-item {
    flex: 0 0 120px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.product-scroll-item:hover {
    transform: translateY(-4px);
    border-color: var(--green);
}

.product-scroll-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.product-scroll-item .image-placeholder {
    width: 100%;
    height: 120px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.product-scroll-item .name {
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ COUP DE CŒUR ============ */
.featured-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    cursor: pointer;
    transition: all 0.3s;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
}

.featured-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
}

.featured-card .image-placeholder {
    width: 140px;
    height: 140px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.featured-card .info {
    flex: 1;
    padding: 16px;
}

.featured-card .badge {
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.featured-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.featured-card .price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green);
}

/* ============ BANNIÈRE ENCOURAGEMENT ============ */
.encouragement-banner {
    background: linear-gradient(135deg, var(--bg-light), var(--white));
    border: 1px solid var(--green);
    border-radius: 24px;
    margin: 20px 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.encouragement-icon {
    font-size: 2rem;
    color: var(--green);
    flex-shrink: 0;
}

.encouragement-content {
    flex: 1;
}

.encouragement-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.encouragement-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.encouragement-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.encouragement-btn:hover {
    background: var(--green-dark);
}

/* ============ ACTUALITÉS ============ */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.news-card img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.news-card .image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.news-card .content {
    flex: 1;
}

.news-card .type {
    font-size: 0.7rem;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 4px;
}

.news-card h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.news-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============ SECTIONS INFO ============ */
.info-grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 16px;
}

.info-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
}

.info-card:hover {
    border-color: var(--green);
}

.info-icon {
    font-size: 1.8rem;
    color: var(--green);
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============ FOOTER ============ */
.main-footer-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: var(--white);
    border-radius: 60px;
    height: 60px;
    border: 1px solid var(--border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.footer-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    transition: all 0.2s;
}

.footer-nav-btn i {
    font-size: 1.2rem;
}

.footer-nav-btn.active,
.footer-nav-btn:hover {
    color: var(--green);
}

/* ============ SKELETONS ============ */
.skeleton-market-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.skeleton-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: pulse 1.5s infinite;
}

.skeleton-text {
    height: 12px;
    background: var(--bg-light);
    margin: 8px auto;
    border-radius: 6px;
    width: 80%;
    animation: pulse 1.5s infinite;
}

.skeleton-featured {
    height: 160px;
    background: var(--bg-light);
    border-radius: 24px;
    animation: pulse 1.5s infinite;
}

.skeleton-news {
    display: flex;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
}

.skeleton-news .skeleton-image {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 12px;
    animation: pulse 1.5s infinite;
}

.skeleton-news .skeleton-text {
    flex: 1;
    height: 12px;
    margin: 0;
    width: 100%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .info-grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    .market-btn span {
        display: none;
    }
    .market-btn {
        padding: 8px 12px;
    }
    .top-products-carousel .carousel-slide {
        flex-direction: column;
        text-align: center;
    }
    .top-products-carousel .carousel-slide img,
    .top-products-carousel .carousel-slide .image-placeholder {
        width: 100%;
        height: 180px;
    }
    .featured-card {
        flex-direction: column;
        text-align: center;
    }
    .featured-card img,
    .featured-card .image-placeholder {
        width: 100%;
        height: 200px;
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
    .encouragement-banner {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav-btn span {
        display: none;
    }
    .footer-nav-btn i {
        font-size: 1.3rem;
    }
    .main-footer-bar {
        height: 55px;
    }
}

@media (max-width: 600px) {
    .info-grid-section {
        grid-template-columns: 1fr;
        margin: 24px 12px;
    }
    .trending-item {
        flex: 0 0 130px;
    }
    .trending-item img,
    .trending-item .image-placeholder {
        height: 110px;
    }
    .markets-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .product-scroll-item {
        flex: 0 0 100px;
    }
    .product-scroll-item img,
    .product-scroll-item .image-placeholder {
        height: 100px;
    }
}
/* ============ HEADER AVEC NOM CENTRÉ ============ */
.main-header {
    position: sticky;
    top: 16px;
    z-index: 100;
    background: var(--white);
    border-radius: 60px;
    height: 60px;
    border: 1px solid var(--border);
    margin: 16px 16px 0 16px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Nom centré en vert */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 1rem;
    color: var(--green);
    white-space: nowrap;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.market-btn {
    background: var(--green);
    border: none;
    border-radius: 40px;
    padding: 8px 18px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

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

.profile-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.profile-btn:hover {
    background: var(--green);
    color: white;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 600px) {
    .header-center {
        font-size: 0.85rem;
    }
    .market-btn span {
        display: none;
    }
    .market-btn {
        padding: 8px 12px;
    }
}
/* Message connexion */
.connect-message {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    margin-bottom: 8px;
}

.connect-message.error {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

.connect-message.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}
/* ============ BOUTON MISE À JOUR AVEC BADGE ============ */
.refresh-btn {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid #4ade80;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4ade80;
    transition: all 0.2s;
    position: relative;
}

.refresh-btn:hover {
    background: #4ade80;
    color: white;
    transform: rotate(180deg);
}

.refresh-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges de titre */
.title-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.title-badge.badge-green {
    background: rgba(74, 222, 128, 0.15);
    color: #2e7d32;
}

.title-badge.badge-blue {
    background: rgba(90, 158, 255, 0.15);
    color: #1976d2;
}

.title-badge.badge-orange {
    background: rgba(255, 170, 68, 0.15);
    color: #ed6c02;
}

/* Nom du produit en badge vert */
.product-name-badge {
    display: inline-block;
    background: #4ade80;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
}

/* Message du vendeur */
.news-announcement {
    font-size: 0.8rem;
    color: #1a2a3a;
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 12px;
    margin-top: 6px;
    line-height: 1.4;
}

.news-message-line {
    font-size: 0.8rem;
    color: #1a2a3a;
    margin-top: 4px;
}
/* ============ BANNIÈRES D'ACTUALITÉS ============ */
.news-banners-section {
    margin: 20px 16px;
}

.news-banners-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Style principal de la bannière */
.news-banner {
    background: linear-gradient(135deg, #fafbfc, #ffffff);
    border: 1px solid #e8ecf0;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    gap: 18px;
    transition: all 0.3s ease;
    cursor: default;
    animation: slideIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.news-banner:hover {
    border-color: #4ade80;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.12);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bordures colorées selon le type */
.news-banner.new-product {
    border-left: 4px solid #4ade80;
}
.news-banner.new-product .news-icon {
    color: #4ade80;
}

.news-banner.message {
    border-left: 4px solid #5a9eff;
}
.news-banner.message .news-icon {
    color: #5a9eff;
}

.news-banner.product-disabled {
    border-left: 4px solid #ffaa44;
}
.news-banner.product-disabled .news-icon {
    color: #ffaa44;
}

/* Icône */
.news-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 50%;
}

/* Contenu */
.news-content {
    flex: 1;
}

/* Titre avec badge */
.news-title {
    margin-bottom: 8px;
}

.title-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.title-badge.badge-green {
    background: rgba(74, 222, 128, 0.15);
    color: #2e7d32;
}

.title-badge.badge-blue {
    background: rgba(90, 158, 255, 0.15);
    color: #1976d2;
}

.title-badge.badge-orange {
    background: rgba(255, 170, 68, 0.15);
    color: #ed6c02;
}

/* Ligne de message */
.news-message-line {
    font-size: 0.85rem;
    color: #1a2a3a;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Nom du produit en badge vert (rectangle) */
.product-name-badge {
    display: inline-block;
    background: #4ade80;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    box-shadow: 0 2px 4px rgba(74, 222, 128, 0.2);
}

/* Annonce du vendeur */
.news-announcement {
    font-size: 0.85rem;
    color: #1a2a3a;
    background: #f0f2f5;
    padding: 10px 14px;
    border-radius: 14px;
    margin-top: 8px;
    line-height: 1.5;
    border-left: 3px solid #5a9eff;
}

/* Date */
.news-time {
    font-size: 0.65rem;
    color: #b0b8c5;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-time::before {
    content: "•";
    font-size: 0.5rem;
}

/* Highlight pour les nouvelles bannières */
.news-banner.highlight {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border-color: #4ade80;
    animation: highlightPulse 0.6s ease;
}

@keyframes highlightPulse {
    0% {
        background: #ffffff;
        border-color: #e8ecf0;
        box-shadow: none;
    }
    30% {
        background: #f0fdf4;
        border-color: #4ade80;
        box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
    }
    100% {
        background: #f0fdf4;
        border-color: #4ade80;
        box-shadow: none;
    }
}

/* Skeleton de chargement */
.skeleton-banner {
    background: linear-gradient(135deg, #fafbfc, #ffffff);
    border-radius: 24px;
    height: 110px;
    animation: pulse 1.5s infinite;
    border: 1px solid #e8ecf0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8a9aaa;
    background: #fafbfc;
    border-radius: 20px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
    .news-banner {
        padding: 14px;
        gap: 12px;
    }
    
    .news-icon {
        font-size: 1.4rem;
        width: 40px;
        height: 40px;
    }
    
    .title-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
    
    .news-message-line {
        font-size: 0.75rem;
    }
    
    .product-name-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .news-announcement {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .news-time {
        font-size: 0.6rem;
    }
}
/* ============ BANNIÈRES INFINIES (produits aléatoires) ============ */
.infinite-banners-section {
    margin: 32px 16px;
}

.infinite-banners-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-banner {
    background: linear-gradient(135deg, #fafbfc, #ffffff);
    border: 1px solid #e8ecf0;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 16px;
}

.product-banner:hover {
    border-color: #4ade80;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.12);
}

.banner-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fafbfc;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #8a9aaa;
}

.banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.banner-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0;
}

.banner-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4ade80;
    margin: 0;
}

.banner-btn {
    background: transparent;
    border: 1px solid #4ade80;
    border-radius: 40px;
    padding: 8px 20px;
    color: #4ade80;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
    font-family: 'DM Sans', sans-serif;
}

.banner-btn:hover {
    background: #4ade80;
    color: white;
}

.loading-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 8px;
}

.loading-spinner-small {
    width: 30px;
    height: 30px;
    border: 2px solid #e8ecf0;
    border-top-color: #4ade80;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .product-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .banner-image {
        width: 100%;
        height: 180px;
        margin: 0 auto;
    }
    
    .banner-content {
        align-items: center;
    }
}

/* ============ MODALE DE REDIRECTION FLOUTÉE ============ */
.redirect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.redirect-modal-content {
    background: #ffffff;
    border-radius: 32px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.redirect-icon {
    font-size: 3.5rem;
    color: #4ade80;
    margin-bottom: 16px;
}

.redirect-modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1a2a3a;
}

.redirect-modal-content p {
    font-size: 0.9rem;
    color: #8a9aaa;
    margin-bottom: 20px;
    line-height: 1.5;
}

.redirect-info {
    background: #e8f4e8;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    color: #2e7d32;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.redirect-timer {
    font-size: 0.9rem;
    color: #1a2a3a;
    margin-bottom: 16px;
}

.redirect-timer span {
    font-weight: 700;
    color: #4ade80;
    font-size: 1.2rem;
}

.redirect-progress {
    background: #e8ecf0;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #4ade80;
    border-radius: 10px;
    transition: width 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ============ PRODUITS BOOSTÉS ============ */
/* ============ PRODUITS BOOSTÉS ============ */
.boosted-section {
    margin: 20px 16px;
    position: relative;
}

.boosted-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}

.boosted-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.boosted-card {
    flex: 0 0 100%;
    background: linear-gradient(135deg, #ffffff, #fafbfc);
    border: 1px solid #e8ecf0;
    border-radius: 28px;
    overflow: hidden;
    padding: 20px;
    transition: all 0.3s ease;
}

.boosted-card:hover {
    border-color: #4ade80;
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.15);
}

/* Header de la carte (photo + nom) */
.boosted-header {
    background: #fafbfc;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border: 1px solid #e8ecf0;
}

/* Photo cercle avec carrousel */
.boosted-photo {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8ecf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.boosted-photo .boosted-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boosted-photo .photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #8a9aaa;
}

/* Navigation photo (flèches) */
.boosted-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 0.6rem;
    transition: all 0.2s;
    z-index: 10;
}

.boosted-photo-nav:hover {
    background: #4ade80;
    transform: translateY(-50%) scale(1.1);
}

.boosted-photo-nav.prev-photo {
    left: 4px;
}

.boosted-photo-nav.next-photo {
    right: 4px;
}

/* Infos header (nom + marché) */
.boosted-header-info {
    flex: 1;
}

.boosted-header-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a2a3a;
}

.boosted-header-info .market-name {
    font-size: 0.7rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
}

/* Corps de la carte (infos boost) */
.boosted-body {
    background: #f0fdf4;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid #4ade80;
}

.boosted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4ade80;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.boosted-promo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff4d4d;
    margin-bottom: 8px;
}

.boosted-date {
    font-size: 0.7rem;
    color: #8a9aaa;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.boosted-desc {
    font-size: 0.8rem;
    color: #1a2a3a;
    line-height: 1.4;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(74, 222, 128, 0.3);
}

/* Bouton voir le produit */
.boosted-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4ade80;
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.boosted-btn:hover {
    background: #22c55e;
    transform: translateX(4px);
}

/* Navigation carrousel principal (gauche/droite) */
.boosted-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 20;
    transition: all 0.2s;
}

.boosted-nav:hover {
    background: #4ade80;
    transform: translateY(-50%) scale(1.05);
}

.boosted-nav.prev {
    left: 12px;
}

.boosted-nav.next {
    right: 12px;
}

/* Empty state */
.boosted-track .empty-state {
    text-align: center;
    padding: 40px;
    color: #8a9aaa;
    background: #fafbfc;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .boosted-section {
        margin: 16px 12px;
    }
    
    .boosted-card {
        padding: 16px;
    }
    
    .boosted-header {
        flex-direction: column;
        text-align: center;
    }
    
    .boosted-photo {
        width: 60px;
        height: 60px;
    }
    
    .boosted-header-info h3 {
        font-size: 0.9rem;
    }
    
    .boosted-body {
        padding: 12px;
    }
    
    .boosted-promo {
        font-size: 0.9rem;
    }
    
    .boosted-nav {
        width: 32px;
        height: 32px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --green: #4ade80;
    --green-dark: #22c55e;
    --red: #ff4d4d;
    --text: #1a2a3a;
    --text-muted: #8a9aaa;
    --border: #e8ecf0;
    --bg-light: #fafbfc;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ============ HEADER ============ */
.main-header {
    position: sticky;
    top: 16px;
    z-index: 100;
    background: var(--white);
    border-radius: 60px;
    height: 60px;
    border: 1px solid var(--border);
    margin: 16px 16px 0 16px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 1rem;
    color: var(--green);
    white-space: nowrap;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.market-btn {
    background: var(--green);
    border: none;
    border-radius: 40px;
    padding: 8px 18px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

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

.profile-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.profile-btn:hover {
    background: var(--green);
    color: white;
    transform: scale(1.05);
}

/* Bouton refresh avec badge */
.refresh-btn {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid var(--green);
    border-radius: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--green);
    transition: all 0.2s;
    position: relative;
}

.refresh-btn:hover {
    background: var(--green);
    color: white;
    transform: rotate(180deg);
}

.refresh-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ BANNIÈRE INSTALLATION ============ */
.install-banner {
    background: var(--bg-light);
    border: 1px solid var(--green);
    padding: 12px 20px;
    margin: 16px 16px 0 16px;
    border-radius: 60px;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.install-banner.show {
    display: flex;
}

.install-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--green);
}

.install-btn {
    background: var(--green);
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

/* ============ BANNIÈRES CTA ============ */
.cta-banner {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin: 20px 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.3s;
}

.cta-banner:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}

.cta-banner.alt {
    background: var(--bg-light);
    border-left: 4px solid var(--green);
}

.cta-banner.last {
    background: var(--bg-light);
    border-left: 4px solid var(--green);
}

.cta-icon {
    font-size: 2rem;
    color: var(--green);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.cta-content {
    flex: 1;
}

.cta-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.cta-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    padding: 6px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.cta-btn:hover {
    background: var(--green);
    color: white;
}

.cta-btn.primary {
    background: var(--green);
    color: white;
}

.cta-btn.primary:hover {
    background: var(--green-dark);
}

/* ============ WELCOME CARD ============ */
.welcome-section {
    margin: 20px 16px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--bg-light), var(--white));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
}

.welcome-card i {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 12px;
}

.welcome-card h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.welcome-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.connect-message {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    margin-bottom: 8px;
}

.connect-message.error {
    color: var(--red);
    background: rgba(255, 77, 77, 0.1);
}

.connect-message.success {
    color: var(--green);
    background: rgba(74, 222, 128, 0.1);
}

/* ============ SECTIONS ============ */
section {
    margin: 32px 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.section-header h2 i {
    color: var(--green);
}

.section-link {
    color: var(--green);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-link:hover {
    text-decoration: underline;
}

/* ============ BANNIÈRES D'ACTUALITÉS ============ */
.news-banners-section {
    margin: 20px 16px;
}

.news-banners-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-banner {
    background: linear-gradient(135deg, #fafbfc, #ffffff);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: default;
    animation: slideIn 0.3s ease;
}

.news-banner:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.news-banner.new-product { border-left: 4px solid var(--green); }
.news-banner.new-product .news-icon { color: var(--green); }
.news-banner.message { border-left: 4px solid #5a9eff; }
.news-banner.message .news-icon { color: #5a9eff; }
.news-banner.product-disabled { border-left: 4px solid #ffaa44; }
.news-banner.product-disabled .news-icon { color: #ffaa44; }

.news-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-title {
    margin-bottom: 8px;
}

.title-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.title-badge.badge-green {
    background: rgba(74, 222, 128, 0.15);
    color: #2e7d32;
}

.title-badge.badge-blue {
    background: rgba(90, 158, 255, 0.15);
    color: #1976d2;
}

.title-badge.badge-orange {
    background: rgba(255, 170, 68, 0.15);
    color: #ed6c02;
}

.news-message-line {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 500;
}

.product-name-badge {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    box-shadow: 0 2px 4px rgba(74, 222, 128, 0.2);
}

.news-announcement {
    font-size: 0.85rem;
    color: var(--text);
    background: #f0f2f5;
    padding: 10px 14px;
    border-radius: 14px;
    margin-top: 8px;
    line-height: 1.5;
    border-left: 3px solid #5a9eff;
}

.news-time {
    font-size: 0.65rem;
    color: #b0b8c5;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-banner.highlight {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border-color: var(--green);
    animation: highlightPulse 0.6s ease;
}

@keyframes highlightPulse {
    0% { background: #ffffff; border-color: var(--border); }
    30% { background: #f0fdf4; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
    100% { background: #f0fdf4; border-color: var(--green); }
}

/* ============ PRODUITS TENDANCES (CARROUSEL) ============ */
.trending-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0 16px;
    scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
    height: 4px;
}

.carousel-track::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 4px;
}

.trending-item {
    flex: 0 0 160px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.trending-item:hover {
    transform: translateY(-4px);
    border-color: var(--green);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.15);
}

.trending-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.trending-item .image-placeholder {
    width: 100%;
    height: 140px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.trending-item .info {
    padding: 10px;
}

.trending-item .name {
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.trending-item .price {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
}

.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }
.carousel-nav:hover { background: var(--green); }

/* ============ MARCHÉS GRILLE ============ */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.market-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.market-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
}

.market-card i {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 8px;
}

.market-card h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-card p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============ PRODUITS TOP (CARROUSEL AUTO) ============ */
.top-products-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.top-products-carousel .carousel-container {
    position: relative;
}

.top-products-carousel .carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.top-products-carousel .carousel-slide {
    flex: 0 0 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    cursor: pointer;
}

.top-products-carousel .carousel-slide img {
    width: 140px;
    height: 140px;
    object-fit: cover;
}

.top-products-carousel .carousel-slide .image-placeholder {
    width: 140px;
    height: 140px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.top-products-carousel .carousel-slide .info {
    flex: 1;
    padding: 16px;
}

.top-products-carousel .carousel-slide .badge {
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.top-products-carousel .carousel-slide h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.top-products-carousel .carousel-slide .price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top-products-carousel .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
}

.top-products-carousel .carousel-control.prev { left: 12px; }
.top-products-carousel .carousel-control.next { right: 12px; }
.top-products-carousel .carousel-control:hover { background: var(--green); }

.top-products-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
}

.top-products-carousel .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.top-products-carousel .carousel-dot.active {
    background: var(--green);
    width: 20px;
    border-radius: 4px;
}

/* ============ PRODUITS INFINIS (défilement vertical) ============ */
.infinite-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.infinite-product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.infinite-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.15);
}

.infinite-product-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.infinite-product-card .image-placeholder {
    width: 100%;
    height: 140px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.infinite-product-card .product-info {
    padding: 10px;
}

.infinite-product-card .product-name {
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.infinite-product-card .product-price {
    font-weight: 700;
    color: var(--green);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============ PRODUITS BOOSTÉS (CARROUSEL) ============ */
.boosted-section {
    margin: 20px 16px;
}

.boosted-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}

.boosted-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.boosted-card {
    flex: 0 0 100%;
    background: linear-gradient(135deg, #ffffff, #fafbfc);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    padding: 20px;
    transition: all 0.3s ease;
}

.boosted-card:hover {
    border-color: var(--green);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.15);
}

.boosted-header {
    background: #fafbfc;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
}

.boosted-photo {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8ecf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.boosted-photo .boosted-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boosted-photo .photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-muted);
}

.boosted-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 0.6rem;
    transition: all 0.2s;
    z-index: 10;
}

.boosted-photo-nav:hover {
    background: var(--green);
    transform: translateY(-50%) scale(1.1);
}

.boosted-photo-nav.prev-photo { left: 4px; }
.boosted-photo-nav.next-photo { right: 4px; }

.boosted-header-info {
    flex: 1;
}

.boosted-header-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.boosted-header-info .market-name {
    font-size: 0.7rem;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
}

.boosted-body {
    background: #f0fdf4;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid var(--green);
}

.boosted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.boosted-promo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
}

.boosted-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.boosted-desc {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.4;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(74, 222, 128, 0.3);
}

.boosted-price {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.boosted-price .new-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green);
}

.boosted-price .old-price {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.boosted-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.boosted-btn:hover {
    background: var(--green-dark);
    transform: translateX(4px);
}

.boosted-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 20;
    transition: all 0.2s;
}

.boosted-nav:hover {
    background: var(--green);
    transform: translateY(-50%) scale(1.05);
}

.boosted-nav.prev { left: 12px; }
.boosted-nav.next { right: 12px; }

/* ============ BANNIÈRES INFINIES ============ */
.infinite-banners-section {
    margin: 32px 16px;
}

.infinite-banners-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-banner {
    background: linear-gradient(135deg, #fafbfc, #ffffff);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 16px;
}

.product-banner:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.12);
}

.banner-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fafbfc;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.banner-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.banner-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.banner-price .old-price {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.banner-btn {
    background: transparent;
    border: 1px solid var(--green);
    border-radius: 40px;
    padding: 8px 20px;
    color: var(--green);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
    font-family: 'DM Sans', sans-serif;
}

.banner-btn:hover {
    background: var(--green);
    color: white;
}

/* ============ BANNIÈRE ENCOURAGEMENT ============ */
.encouragement-banner {
    background: linear-gradient(135deg, var(--bg-light), var(--white));
    border: 1px solid var(--green);
    border-radius: 24px;
    margin: 20px 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.encouragement-icon {
    font-size: 2rem;
    color: var(--green);
    flex-shrink: 0;
}

.encouragement-content {
    flex: 1;
}

.encouragement-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.encouragement-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.encouragement-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.encouragement-btn:hover {
    background: var(--green-dark);
}

/* ============ SECTIONS INFO ============ */
.info-grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 16px;
}

.info-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
}

.info-card:hover {
    border-color: var(--green);
}

.info-icon {
    font-size: 1.8rem;
    color: var(--green);
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============ BADGES PRIX ============ */
.promo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--red);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.3);
    animation: promoPulse 1s ease infinite;
}

@keyframes promoPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.old-price {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 6px;
}

/* ============ SKELETONS ============ */
.skeleton-market-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.skeleton-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: pulse 1.5s infinite;
}

.skeleton-text {
    height: 12px;
    background: var(--bg-light);
    margin: 8px auto;
    border-radius: 6px;
    width: 80%;
    animation: pulse 1.5s infinite;
}

.skeleton-featured {
    height: 160px;
    background: var(--bg-light);
    border-radius: 24px;
    animation: pulse 1.5s infinite;
}

.skeleton-banner {
    background: linear-gradient(135deg, #fafbfc, #ffffff);
    border-radius: 24px;
    height: 90px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a2a3a;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1100;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============ LOADING TRIGGER ============ */
.loading-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 8px;
}

.loading-spinner-small {
    width: 30px;
    height: 30px;
    border: 2px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-trigger p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .info-grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    .market-btn span {
        display: none;
    }
    .market-btn {
        padding: 8px 12px;
    }
    .top-products-carousel .carousel-slide {
        flex-direction: column;
        text-align: center;
    }
    .top-products-carousel .carousel-slide img,
    .top-products-carousel .carousel-slide .image-placeholder {
        width: 100%;
        height: 180px;
    }
    .featured-card {
        flex-direction: column;
        text-align: center;
    }
    .featured-card img,
    .featured-card .image-placeholder {
        width: 100%;
        height: 200px;
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
    .encouragement-banner {
        flex-direction: column;
        text-align: center;
    }
    .infinite-products-grid {
        gap: 10px;
    }
    .infinite-product-card img,
    .infinite-product-card .image-placeholder {
        height: 120px;
    }
}

@media (max-width: 600px) {
    .info-grid-section {
        grid-template-columns: 1fr;
        margin: 24px 12px;
    }
    .header-center {
        font-size: 0.85rem;
    }
    .trending-item {
        flex: 0 0 130px;
    }
    .trending-item img,
    .trending-item .image-placeholder {
        height: 110px;
    }
    .markets-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .infinite-products-grid {
        grid-template-columns: 1fr;
    }
    .product-banner {
        flex-direction: column;
        text-align: center;
    }
    .banner-image {
        width: 100%;
        height: 180px;
        margin: 0 auto;
    }
    .banner-content {
        align-items: center;
    }
    .boosted-header {
        flex-direction: column;
        text-align: center;
    }
    .boosted-photo {
        width: 60px;
        height: 60px;
    }
    .boosted-nav {
        width: 32px;
        height: 32px;
    }
    .promo-badge {
        font-size: 0.55rem;
        padding: 3px 8px;
    }
}