/* Couleurs de thème (filets et étiquettes) : le corail reste réservé aux éléments d'action. */
.theme-jeunesse-et-famille { --theme: #C2761B; }
.theme-ecole { --theme: #2F5FB3; }
.theme-travail { --theme: #1F7A8C; }
.theme-industrie { --theme: #5B6B82; }
.theme-institutions { --theme: #3D5A80; }
.theme-territoires { --theme: #8A6D1F; }
.theme-culture { --theme: #B0498B; }
.theme-fraternite { --theme: #3C8DAD; }
.theme-ecologie { --theme: #2E8B57; }
.theme-sante { --theme: #8E44AD; }
.theme-securite { --theme: #A0522D; }
.theme-souverainete { --theme: #4B6E3C; }

/* Rappel chiffré */
.recap { display: grid; gap: 10px; margin-bottom: 20px; }
.recap__figure { font-size: 18px; }
.recap__figure strong { font-size: 34px; letter-spacing: -0.03em; }
.recap__text { color: var(--muted); }

.progress { height: 10px; border-radius: 999px; background: var(--grey-soft); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: var(--text); }

/* Pastilles filtrantes : une seule ligne défilante, barre collante ; elles font défiler jusqu'au thème. */
.chips-wrap { position: sticky; top: var(--navbar-h); z-index: 20; margin: 0 calc(var(--gap) * -1) 14px; padding: 8px 0; background: var(--bg); }

/* Fondu sur le bord droit : la rangée continue. */
.chips-wrap::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(247, 244, 239, 0), var(--bg));
}

.chips { position: relative; display: flex; flex-wrap: nowrap; gap: 8px; padding: 0 var(--gap); overflow-x: auto; scrollbar-width: none; }
.chips::after { content: ""; flex: none; width: calc(var(--gap) + 24px); }
.chips::-webkit-scrollbar { display: none; }

.chip { flex: none; padding: 11px 18px; border-radius: 999px; background: var(--grey-soft); text-decoration: none; font-size: 16px; white-space: nowrap; }
.chip.is-active { background: var(--accent); color: #fff; font-weight: 500; }

/* Encart « en consultation » : fond corail très clair, distinct des parties. */
.consult { margin: 0 calc(var(--gap) * -1) 12px; padding: 24px var(--gap); background: var(--accent-soft); border-top: 4px solid var(--accent); }
.consult__head { margin-bottom: 14px; }
.consult__head h2 { font-size: 24px; }
.consult__head p { margin-top: 6px; color: var(--muted); }

/* Niveau 1 : les trois parties, bandes pleine largeur portant un verbe. */
.part { margin-top: 20px; }
.part__head {
  margin: 0 calc(var(--gap) * -1);
  padding: 36px var(--gap) 34px;
  background: radial-gradient(ellipse 60% 120% at 90% 0%, #1E3F73 0%, rgba(18, 40, 76, 0) 70%), var(--navy);
  color: #fff;
}
.part__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #C9D4E4; }
.part__eyebrow::before { content: ""; width: 32px; height: 4px; background: var(--accent); }
.part__title { margin-top: 10px; font-size: clamp(64px, 20vw, 88px); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; }
.part__intent { margin-top: 16px; max-width: 34em; font-size: 18px; color: #DDE4F0; }
.part__count { margin-top: 18px; font-size: 15px; color: #C9D4E4; }
.part__count strong { font-size: 22px; color: #fff; }
.part__body { padding-top: 28px; }

/* Niveau 2 : sections thématiques, plus modestes, avec un filet de couleur propre au thème. */
.theme-section { margin-bottom: 32px; scroll-margin-top: calc(var(--navbar-h) + 76px); }
.theme-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 4px solid var(--theme); }
.theme-section__head h3 { font-size: 22px; }
.theme-section__count { color: var(--muted); font-size: 15px; }
#programme-debut { scroll-margin-top: calc(var(--navbar-h) + 76px); }

/* Niveau 3 : les propositions en cartes. */
.proposals { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.proposal { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; border-top: 4px solid var(--theme, var(--border)); }
.proposal__number { font-size: 56px; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; color: var(--accent); }
.proposal__title { font-size: 19px; line-height: 1.25; color: var(--navy); }
.proposal__summary { color: var(--muted); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proposal__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; }
.tag--theme { background: color-mix(in srgb, var(--theme, #5B6B82) 14%, white); color: color-mix(in srgb, var(--theme, #5B6B82) 78%, black); font-weight: 500; }
.proposal__consult { font-size: 14px; color: var(--muted); }
.proposal__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); }

.approval form, .priority-action form { margin: 0; }
.approval__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.approval__count { font-size: 17px; font-weight: 500; }
.approval__button.is-done { color: var(--accent); cursor: default; }

.priority-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: #B8321F;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.priority-button:hover { background: var(--accent-soft); }
.priority-button.is-chosen { background: var(--accent); color: #fff; }

@media (min-width: 900px) {
  .band--recap { padding-bottom: 40px; background: var(--card); }
  .recap { grid-template-columns: auto 1fr; align-items: center; gap: 12px 40px; margin: 0 auto; }
  .recap__figure { font-size: 22px; }
  .recap__figure strong { font-size: 56px; }
  .recap .progress { height: 12px; }
  .recap__text { grid-column: 1 / -1; max-width: 46em; font-size: 18px; }

  .chips-wrap { top: var(--nav-height); margin: 0; padding: 12px 40px; background: rgba(247, 244, 239, 0.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
  .chips-wrap::after { display: none; }
  .chips { max-width: 1200px; margin: 0 auto; padding: 0; gap: 6px; }
  .chips::after { display: none; }
  .chip { font-size: 15px; padding: 9px 15px; }

  .theme-section, #programme-debut { scroll-margin-top: calc(var(--nav-height) + 84px); }

  .consult { margin: 0; padding: 48px 40px 52px; }
  .consult__head { margin-bottom: 24px; }
  .consult__head h2 { font-size: 32px; }
  .consult__head p { font-size: 18px; }

  .part { margin-top: 0; }
  .part__head { margin: 0; padding: 72px 40px 68px; }
  .part__title { font-size: clamp(96px, 11vw, 168px); }
  .part__intent { margin-top: 22px; font-size: 22px; }
  .part__count { margin-top: 26px; font-size: 17px; }
  .part__count strong { font-size: 30px; }
  .part__body { padding-top: 56px; padding-bottom: 32px; }

  .theme-section { margin-bottom: 56px; }
  .theme-section__head { margin-bottom: 22px; }
  .theme-section__head h3 { font-size: 30px; }
  .theme-section__count { font-size: 17px; }

  .proposals { grid-template-columns: 1fr 1fr; gap: 20px; }
  .proposal { padding: 22px 24px 18px; gap: 12px; }
  .proposal__title { font-size: 21px; }
  .proposal__number { font-size: 64px; }
}

@media (min-width: 1300px) {
  .proposals { grid-template-columns: repeat(3, 1fr); }
}
