Files
CMS-Simplifie/assets/style.css
2025-11-02 18:08:53 +01:00

137 lines
2.7 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* --- Style global --- */
body {
font-family: 'Segoe UI', Roboto, Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f3f0f9;
color: #333;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* --- En-tête --- */
header {
background: linear-gradient(135deg, #6a11cb, #8e2de2); /* Dégradé violet */
color: #fff;
padding: 15px 30px;
display: flex;
justify-content: space-between; /* Accueil à gauche, Admin à droite */
align-items: center;
position: fixed; /* Fixé en haut */
top: 0;
left: 0;
width: 100%;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* --- Liens dans le header --- */
header a {
color: #fff;
text-decoration: none;
font-weight: 600;
font-size: 1.1rem;
transition: opacity 0.2s ease;
}
header a:hover {
opacity: 0.8;
}
/* --- Espace pour éviter que le contenu passe sous le header --- */
main {
flex: 1;
margin-top: 80px; /* Hauteur du header */
padding: 20px;
}
/* --- Titres --- */
h1, h2, h3 {
color: #5b1dbb;
}
/* --- Articles --- */
article {
background: #fff;
padding: 20px;
margin: 15px auto;
width: 90%;
max-width: 800px;
border-radius: 10px;
border: 1px solid #e0d4f7;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
article:hover {
transform: translateY(-3px);
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
/* --- Liens darticles --- */
article h2 a {
color: #8e2de2;
text-decoration: none;
transition: color 0.2s ease;
}
article h2 a:hover {
color: #5b1dbb;
text-decoration: underline;
}
/* --- Tableaux --- */
table {
width: 90%;
margin: 25px auto;
border-collapse: collapse;
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
table th, table td {
padding: 12px 15px;
border-bottom: 1px solid #ddd;
}
table th {
background-color: #8e2de2;
color: #fff;
text-align: left;
}
table tr:hover {
background-color: #f5e9ff;
}
/* --- Messages derreur --- */
.error {
color: #721c24;
font-weight: 600;
border: 1px solid #f5c6cb;
background: #f8d7da;
padding: 12px;
border-radius: 6px;
width: 90%;
max-width: 800px;
margin: 10px auto;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
/* --- Pied de page --- */
footer {
background: #6a11cb;
color: #fff;
text-align: center;
padding: 15px 0;
position: fixed; /* Collé en bas */
bottom: 0;
left: 0;
width: 100%;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
font-size: 0.95rem;
}