/* Le vote du jour — feuille de style unique.
   Palette reprise des visuels (charte provisoire, cf. dette 5.2). */
:root {
  --fond: #F7F5F0;
  --fond-carte: #FFFFFF;
  --bord: #E2DED4;
  --texte: #1B1E28;
  --texte-doux: #565A66;
  --pour: #14866C;
  --contre: #C0392B;
  --neutre: #8A8578;
  --rayon: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #14171F;
    --fond-carte: #1B1E28;
    --bord: #2E3340;
    --texte: #F2F0EA;
    --texte-doux: #9EA3B0;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.contenu { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
p + p { margin-top: 0.9em; }
section { padding: 3.5rem 0; border-top: 2px solid var(--bord); }
section:first-of-type { border-top: 0; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--fond) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--bord);
}
.entete .contenu {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0; flex-wrap: wrap;
}
.marque { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; text-decoration: none; }
.marque .points { display: flex; gap: 0.25rem; }
.pastille {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.8rem; font-weight: 900; flex: none;
}
.pastille.pour { background: var(--pour); }
.pastille.contre { background: var(--contre); }
.pastille.abstention { background: var(--neutre); }
nav { display: flex; gap: 1.25rem; font-size: 0.95rem; font-weight: 600; }
nav a { text-decoration: none; color: var(--texte-doux); }
nav a:hover { color: var(--texte); }

/* Accroche */
.accroche { padding: 2.5rem 0 3rem; }
.bandeau {
  width: 100%; height: auto; display: block;
  border-radius: var(--rayon); border: 2px solid var(--bord);
  margin-bottom: 2.5rem;
}
.marque img { border-radius: 50%; display: block; }
.accroche h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.accroche .baseline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--texte-doux); margin-top: 1rem; max-width: 46rem;
}
.boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.bouton {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  border: 2px solid var(--bord); background: var(--fond-carte); color: var(--texte);
}
.bouton.primaire { background: var(--pour); border-color: var(--pour); color: #fff; }
.bouton:hover { transform: translateY(-1px); }

/* Cartes */
.grille { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.carte {
  background: var(--fond-carte); border: 2px solid var(--bord);
  border-radius: var(--rayon); padding: 1.5rem;
}
.carte p { color: var(--texte-doux); font-size: 0.98rem; }

/* Publications — cartes de largeur bornée, sinon une publication seule
   occuperait toute la largeur et son visuel 4:5 mangerait l'écran. */
.grille.publications { grid-template-columns: repeat(auto-fill, minmax(16rem, 21rem)); }
.publication {
  background: var(--fond-carte); border: 2px solid var(--bord);
  border-radius: var(--rayon); overflow: hidden;
  display: flex; flex-direction: column;
}
.publication img {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; display: block; background: var(--bord);
}
.publication .corps { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.publication h3 { font-size: 1.05rem; }
.etiquette {
  display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; color: #fff;
}
.decompte { display: flex; gap: 0.9rem; font-weight: 800; font-size: 0.95rem; flex-wrap: wrap; }
.decompte span { display: inline-flex; align-items: center; gap: 0.35rem; }
.meta { font-size: 0.85rem; color: var(--texte-doux); }
.liens { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: auto; font-size: 0.9rem; font-weight: 600; }

/* Soutien */
.soutien { background: var(--fond-carte); border: 2px solid var(--bord); border-radius: var(--rayon); padding: clamp(1.5rem, 4vw, 2.5rem); }
.soutien ul { margin: 1rem 0 0 1.2rem; color: var(--texte-doux); }
.soutien li { margin-bottom: 0.4rem; }
.bientot { color: var(--texte-doux); font-size: 0.95rem; font-style: italic; }

/* Pied */
footer { border-top: 2px solid var(--bord); padding: 2.5rem 0 3.5rem; color: var(--texte-doux); font-size: 0.9rem; }
footer .contenu { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
footer a { color: var(--texte-doux); }

/* Pages de texte */
.texte { max-width: 46rem; }
.texte h2 { margin-top: 2.5rem; }
.texte ul { margin: 1rem 0 1rem 1.2rem; }
.texte li { margin-bottom: 0.5rem; }
.texte .encadre {
  background: var(--fond-carte); border: 2px solid var(--bord);
  border-left: 8px solid var(--pour); border-radius: 14px;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { color: var(--texte-doux); font-weight: 700; }
