﻿

/* Tablettes et petits écrans */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 1.5rem !important;
        min-height: auto !important;
    }
    
    .hero-content {
        padding: 1rem 0.75rem !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-opensource-badges {
        margin: 0.75rem auto 0.5rem !important;
        gap: 0.4rem !important;
    }
    
    .hero-free-for-all {
        margin: 0.75rem auto 1rem !important;
    }
    
    .hero-search {
        margin: 1rem auto !important;
    }
    
    .hero-badge {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.65rem 1.25rem;
        border-radius: 12px;
        font-size: 12px;
        margin-bottom: 1.5rem;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .badge-item {
        gap: 0.3rem;
        white-space: nowrap;
    }
    
    .badge-item i {
        font-size: 14px;
    }
    
    .badge-separator {
        display: none;
    }
    
    .hero-title {
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .search-form {
        padding: 12px;
        gap: 12px;
        border-radius: 20px;
    }
    
    .search-input-group {
        padding: 14px 16px;
        border-radius: 14px;
    }
    
    .btn-search {
        border-radius: 16px;
    }
    
    .stat-item {
        padding: 18px 16px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .hero-live-counter {
        padding: 18px;
        gap: 12px;
        border-radius: 16px;
    }
    
    .live-indicator {
        padding: 8px 18px;
        border-radius: 20px;
    }
    
    .live-text {
        font-size: 11px;
    }
    
    .counter-text {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0 1rem !important;
    }
    
    .hero-content {
        padding: 0.75rem 0.5rem !important;
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.65rem !important;
        letter-spacing: -0.5px;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
        margin-bottom: 0.875rem !important;
        line-height: 1.4 !important;
        padding: 0 0.25rem;
    }
    
    .hero-opensource-badges {
        margin: 0.65rem auto 0.5rem !important;
        gap: 0.35rem !important;
    }
    
    .hero-free-for-all {
        margin: 0.65rem auto 0.875rem !important;
    }
    
    .hero-search {
        margin: 0.875rem auto 1rem !important;
    }
    
    .hero-badge {
        padding: 0.55rem 1rem;
        gap: 0.4rem;
        font-size: 11px;
        margin-bottom: 1.25rem;
        border-radius: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .badge-item {
        gap: 0.25rem;
    }
    
    .badge-item i {
        font-size: 12px;
    }
    
    .search-form {
        padding: 10px;
        gap: 10px;
        border-radius: 18px;
    }
    
    .search-input-group {
        padding: 12px 14px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .btn-search {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 14px;
    }
    
    .hero-stats {
        gap: 10px;
        margin: 20px auto;
        grid-template-columns: 1fr;
        padding: 0 12px;
        max-width: 100%;
    }
    
    .stat-item {
        padding: 12px 14px;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
        border-radius: 11px;
    }
    
    .stat-content {
        text-align: left;
        flex: 1;
    }
    
    .stat-number {
        font-size: 26px;
        line-height: 1;
        margin-bottom: 3px;
    }
    
    .stat-label {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .hero-live-counter {
        padding: 15px 12px;
        gap: 10px;
        border-radius: 14px;
    }
    
    .live-indicator {
        padding: 7px 15px;
    }
    
    .live-text {
        font-size: 10px;
    }
    
    .pulse {
        width: 8px;
        height: 8px;
    }
    
    .counter-text {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Très petits smartphones */
@media (max-width: 360px) {
    .hero-badge {
        padding: 0.5rem 0.875rem;
        font-size: 10px;
        gap: 0.3rem;
        border-radius: 8px;
    }
    
    .badge-item i {
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 24px !important;
    }
    
    .hero-subtitle {
        font-size: 12px !important;
    }
    
    .search-input {
        font-size: 13px;
    }
    
    .btn-search {
        font-size: 14px;
        padding: 12px 18px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .counter-text {
        font-size: 11px;
    }
}

