kuro223's picture
jki
46e055c
raw
history blame
9.77 kB
/* Style pour la page des matières */
.page-title {
text-align: center;
margin: 2rem 0 3rem;
font-size: 2.5rem;
color: #2c3e50;
position: relative;
}
.page-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background: #3498db;
border-radius: 2px;
}
.subjects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
padding: 1rem;
}
.subject-card {
background: white;
border-radius: 12px;
overflow: hidden;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
position: relative;
}
.subject-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px rgba(52, 152, 219, 0.2);
}
.subject-link {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
text-decoration: none;
color: inherit;
position: relative;
z-index: 1;
}
.subject-link::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #46a1dd 0%, #2980b9 100%);
opacity: 0;
transition: opacity 0.3s ease;
z-index: -1;
}
.subject-link:hover {
color: white;
}
.subject-link:hover::after {
opacity: 1;
}
.subject-name {
font-size: 1.2rem;
font-weight: 600;
transition: color 0.3s ease;
}
.subject-arrow {
font-size: 1.5rem;
opacity: 0;
transform: translateX(-10px);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.subject-link:hover .subject-arrow {
opacity: 1;
transform: translateX(0);
}
.no-subjects {
text-align: center;
color: #95a5a6;
font-size: 1.2rem;
padding: 2rem;
grid-column: 1 / -1;
}
/* Animation d'apparition */
@keyframes cardEntrance {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.subject-card {
animation: cardEntrance 0.6s ease forwards;
animation-delay: calc(var(--index) * 0.1s);
}
@media (max-width: 768px) {
.subjects-grid {
grid-template-columns: 1fr;
}
.subject-link {
padding: 1rem;
}
}
/* Page matière */
.subject-container {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
}
.subject-header {
text-align: center;
margin-bottom: 3rem;
position: relative;
}
.subject-title {
font-size: 2.5rem;
color: #2c3e50;
margin-bottom: 1rem;
position: relative;
display: inline-block;
}
.subject-header-decoration {
height: 4px;
width: 80px;
background: #3498db;
margin: 0 auto;
border-radius: 2px;
position: relative;
animation: headerLine 1s ease-out;
}
.subcategories-section {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.section-title {
color: #4a5568;
font-size: 1.5rem;
margin-bottom: 2rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid #e2e8f0;
}
.subcategories-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
}
.subcategory-card {
background: white;
border-radius: 8px;
padding: 1.5rem;
text-decoration: none;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid #e2e8f0;
position: relative;
overflow: hidden;
}
.subcategory-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 15px rgba(52, 152, 219, 0.15);
border-color: #3498db;
}
.subcategory-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.subcategory-name {
color: #2c3e50;
font-weight: 500;
font-size: 1.1rem;
transition: color 0.3s ease;
}
.arrow-icon {
width: 24px;
height: 24px;
opacity: 0;
transform: translateX(-10px);
transition: all 0.3s ease;
color: #3498db;
}
.subcategory-card:hover .arrow-icon {
opacity: 1;
transform: translateX(0);
}
.no-subcategories {
text-align: center;
padding: 3rem;
grid-column: 1 / -1;
}
.empty-icon {
width: 60px;
height: 60px;
margin-bottom: 1rem;
color: #cbd5e0;
}
.no-subcategories p {
color: #a0aec0;
font-size: 1.1rem;
}
/* Animations */
@keyframes headerLine {
from { width: 0; opacity: 0; }
to { width: 80px; opacity: 1; }
}
@media (max-width: 768px) {
.subject-container {
padding: 0;
}
.subcategories-section {
padding: 1.5rem;
}
.subject-title {
font-size: 2rem;
}
}
/*sous catégorie*/
/* Page textes */
.content-container {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1.5rem;
}
.header-section {
text-align: center;
margin-bottom: 3rem;
}
.main-title {
font-size: 2.3rem;
color: #2c3e50;
margin-bottom: 0.5rem;
}
.title-underline {
width: 60px;
height: 3px;
background: linear-gradient(135deg, #46a1dd 0%, #2980b9 100%);
margin: 0 auto;
border-radius: 2px;
}
.texts-section {
background: #fff;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.section-subtitle {
color: #4a5568;
font-size: 1.4rem;
margin-bottom: 2rem;
padding-bottom: 0.75rem;
border-bottom: 2px solid #edf2f7;
}
.texts-grid {
display: grid;
gap: 1.2rem;
}
.text-card {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
background: #fff;
border-radius: 8px;
border: 1px solid #e2e8f0;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
text-decoration: none;
position: relative;
}
.text-card:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
border-color: #3498db;
}
.text-title {
color: #2c3e50;
font-size: 1.1rem;
margin-bottom: 0.5rem;
}
.text-meta {
display: flex;
gap: 1rem;
font-size: 0.9rem;
color: #718096;
}
.meta-item i {
margin-right: 0.4rem;
color: #3498db;
}
.card-arrow {
color: #3498db;
opacity: 0;
}
/* le texte, cours*/
/* Page texte */
.text-container {
max-width: 800px;
margin: 2rem auto;
padding: 0 1.5rem;
}
.text-header {
text-align: center;
margin-bottom: 3rem;
}
.text-title {
font-size: 2.4rem;
color: #2c3e50;
margin-bottom: 1rem;
line-height: 1.3;
background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;
}
.text-meta {
display: flex;
gap: 1.5rem;
justify-content: center;
color: #718096;
font-size: 0.95rem;
}
.meta-item i {
margin-right: 0.5rem;
color: #3498db;
}
.texte-contenu {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #46a1dd 0%, #2980b9 100%);
opacity: 0;
transition: opacity 0.3s ease;
z-index: -1;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
animation: fadeIn 0.6s ease-out;
}
/* Styles de contenu riche */
.texte-contenu h2,
.texte-contenu h3 {
color: #2c3e50;
margin: 2rem 0 1rem;
}
.texte-contenu h2 {
font-size: 1.6rem;
border-bottom: 2px solid #e2e8f0;
padding-bottom: 0.5rem;
}
.texte-contenu h3 {
font-size: 1.4rem;
}
.texte-contenu p {
margin-bottom: 1.5rem;
}
.texte-contenu img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin: 1.5rem 0;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.texte-contenu ul,
.texte-contenu ol {
margin: 1.5rem 0;
padding-left: 2rem;
}
.texte-contenu li {
margin-bottom: 0.8rem;
}
.texte-contenu blockquote {
border-left: 4px solid #3498db;
margin: 1.5rem 0;
padding: 1rem 1.5rem;
background: #f8f9fa;
border-radius: 0 6px 6px 0;
}
/* additif */
/* Header */
.main-navbar {
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
padding: 0.8rem 1rem;
position: relative;
z-index: 1000;
}
.navbar-brand {
font-weight: 700;
color: #2c3e50 !important;
font-size: 1.4rem;
display: flex;
align-items: center;
transition: transform 0.3s ease;
}
.navbar-brand:hover {
transform: translateX(5px);
}
.navbar-brand::after {
content: "";
display: inline-block;
width: 2px;
height: 24px;
background: #3498db;
margin-left: 1rem;
transform: skew(-15deg);
}
.nav-link {
color: #4a5568 !important;
font-weight: 500;
padding: 0.5rem 1.2rem !important;
border-radius: 8px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.nav-link:hover {
color: #3498db !important;
background: rgba(52, 152, 219, 0.08);
}
.nav-link.admin-link {
background: rgba(52, 152, 219, 0.1);
margin-left: 1rem;
}
.nav-link.admin-link:hover {
background: rgba(52, 152, 219, 0.2);
}
.nav-link.admin-link::before {
content: "\f023";
font-family: "Font Awesome 5 Free";
font-weight: 900;
margin-right: 0.5rem;
}
/* Footer */
.main-footer {
background: #2c3e50;
color: #ecf0f1;
padding: 2rem 0;
margin-top: auto;
border-top: 3px solid #3498db;
}
.main-footer .social-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin: 1.5rem 0;
}
.main-footer .social-links a {
color: #bdc3c7;
font-size: 1.4rem;
transition: all 0.3s ease;
}
.main-footer .social-links a:hover {
color: #3498db;
transform: translateY(-3px);
}
.main-footer .copyright {
font-size: 0.9rem;
opacity: 0.8;
margin-top: 1rem;
}
/* Responsive */
@media (max-width: 768px) {
.navbar-brand {
font-size: 1.2rem;
}
.nav-link {
padding: 0.5rem !important;
}
.main-footer {
padding: 1.5rem 0;
}
}
.copyright {
font-size: 0.9rem;
opacity: 0.8;
margin-top: 1rem;
text-align: center;
}
.text-meta {
display: flex;
gap: 1.5rem;
margin-top: 0.8rem;
}
.meta-item {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: #6c757d;
}