
/* ===== DESIGN MOBILE-FIRST POUR EXPLORECATEGORY ===== */

.ExploreCategory {
    display: flex;
    padding: 20px; 
    flex-direction: column;
    text-align: center; 
    background: #f8fafc;
    min-height: 100vh;
}

.ExploreCategory_text {
    white-space: nowrap;
    overflow: hidden; 
    width: 0; 
    animation: typing 6s steps(40, end) infinite; 
    text-align: left; 
    direction: ltr;
    border-right: none; 
    text-align: start;
    margin-left: 150px;
    font-size: 24px; 
    font-weight: bold; 
    color: #333333;
    margin-bottom: 20px;
}

.ExploreCategory_list {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px;
    overflow-y: hidden;   
}

.ExploreCategory_list_item a{
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

@keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
}

.ExploreCategory_list_item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px; 
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08); 
    padding: 20px; 
    width: 150px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ExploreCategory_list_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.ExploreCategory_list_item:hover::before {
    left: 100%;
}

/* Image de la catégorie */
.ExploreCategory_list_item img {
    width: 100%; 
    height: 80px;
    object-fit: contain;
    border-radius: 8px; 
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

/* Nom de la catégorie */
.ExploreCategory_list_item p {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748; 
    margin: 0;
    line-height: 1.4;
}

.ExploreCategory_list_item:hover {
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.ExploreCategory_list_item:hover img {
    transform: scale(1.1);
}

/* ===== MEDIA QUERIES MOBILE ===== */

/* Tablettes (768px et moins) */
@media screen and (max-width: 768px) {
    .ExploreCategory {
        padding: 15px;
    }
    
    .ExploreCategory_text {
        margin-left: 20px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .ExploreCategory_list {
        gap: 15px;
    }
    
    .ExploreCategory_list_item {
        width: 120px;
        padding: 15px;
    }
    
    .ExploreCategory_list_item img {
        height: 60px;
    }
    
    .ExploreCategory_list_item p {
        font-size: 12px;
    }
}

/* Téléphones portables (480px et moins) */
@media screen and (max-width: 480px) {
    .ExploreCategory {
        padding: 10px;
    }
    
    .ExploreCategory_text {
        margin-left: 15px;
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .ExploreCategory_list {
        gap: 12px;
    }
    
    .ExploreCategory_list_item {
        width: 100px;
        padding: 12px;
    }
    
    .ExploreCategory_list_item img {
        height: 50px;
    }
    
    .ExploreCategory_list_item p {
        font-size: 11px;
    }
}

/* Très petits écrans (320px et moins) */
@media screen and (max-width: 320px) {
    .ExploreCategory_text {
        margin-left: 10px;
        font-size: 16px;
    }
    
    .ExploreCategory_list {
        gap: 8px;
    }
    
    .ExploreCategory_list_item {
        width: 85px;
        padding: 10px;
    }
    
    .ExploreCategory_list_item img {
        height: 40px;
    }
    
    .ExploreCategory_list_item p {
        font-size: 10px;
    }
}

/* ===== ANIMATIONS MOBILE ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ExploreCategory_list_item {
    animation: fadeInUp 0.3s ease-out;
}

.ExploreCategory_list_item:nth-child(1) { animation-delay: 0.1s; }
.ExploreCategory_list_item:nth-child(2) { animation-delay: 0.2s; }
.ExploreCategory_list_item:nth-child(3) { animation-delay: 0.3s; }
.ExploreCategory_list_item:nth-child(4) { animation-delay: 0.4s; }
.ExploreCategory_list_item:nth-child(5) { animation-delay: 0.5s; }
.ExploreCategory_list_item:nth-child(6) { animation-delay: 0.6s; }

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .ExploreCategory_list_item:hover {
        transform: none;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .ExploreCategory_list_item:active {
        transform: scale(0.95);
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .ExploreCategory {
        background: #1a1a1a;
    }
    
    .ExploreCategory_text {
        color: white;
    }
    
    .ExploreCategory_list_item {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .ExploreCategory_list_item p {
        color: white;
    }
}