/* sitebackup.lacgtr.re — feuille de style sobre, lisible, accessible
   Couleurs CGT : rouge #c8102e, gris foncé #222, blanc */

:root {
  --rouge:        #c8102e;
  --rouge-fonce:  #8a0a1f;
  --texte:        #1a1a1a;
  --muted:        #666;
  --bord:         #e5e5e5;
  --fond:         #fafafa;
  --fond-card:    #ffffff;
  --largeur:      900px;
  --serif:        Georgia, "Times New Roman", Times, serif;
  --sans:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--texte);
  background: var(--fond);
}

a { color: var(--rouge); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* En-tête site */
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--rouge);
  padding: 0.75rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--texte);
}
.brand-mark {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  background: var(--rouge);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 2px;
}
.brand-name {
  font-weight: 600;
  font-size: 1rem;
}
.site-header nav a {
  margin-left: 1rem;
  color: var(--texte);
  font-weight: 500;
}

/* Pied de page */
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--bord);
  font-size: 0.9rem;
  color: var(--muted);
  background: #fff;
}
.site-footer .muted { font-size: 0.85rem; }

/* Index : cartes d'articles */
.listing h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-top: 1.5rem;
}
.lede {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: -0.5rem;
}
.card {
  background: var(--fond-card);
  border: 1px solid var(--bord);
  border-left: 4px solid var(--rouge);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 2px;
}
.card h2 {
  margin: 0 0 0.4rem 0;
  font-size: 1.2rem;
  font-family: var(--sans);
}
.card h2 a { color: var(--texte); }
.card h2 a:hover { color: var(--rouge); }
.card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Page article */
.article {
  background: var(--fond-card);
  border: 1px solid var(--bord);
  margin: 1.5rem auto;
  padding: 1.5rem 1.75rem;
  border-radius: 2px;
}
.post-header h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
  color: var(--rouge-fonce);
}
.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bord);
}
.post-tags { margin-left: 0.75rem; }
.tag {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.85rem;
}
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border: 1px solid var(--bord);
}
.post-content figure {
  margin: 1rem 0;
  text-align: center;
}
.post-content p { margin: 0.8rem 0; }
.post-content h2, .post-content h3 {
  font-family: var(--serif);
  color: var(--rouge-fonce);
  margin-top: 1.5rem;
}
.post-content blockquote {
  border-left: 3px solid var(--rouge);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}
.back {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bord);
}

/* Liens vers PDF (boutons "ob-section-file" Overblog) */
.post-content .ob-button-link,
.post-content a[href$=".pdf"],
.post-content a[href$=".PDF"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--rouge);
  color: #fff !important;
  border-radius: 3px;
  font-weight: 500;
  margin: 0.25rem 0.4rem 0.25rem 0;
  text-decoration: none;
}
.post-content .ob-button-link:hover,
.post-content a[href$=".pdf"]:hover {
  background: var(--rouge-fonce);
  text-decoration: none;
}
.post-content .ob-button-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.post-content .ob-ctn { margin: 0.5rem 0; }
.post-content .ob-link {
  display: inline-block;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Archives */
.listing section {
  margin: 2rem 0;
}
.listing section h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--rouge);
  border-bottom: 2px solid var(--rouge);
  padding-bottom: 0.25rem;
}
.listing ul {
  list-style: none;
  padding: 0;
}
.listing li {
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--bord);
}
.muted { color: var(--muted); font-size: 0.85rem; }

/* Commentaires */
.comments {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bord);
}
.comments h2 {
  font-size: 1.2rem;
  font-family: var(--sans);
}
.comment {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--fond);
  border-left: 3px solid var(--bord);
  border-radius: 2px;
}
.comment-meta {
  margin: 0 0 0.4rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.comment-body { font-size: 0.95rem; }

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .article { padding: 1rem; }
  .post-header h1 { font-size: 1.5rem; }
  .site-header nav a { margin-left: 0.6rem; font-size: 0.9rem; }
  .brand-name { font-size: 0.85rem; }
}
