162 lines
3.0 KiB
CSS
162 lines
3.0 KiB
CSS
/* 🎨 — Thème global rose/orangé élégant */
|
||
body {
|
||
font-family: "Poppins", sans-serif;
|
||
background: #fffafc;
|
||
color: #333;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
/* 🌟 — En-tête du site */
|
||
header {
|
||
background: linear-gradient(90deg, #ffa45b, #ff6fa7);
|
||
color: white;
|
||
padding: 15px 30px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
header a {
|
||
color: white;
|
||
text-decoration: none;
|
||
margin-left: 15px;
|
||
font-weight: 600;
|
||
}
|
||
header a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
/* 👤 — Auteur dans la liste d’articles */
|
||
.article-meta {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
color: #666;
|
||
font-size: 14px;
|
||
margin-top: 10px;
|
||
}
|
||
.mini-profile {
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 50%;
|
||
object-fit: cover;
|
||
border: 2px solid #ff6fa7;
|
||
}
|
||
.author-link {
|
||
color: #ff6fa7;
|
||
text-decoration: none;
|
||
font-weight: 600;
|
||
}
|
||
.author-link:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
/* 🧍♀️ — Page de profil publique (profile_view.php) */
|
||
.profile-view {
|
||
max-width: 900px;
|
||
margin: 60px auto;
|
||
padding: 40px;
|
||
background: #fff;
|
||
border-radius: 16px;
|
||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
|
||
}
|
||
.profile-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 25px;
|
||
border-bottom: 2px solid #ffe3ec;
|
||
padding-bottom: 20px;
|
||
margin-bottom: 20px;
|
||
}
|
||
.profile-pic,
|
||
.article-author-pic,
|
||
.profile-preview {
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
object-fit: cover;
|
||
border: 2px solid #ff91a4;
|
||
vertical-align: middle;
|
||
background: #fff;
|
||
}
|
||
|
||
.profile-info h2 {
|
||
font-size: 28px;
|
||
color: #ff6fa7;
|
||
margin: 0;
|
||
}
|
||
.bio {
|
||
color: #666;
|
||
font-style: italic;
|
||
margin-top: 5px;
|
||
}
|
||
|
||
/* 📰 — Articles de l’auteur */
|
||
.user-articles h3 {
|
||
color: #ff6fa7;
|
||
margin-bottom: 15px;
|
||
}
|
||
.articles-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 15px;
|
||
}
|
||
.article-card {
|
||
display: flex;
|
||
background: #faf6f7;
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
|
||
transition: 0.2s ease-in-out;
|
||
}
|
||
.article-card:hover {
|
||
transform: translateY(-3px);
|
||
}
|
||
.article-thumb {
|
||
width: 160px;
|
||
height: 110px;
|
||
object-fit: cover;
|
||
}
|
||
.article-details {
|
||
padding: 15px;
|
||
flex: 1;
|
||
}
|
||
.article-details h4 {
|
||
margin: 0 0 5px;
|
||
color: #333;
|
||
}
|
||
.btn-read {
|
||
display: inline-block;
|
||
margin-top: 8px;
|
||
background: linear-gradient(90deg, #ffa45b, #ff6fa7);
|
||
color: white;
|
||
padding: 7px 12px;
|
||
border-radius: 8px;
|
||
text-decoration: none;
|
||
font-size: 14px;
|
||
transition: 0.2s;
|
||
}
|
||
.btn-read:hover {
|
||
opacity: 0.9;
|
||
}
|
||
|
||
/* 📱 — Responsive */
|
||
@media (max-width: 768px) {
|
||
header {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
}
|
||
.profile-header {
|
||
flex-direction: column;
|
||
text-align: center;
|
||
}
|
||
.article-card {
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
.article-thumb {
|
||
width: 100%;
|
||
height: 180px;
|
||
}
|
||
}
|