/* Styles généraux */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background-color: #f8f9fa; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; } a { text-decoration: none; color: #0d6efd; } img { max-width: 100%; height: auto; } /* Header */ header { background-color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 100; } .header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; } .logo img { height: 40px; } .desktop-nav ul { display: flex; list-style: none; } .desktop-nav ul li { margin-left: 20px; } .desktop-nav ul li a { color: #333; font-weight: 500; transition: color 0.3s; } .desktop-nav ul li a:hover { color: #0d6efd; } .mobile-menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: #333; } /* Hero Section */ .hero { background-color: #0d6efd; color: white; padding: 60px 0; text-align: center; margin-bottom: 40px; } .hero-content h1 { font-size: 2.5rem; margin-bottom: 10px; } .hero-content p { font-size: 1.2rem; margin-bottom: 30px; } .search-container { max-width: 600px; margin: 0 auto; } .search-container form { display: flex; } .search-container input { flex: 1; padding: 12px 15px; border: none; border-radius: 4px 0 0 4px; font-size: 16px; } .search-container button { background-color: #fff; color: #0d6efd; border: none; border-radius: 0 4px 4px 0; padding: 0 20px; cursor: pointer; font-size: 18px; } /* Video Sections */ section { margin-bottom: 40px; } section h2 { font-size: 1.8rem; margin-bottom: 20px; color: #333; } .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } .video-card { background-color: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: transform 0.3s; } .video-card:hover { transform: translateY(-5px); } .video-thumbnail { position: relative; padding-top: 56.25%; /* 16:9 aspect ratio */ } .video-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } .video-duration { position: absolute; bottom: 10px; right: 10px; background-color: rgba(0, 0, 0, 0.7); color: white; padding: 2px 6px; border-radius: 4px; font-size: 12px; } .video-info { padding: 15px; } .video-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; } .video-channel { font-size: 14px; color: #666; margin-bottom: 5px; } .video-metadata { display: flex; font-size: 12px; color: #888; } .video-views { margin-right: 10px; } /* Categories Section */ .category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; } .category-card { position: relative; height: 120px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .category-card img { width: 100%; height: 100%; object-fit: cover; } .category-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); display: flex; align-items: flex-end; padding: 15px; } .category-name { color: white; font-weight: 600; } /* Footer */ footer { background-color: #333; color: #fff; padding: 40px 0; } .footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; } .footer-column { flex: 1; min-width: 200px; margin-bottom: 20px; } .footer-column h3 { margin-bottom: 15px; font-size: 18px; } .footer-column ul { list-style: none; } .footer-column ul li { margin-bottom: 8px; } .footer-column ul li a { color: #ccc; transition: color 0.3s; } .footer-column ul li a:hover { color: #fff; } .footer-bottom { text-align: center; padding-top: 20px; margin-top: 20px; border-top: 1px solid #444; } /* Mobile Menu */ .mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 200; display: none; } .mobile-menu { position: fixed; top: 0; left: 0; width: 250px; height: 100%; background-color: white; padding: 20px; overflow-y: auto; } .mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; } .mobile-menu-close { background: none; border: none; font-size: 24px; cursor: pointer; } .mobile-menu-nav ul { list-style: none; } .mobile-menu-nav ul li { margin-bottom: 15px; } .mobile-menu-nav ul li a { color: #333; font-size: 18px; font-weight: 500; } /* Media Queries */ @media (max-width: 992px) { .video-grid { grid-template-columns: repeat(2, 1fr); } .category-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 768px) { .desktop-nav { display: none; } .mobile-menu-toggle { display: block; } .hero { padding: 40px 0; } .hero-content h1 { font-size: 2rem; } .footer-container { flex-direction: column; } .footer-column { margin-bottom: 30px; } } @media (max-width: 576px) { .video-grid { grid-template-columns: 1fr; } .category-grid { grid-template-columns: repeat(2, 1fr); } .hero-content h1 { font-size: 1.8rem; } .search-container input, .search-container button { padding: 10px; } }