Thème Maevis pour Bear

Thème Maevis 1.0

Version initiale du thème Maevis pour la plateforme Bear.

/*
* Maevis — Un thème élégant et minimaliste pour Bear
* Version 1.0.0 | 13/04/2026
* Ludovic Namurois aka Falko | palimpseste.blog
*/

:root {
--bg-color: #ffffff;
--text-color: #1a1a1a;
--accent-color: #3b82f6;
--border-color: #e5e7eb;
--secondary-text: #6b7280;
--font-serif: "Charter", "Bitstream Charter", "Sitka Text", "Cambria", serif;
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--max-width: 720px;
}

@media (prefers-color-scheme: dark) {
:root {
--bg-color: #111827;
--text-color: #f3f4f6;
--accent-color: #60a5fa;
--border-color: #374151;
--secondary-text: #9ca3af;
}
}

/* --- Mise en page globale --- */
body {
font-family: var(--font-serif);
line-height: 1.75;
color: var(--text-color);
background-color: var(--bg-color);
margin: 0 auto;
padding: 2rem 1.5rem;
max-width: var(--max-width);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}

/* --- Typographie --- */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-sans);
font-weight: 700;
line-height: 1.3;
margin-top: 2.5rem;
margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p { margin-bottom: 1.5rem; }

a {
color: var(--accent-color);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: border-color 0.2s;
}

a:hover {
border-bottom-color: var(--accent-color);
}

i {
margin-right: 1.1rem; /* Ajustez la valeur selon vos besoins */
}

/* --- Listes --- */
ul, ol {
margin-bottom: 1.5rem;
padding-left: 1.5rem;
}

li { margin-bottom: 0.5rem; }

/* --- Bloc de citation --- */
blockquote {
margin: 2rem 0;
padding: 1rem 1.5rem;
border-left: 4px solid var(--accent-color);
background-color: rgba(59, 130, 246, 0.05);
font-style: italic;
color: var(--secondary-text);
}

/* --- Code et Prévisualisation --- */
code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.9em;
background-color: rgba(0, 0, 0, 0.05);
padding: 0.2rem 0.4rem;
border-radius: 4px;
}

pre {
background-color: #f9fafb;
padding: 1rem;
border-radius: 8px;
overflow-x: auto;
border: 1px solid var(--border-color);
margin: 1.5rem 0;
}

pre code {
background-color: transparent;
padding: 0;
}

@media (prefers-color-scheme: dark) {
pre { background-color: #1f2937; }
code { background-color: rgba(255, 255, 255, 0.1); }
}

/* --- Éléments Médias --- */
img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin: 2rem 0;
}

figure { margin: 2rem 0; }
figcaption {
text-align: center;
font-size: 0.9rem;
color: var(--secondary-text);
margin-top: 0.5rem;
}

/* --- Tableaux --- */
table {
width: 100%;
border-collapse: collapse;
margin: 2rem 0;
}

th, td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
}

th { font-family: var(--font-sans); font-weight: 600; }

/* --- Séparateur --- */
hr {
border: 0;
border-top: 1px solid var(--border-color);
margin: 3rem 0;
}

/* --- Boutons (si utilisés) --- */
button {
font-family: var(--font-sans);
background-color: var(--accent-color);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}

button:hover {
background-color: #2563eb; /* Un bleu légèrement plus foncé au survol */
}

/* Correction pour les liens à l'intérieur des boutons */
button a {
  color: white !important;
  border-bottom: none;
  text-decoration: none;
}

button a:hover {
  border-bottom: none;
}

/* --- Accordéons (Details & Summary) --- */
details {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

summary {
  padding: 0.8rem 1.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.02);
  list-style: none; /* Cache la flèche par défaut dans certains navigateurs */
  display: flex;
  align-items: center;
}

/* Ajout d'une flèche personnalisée */
summary::before {
  content: '→';
  margin-right: 0.8rem;
  transition: transform 0.2s;
  color: var(--accent-color);
}

details[open] summary::before {
  transform: rotate(90deg);
}

details[open] summary {
  border-bottom: 1px solid var(--border-color);
  background-color: transparent;
}

/* Contenu à l'intérieur de details */
details > *:not(summary) {
  padding: 1rem 1.2rem;
}

summary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  summary { background-color: rgba(255, 255, 255, 0.03); }
  summary:hover { background-color: rgba(255, 255, 255, 0.07); }
}

/* --- PARAGRAPHES SPÉCIAUX (Callouts) --- */
/* Pour les utiliser dans Bear Blog, écrivez : <p class="note">Votre texte</p> */

.info, .warning, .note {
padding: 1rem 1.25rem;
border-radius: 8px;
margin: 1.5rem 0;
font-family: var(--font-sans);
font-size: 0.95rem;
}

.info {
background-color: #eff6ff;
border-left: 5px solid #3b82f6;
color: #1e40af;
}

.warning {
background-color: #fffbeb;
border-left: 5px solid #f59e0b;
color: #92400e;
}

.note {
background-color: #f9fafb;
border-left: 5px solid #6b7280;
color: #374151;
}

@media (prefers-color-scheme: dark) {
.info { background-color: #1e3a8a33; color: #bfdbfe; }
.warning { background-color: #78350f33; color: #fde68a; }
.note { background-color: #37415133; color: #e5e7eb; }
}

/* --- Footer & Navigation --- */
nav, footer {
font-family: var(--font-sans);
font-size: 0.9rem;
color: var(--secondary-text);
}

nav a, footer a {
margin-right: 1rem;
}

#mise à jour #thème