/* Styles pour la page de recherche */ .search-page { margin: 30px 0; } .search-header { margin-bottom: 30px; } .search-header h1 { font-size: 1.8rem; margin-bottom: 15px; color: #333; } .search-container { max-width: 600px; margin-bottom: 20px; } .search-container form { display: flex; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; } .search-container input { flex: 1; padding: 12px 15px; border: none; font-size: 16px; } .search-container button { background-color: #0d6efd; color: white; border: none; padding: 0 20px; cursor: pointer; font-size: 18px; } .search-results-count { margin-bottom: 20px; color: #666; font-size: 14px; } .search-results { display: flex; flex-direction: column; gap: 20px; } .search-result-item { display: flex; background-color: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); cursor: pointer; transition: transform 0.2s; } .search-result-item:hover { transform: translateY(-3px); } .search-result-thumbnail { width: 246px; height: 138px; position: relative; flex-shrink: 0; } .search-result-thumbnail img { width: 100%; height: 100%; object-fit: cover; } .video-duration { position: absolute; bottom: 8px; right: 8px; background-color: rgba(0, 0, 0, 0.7); color: white; padding: 2px 6px; border-radius: 4px; font-size: 12px; } .search-result-info { padding: 15px; flex: 1; } .search-result-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #333; } .search-result-metadata { display: flex; font-size: 13px; color: #666; margin-bottom: 8px; } .search-result-views { margin-right: 15px; } .search-result-channel { font-size: 14px; color: #0d6efd; margin-bottom: 8px; } .search-result-description { font-size: 14px; color: #555; margin-bottom: 10px; line-height: 1.4; } .search-result-tags { display: flex; flex-wrap: wrap; gap: 8px; } .tag { font-size: 12px; color: #0d6efd; } .no-results, .search-instructions { text-align: center; padding: 60px 0; color: #666; } .no-results i, .search-instructions i { color: #ccc; margin-bottom: 20px; } .no-results h2, .search-instructions h2 { font-size: 20px; margin-bottom: 10px; color: #333; } .no-results p, .search-instructions p { font-size: 16px; max-width: 500px; margin: 0 auto; } /* Media Queries */ @media (max-width: 768px) { .search-result-item { flex-direction: column; } .search-result-thumbnail { width: 100%; height: 0; padding-top: 56.25%; /* 16:9 aspect ratio */ } .search-result-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .search-header h1 { font-size: 1.5rem; } } @media (max-width: 576px) { .search-container input { padding: 10px; } .search-container button { padding: 0 15px; } .search-result-title { font-size: 16px; } .search-result-description { font-size: 13px; } }