/* ========================================
   RELATED SEARCHES SECTION - STYLES AVANCES
   AVEC SUPPORT IMAGES
   ======================================== */

.related-searches-section {
    padding: 60px 20px;
    margin: 40px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.related-searches-section h2 {
    color: #252122;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.search-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

/* ========================================
   STYLE DU TAG/LIEN
   ======================================== */

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #f0f0f0;
    color: #252122;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

/* Image dans le tag */
.search-tag-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.search-tag-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   EFFECTS DE HOVER
   ======================================== */

.search-tag:hover {
    background-color: #78B670;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(120, 182, 112, 0.2);
    border-color: #78B670;
}

.search-tag:hover .search-tag-image {
    transform: scale(1.15) rotate(5deg);
}

/* ========================================
   STATES
   ======================================== */

.search-tag:focus {
    outline: 2px solid #78B670;
    outline-offset: 2px;
}

.search-tag:active {
    transform: translateY(-1px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .related-searches-section {
        padding: 50px 20px;
    }

    .related-searches-section h2 {
        font-size: 24px;
    }

    .search-tags-container {
        gap: 10px;
    }

    .search-tag {
        padding: 9px 16px;
        font-size: 13px;
    }

    .search-tag-image {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .related-searches-section {
        padding: 40px 15px;
    }

    .related-searches-section h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .search-tags-container {
        gap: 8px;
    }

    .search-tag {
        padding: 8px 14px;
        font-size: 12px;
        gap: 6px;
    }

    .search-tag-image {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .related-searches-section {
        padding: 30px 12px;
    }

    .related-searches-section h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .search-tags-container {
        gap: 6px;
    }

    .search-tag {
        padding: 7px 12px;
        font-size: 11px;
        gap: 5px;
    }

    .search-tag-image {
        width: 18px;
        height: 18px;
        display: none; /* Masquer les images sur mobile */
    }
}

/* ========================================
   MODE SOMBRE (OPTIONNEL)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .related-searches-section {
        background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
        border-color: #444;
    }

    .related-searches-section h2 {
        color: #ffffff;
    }

    .search-tag {
        background-color: #3a3a3a;
        color: #e0e0e0;
    }

    .search-tag:hover {
        background-color: #78B670;
        color: #ffffff;
    }
}