157 lines
2.8 KiB
CSS
157 lines
2.8 KiB
CSS
/* Styles pour la page des catégories */
|
|
|
|
/* Page d'accueil des catégories */
|
|
.categories-showcase {
|
|
margin: 30px 0;
|
|
}
|
|
|
|
.categories-showcase h1 {
|
|
font-size: 2rem;
|
|
margin-bottom: 10px;
|
|
color: #333;
|
|
text-align: center;
|
|
}
|
|
|
|
.section-description {
|
|
text-align: center;
|
|
color: #666;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.categories-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 20px;
|
|
}
|
|
|
|
.category-card-large {
|
|
position: relative;
|
|
height: 200px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.category-card-large:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.category-card-large img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.category-card-large .category-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
padding: 20px;
|
|
}
|
|
|
|
.category-name-large {
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.category-description-short {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Page d'une catégorie spécifique */
|
|
.category-header {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.category-banner {
|
|
height: 250px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
position: relative;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.category-banner .category-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.category-banner h1 {
|
|
color: white;
|
|
font-size: 2.5rem;
|
|
text-align: center;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.category-description {
|
|
text-align: center;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
color: #555;
|
|
font-size: 1.1rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.category-videos {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.no-videos {
|
|
text-align: center;
|
|
padding: 40px 0;
|
|
color: #666;
|
|
}
|
|
|
|
/* Media Queries */
|
|
@media (min-width: 768px) {
|
|
.categories-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (min-width: 992px) {
|
|
.categories-grid {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.categories-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.category-card-large {
|
|
height: 150px;
|
|
}
|
|
|
|
.category-banner {
|
|
height: 180px;
|
|
}
|
|
|
|
.category-banner h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.category-description {
|
|
font-size: 0.95rem;
|
|
}
|
|
} |