Files
CMS-simplifi-/assets/stylecms.css
2025-11-02 23:27:55 +01:00

202 lines
3.3 KiB
CSS

/* Styles globaux */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
margin: 0;
padding: 20px;
background: linear-gradient(to right, #f0f2f5, #e2e8f0);
color: #333;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
/* Header */
header {
background-color: #2d3748; /* gris foncé doux */
color: #fff;
padding: 20px;
border-radius: 10px;
text-align: center;
margin-bottom: 25px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
header h1 {
margin: 0;
font-size: 2rem;
font-weight: 600;
}
header p {
margin: 8px 0 0 0;
}
header a {
color: #a0aec0;
text-decoration: none;
font-weight: 500;
}
header a:hover {
color: #fff;
text-decoration: underline;
}
/* Titres */
h1, h2, h3 {
color: #1a202c;
margin-top: 25px;
font-weight: 600;
text-align: center;
}
/* Articles */
article {
background: #fff;
padding: 20px;
margin-bottom: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
width: 100%;
max-width: 700px;
box-sizing: border-box;
}
article h2 a {
color: #2d3748;
text-decoration: none;
font-size: 1.2rem;
}
article h2 a:hover {
color: #1a202c;
text-decoration: underline;
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
background-color: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
table th, table td {
padding: 12px 15px;
border: 1px solid #e2e8f0;
text-align: left;
}
table th {
background-color: #4a5568; /* gris moyen foncé */
color: #fff;
}
table tr:nth-child(even) {
background-color: #edf2f7;
}
table a {
color: #3182ce;
text-decoration: none;
}
table a:hover {
color: #2c5282;
text-decoration: underline;
}
/* Formulaires */
form {
background-color: #fff;
padding: 25px 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
max-width: 600px;
width: 100%;
margin-top: 20px;
}
label {
display: block;
margin-bottom: 15px;
font-weight: 600;
}
input[type="text"],
textarea {
width: 100%;
padding: 10px;
border: 1px solid #cbd5e0;
border-radius: 6px;
box-sizing: border-box;
}
/* Boutons */
button {
background-color: #2b6cb0; /* bleu uniforme */
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
margin-top: 10px;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #2c5282;
}
/* Liens */
a {
color: #3182ce;
text-decoration: none;
margin-left: 10px;
}
a:hover {
text-decoration: underline;
}
/* Messages d'erreur */
.error {
color: #c53030;
background-color: #fed7d7;
border: 1px solid #f56565;
padding: 12px;
border-radius: 6px;
margin-bottom: 15px;
text-align: center;
}
/* Séparateurs */
hr {
border: 0;
border-top: 1px solid #cbd5e0;
margin: 25px 0;
}
/* Responsive */
@media (max-width: 480px) {
body {
padding: 10px;
}
form, article, table {
width: 100%;
padding: 15px;
}
button {
width: 100%;
margin: 10px 0;
}
}