/* Styles pour la page vidéo */ .video-page { display: grid; grid-template-columns: 1fr 350px; grid-template-rows: auto auto; gap: 30px; margin-top: 20px; } .video-player-container { grid-column: 1 / -1; grid-row: 1; } .video-player { position: relative; padding-bottom: 56.25%; /* Ratio 16:9 */ height: 0; overflow: hidden; margin-bottom: 1.5rem; border-radius: 8px; } .video-player iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; } .video-content { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 20px; } .video-primary-info { border-bottom: 1px solid #ddd; padding-bottom: 15px; margin-bottom: 15px; } .video-title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 1rem; color: #000; } .video-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; } .video-metadata { display: flex; flex-direction: row; align-items: center; gap: 1rem; } .video-views, .video-date { font-size: 0.875rem; color: #666; display: flex; align-items: center; gap: 5px; } .video-views i, .video-date i { font-size: 0.9375rem; color: #555; } .video-actions { display: flex; gap: 1.5rem; } .action-button { display: flex; align-items: center; background: none; border: none; cursor: pointer; gap: 0.5rem; font-size: 0.875rem; padding: 0.5rem; border-radius: 4px; transition: background-color 0.2s; } .action-button:hover { background-color: #f5f5f5; } .action-button i { font-size: 1.25rem; color: #444; } .video-secondary-info { margin-bottom: 30px; } .channel-info { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; } .channel-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; } .channel-name { font-size: 1rem; font-weight: 600; margin: 0; } .subscribe-button { background-color: #0d6efd; color: white; border: none; padding: 8px 15px; border-radius: 4px; font-size: 14px; cursor: pointer; transition: background-color 0.3s; } .subscribe-button:hover { background-color: #0b5ed7; } .video-description { font-size: 0.9375rem; line-height: 1.6; margin-bottom: 1.5rem; color: #333; white-space: pre-line; } .video-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; } .tag { background-color: #f5f5f5; border-radius: 16px; padding: 0.4rem 0.75rem; font-size: 0.8125rem; color: #222; text-decoration: none; transition: background-color 0.2s; } .tag:hover { background-color: #e0e0e0; } /* Commentaires */ .comments-section { grid-column: 1; background-color: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); margin-bottom: 2rem; padding: 1.5rem; } .section-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; color: #000; } .comment-form { display: flex; gap: 1rem; margin-bottom: 2rem; } .comment-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } .comment-input { flex: 1; } .comment-input textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; resize: none; height: 80px; margin-bottom: 0.75rem; font-family: inherit; } .comment-buttons { display: flex; justify-content: flex-end; gap: 0.75rem; } .comment-cancel { padding: 0.5rem 0.75rem; background: none; border: none; cursor: pointer; font-weight: 500; color: #666; } .comment-submit { padding: 0.5rem 1.25rem; background-color: #e62117; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; transition: background-color 0.2s; } .comment-submit:hover { background-color: #cc1e12; } .comments-list { display: flex; flex-direction: column; gap: 1.5rem; } .comment { display: flex; gap: 1rem; } .comment-content { flex: 1; } .comment-author { font-weight: 600; margin-bottom: 0.25rem; } .comment-date { font-size: 0.75rem; color: #666; margin-bottom: 0.5rem; } .comment-text { font-size: 0.9375rem; line-height: 1.5; margin-bottom: 0.75rem; } .comment-actions { display: flex; gap: 1rem; } .comment-actions button { background: none; border: none; cursor: pointer; font-size: 0.875rem; color: #666; padding: 0.25rem 0.5rem; border-radius: 4px; display: flex; align-items: center; gap: 0.375rem; } .comment-actions button:hover { background-color: #f5f5f5; } /* Vidéos suggérées */ .video-suggestions { grid-column: 2; grid-row: 2; align-self: start; } .suggestion-list { display: flex; flex-direction: column; gap: 15px; } .suggested-video { display: flex; flex-direction: column; text-decoration: none; color: inherit; background-color: #f9f9f9; border-radius: 8px; overflow: hidden; transition: transform 0.2s; } .suggested-video:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .suggested-video-thumbnail { position: relative; width: 100%; padding-top: 56.25%; /* Ratio 16:9 */ } .suggested-video-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } .suggested-video-duration { background-color: rgba(0, 0, 0, 0.7); color: white; font-size: 12px; padding: 2px 4px; border-radius: 3px; display: inline-block; margin-top: 5px; } .suggested-video-info { padding: 10px; } .suggested-video-title { font-size: 14px; font-weight: 600; margin: 0 0 5px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .suggested-video-channel { font-size: 12px; color: #666; margin-bottom: 5px; } .suggested-video-metadata { display: flex; font-size: 12px; color: #777; gap: 10px; } .suggested-video-views, .suggested-video-date { font-size: 11px; } /* Vidéos associées */ .related-videos { grid-column: 2; } .related-videos h2 { font-size: 18px; margin-bottom: 15px; } .related-video-card { display: flex; margin-bottom: 15px; cursor: pointer; } .related-video-thumbnail { width: 120px; height: 68px; margin-right: 10px; position: relative; } .related-video-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; } .related-video-info { flex: 1; } .related-video-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .related-video-channel { font-size: 12px; color: #666; margin-bottom: 2px; } .related-video-metadata { font-size: 12px; color: #888; } /* Media Queries */ @media (max-width: 992px) { .video-page { grid-template-columns: 1fr; } .video-content { grid-column: 1; } .video-suggestions { grid-column: 1; margin-top: 20px; } .suggestion-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; } } @media (max-width: 768px) { .video-player-container { margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); } .video-player { border-radius: 0; } .video-player iframe { border-radius: 0; } .video-info { flex-direction: column; gap: 1rem; align-items: flex-start; } .video-actions { width: 100%; justify-content: space-between; } .suggestion-list { grid-template-columns: 1fr; } } @media (max-width: 576px) { .video-page { display: flex; flex-direction: column; gap: 20px; } .video-player-container { width: 100vw; margin-left: -20px; margin-right: -20px; } .video-content, .video-suggestions { width: 100%; } .video-title { font-size: 1.2rem; } .video-actions { flex-wrap: wrap; gap: 0.5rem; } .action-button { padding: 0.3rem; } .comment { flex-direction: column; } .comment-avatar { display: none; } .suggested-video { display: flex; flex-direction: row; } .suggested-video-thumbnail { width: 120px; min-width: 120px; height: 68px; padding-top: 0; margin-right: 10px; } .suggested-video-info { padding: 5px; width: calc(100% - 120px); } .suggested-video-title { -webkit-line-clamp: 2; } } /* Message d'erreur */ .error-message { text-align: center; padding: 50px 20px; max-width: 500px; margin: 0 auto; }