/* Blog Boursicoton — feuille de style commune à la liste et aux articles. */
:root {
  --fond: #fff7f9;
  --texte: #2b2a3a;
  --doux: #6b6a7a;
  --bleu: #1f3f8f;
  --vert: #2f8a2b;
  --rouge: #c0282d;
  --jaune: #ffd23f;
  --rose: #ffe3ea;
  --bulle: #ffffff;
  --bord: #2b2a3a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texte);
  background: radial-gradient(circle at 70% 0, var(--rose) 0, var(--fond) 55%) fixed;
  display: flex;
  flex-direction: column;
}
a { color: var(--bleu); }
a:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }

/* En-tête : la mascotte et le nom du blog */
.entete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 16px .5rem;
}
.entete img { width: 64px; height: auto; }
.entete a { text-decoration: none; }
.entete .nom { display: block; font-weight: 800; font-size: 1.5rem; color: var(--bleu); line-height: 1.1; }
.entete .slogan { display: block; color: var(--doux); font-weight: 600; font-size: .95rem; }

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 16px 2rem;
}

/* Titre de la page liste */
.intro { text-align: center; margin: 0 0 1.8rem; }
.intro h1 {
  display: inline-block;
  margin: 0 0 .6rem;
  padding: .3rem 1rem;
  background: var(--bleu);
  color: var(--jaune);
  border-radius: 12px;
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
}
.intro p { margin: 0; color: var(--doux); font-weight: 600; }

/* Liste des articles */
.articles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.carte {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: var(--bulle);
  border: 3px solid var(--bord);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--bord);
  color: inherit;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.carte:hover, .carte:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 0 var(--bord); }
.carte:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--bord); }
.carte .emoji {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--jaune);
  border: 3px solid var(--bord);
  font-size: 1.4rem;
}
.carte h2 { margin: 0 0 .3rem; font-size: 1.2rem; line-height: 1.25; color: var(--bleu); }
.carte p { margin: 0; line-height: 1.45; }
.meta { margin: 0 0 .35rem; color: var(--doux); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.vide { text-align: center; color: var(--doux); }

/* Page article */
.fil { margin: 0 0 1rem; font-weight: 700; }
article {
  background: var(--bulle);
  border: 3px solid var(--bord);
  border-radius: 28px;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
article h1 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.2; color: var(--bleu); }
.contenu { font-size: 1.08rem; line-height: 1.7; }
.contenu h2 { margin: 2rem 0 .6rem; font-size: 1.35rem; color: var(--vert); line-height: 1.3; }
.contenu h3 { margin: 1.5rem 0 .4rem; font-size: 1.12rem; color: var(--bleu); }
.contenu img { max-width: 100%; height: auto; border-radius: 14px; }
.contenu figure { margin: 1.6rem 0; }
.contenu figure img { display: block; width: 100%; border: 3px solid var(--bord); }
.contenu figcaption { margin-top: .5rem; color: var(--doux); font-size: .92rem; text-align: center; }
.contenu blockquote {
  margin: 1.4rem 0;
  padding: .8rem 1.1rem;
  background: var(--rose);
  border-left: 6px solid var(--rouge);
  border-radius: 0 14px 14px 0;
  font-weight: 600;
}
.contenu blockquote p { margin: 0; }
/* Encadré « Le conseil de Boursicoton » : <aside class="astuce">…</aside> */
.contenu .astuce {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  background: #fff8d6;
  border: 3px dashed var(--bleu);
  border-radius: 18px;
}
.contenu .astuce::before { content: "🐷 Le conseil de Boursicoton"; display: block; margin-bottom: .3rem; font-weight: 800; color: var(--bleu); }
.contenu .astuce p { margin: 0; }
.contenu table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .98rem; }
.contenu th, .contenu td { padding: .5rem .7rem; border-bottom: 2px solid #eee; text-align: left; }
.contenu th { color: var(--bleu); }
.tableau { overflow-x: auto; }
.avertissement { margin: 2rem 0 0; padding-top: 1rem; border-top: 2px solid #eee; color: var(--doux); font-size: .9rem; line-height: 1.5; }
.navigation { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 0; font-weight: 700; }

footer { text-align: center; padding: 1rem 16px 2rem; font-size: .95rem; }
footer p { margin: .3rem 0; }

@media (prefers-reduced-motion: reduce) { .carte { transition: none; } }
@media (max-width: 480px) {
  .carte { flex-direction: column; gap: .6rem; }
}

/* « À lire aussi », sous chaque article */
.a-lire { margin: 2rem 0 0; }
.a-lire h2 { margin: 0 0 1rem; font-size: 1.35rem; color: var(--bleu); text-align: center; }
.a-lire .carte h3 { margin: 0 0 .3rem; font-size: 1.1rem; line-height: 1.25; color: var(--bleu); }

/* « Pour aller plus loin » : le livre conseillé, en fin d'article */
.livre { margin: 2rem 0 0; }
.livre .carte { align-items: center; background: var(--rose); }
.livre img { flex-shrink: 0; width: 80px; height: auto; border: 3px solid var(--bord); border-radius: 6px; box-shadow: 4px 4px 0 var(--bord); }
.livre h2 { margin: 0 0 .3rem; font-size: 1.15rem; line-height: 1.25; color: var(--bleu); }
.livre .lien { margin: .5rem 0 0; font-weight: 800; color: var(--bleu); }
