/* Freyssenet Ensemble — site CSS */

/* Valeurs de thème bakées : le shell pré-rendu peint avec les bonnes couleurs/
   polices AVANT React (qui les ré-applique à l'identique via documentElement.style
   au montage). Sans ce bloc, var(--c-primary) est indéfini → le shell apparaît sans
   couleur de marque puis vire au vert au montage = flash. Doit refléter les settings
   live (API /api/all) ET TWEAK_DEFAULTS dans site.jsx ; à mettre à jour si la palette
   change côté admin. */
:root{
  --c-primary:#1e5c14; --c-secondary:#4a5d3a; --c-ink:#1a1a1a; --c-paper:#fafaf7;
  --fs-heading:'Instrument Serif',ui-serif,Georgia,serif;
  --fs-body:'Public Sans',ui-sans-serif,system-ui,sans-serif;
  --card-border:1px solid rgba(0,0,0,.1); --card-shadow:none; --card-bg:transparent;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fs-body, 'Public Sans', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink, #1a1a1a);
  background: var(--c-paper, #fafaf7);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; cursor: pointer; }

.site { min-height: 100vh; }

/* ───── Header ───── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-paper);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 32px;
}
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-brand__mark {
  width: 40px; height: 40px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-paper); font-size: 22px; font-weight: 600;
}
.brand-mark { display: block; flex-shrink: 0; }
.site-brand__name { font-size: 19px; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.site-brand__sub { font-size: 11px; opacity: .55; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }

.site-nav { flex: 1; display: flex; gap: 4px; justify-content: center; }
.site-nav__item {
  position: relative;
  background: transparent; border: 0;
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: rgba(0,0,0,.7);
  border-radius: 4px;
  transition: color .15s;
}
.site-nav__item:hover { color: var(--c-ink); background: rgba(0,0,0,.04); }
.site-nav__item.is-active { color: var(--c-primary); }
.site-nav__bar {
  position: absolute; bottom: -16px; left: 14px; right: 14px;
  height: 2px;
}
.site-cta {
  border: 0; padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  border-radius: 4px;
  letter-spacing: .01em;
}

/* ───── Hero ───── */
.hero {
  max-width: 1280px; margin: 0 auto;
  padding: 64px 32px 48px;
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 24px;
}
.hero__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero__title {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero__lead {
  font-size: 18px; line-height: 1.55;
  opacity: .75; max-width: 520px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero__cta { display: flex; gap: 12px; margin-bottom: 48px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; padding: 14px 22px;
  font-size: 14px; font-weight: 600;
  border-radius: 4px;
  letter-spacing: .01em;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { color: #fff; }
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(0,0,0,.2);
  color: var(--c-ink);
}
.btn--ghost:hover { background: rgba(0,0,0,.04); }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(0,0,0,.1);
  padding-top: 24px;
}
.stat { padding-right: 16px; border-right: 1px solid rgba(0,0,0,.08); }
.stat:last-child { border-right: 0; }
.stat__n { font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.stat__l { font-size: 12px; opacity: .6; margin-top: 6px; line-height: 1.3; }

.hero__right { display: flex; flex-direction: column; gap: 16px; }
.hero__photo {
  aspect-ratio: 4/3;
  background: rgba(0,0,0,.04);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.08) contrast(1.02);
}
.hero__caption {
  font-style: italic; font-size: 14px; opacity: .75;
  padding-left: 16px; border-left: 2px solid var(--c-primary);
  line-height: 1.5;
}

/* ───── Placeholders ───── */
.placeholder {
  width: 100%; height: 100%; min-height: 200px;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0,0,0,.04) 0, rgba(0,0,0,.04) 1px,
    transparent 1px, transparent 12px
  );
  background-color: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.placeholder--wide { aspect-ratio: 16/7; }
.placeholder--square { aspect-ratio: 1; }
.placeholder--portrait { aspect-ratio: 3/4; }
.placeholder__label {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .02em;
  color: rgba(0,0,0,.45);
  background: var(--c-paper);
  padding: 4px 10px; border-radius: 2px;
  text-align: center; max-width: 80%;
}

/* ───── Section title ───── */
.sect-title { margin-bottom: 40px; }
.sect-title__kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.sect-title__line { width: 32px; height: 2px; }
.sect-title h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0; max-width: 900px;
  text-wrap: balance;
}

/* ───── Cards (generic) ───── */
.card {
  background: var(--card-bg, transparent);
  border: var(--card-border, 1px solid rgba(0,0,0,.1));
  box-shadow: var(--card-shadow, none);
  border-radius: 4px;
  padding: 24px;
  transition: transform .15s, box-shadow .15s;
}

/* ───── Actus ───── */
.actus { max-width: 1280px; margin: 0 auto; padding: 64px 32px; border-top: 1px solid rgba(0,0,0,.08); }
.actus__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.actu { display: flex; flex-direction: column; gap: 12px; }
.actu--featured {
  display: flex; flex-direction: column;
}
.actu__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.actu__tag {
  border: 1px solid; padding: 3px 8px; border-radius: 2px;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 10px;
}
.actu__date { opacity: .55; }
.actu h3 {
  font-size: 22px; font-weight: 400; line-height: 1.2;
  letter-spacing: -.01em; margin: 0;
}
.actu--featured h3 { font-size: 26px; }
.actu p { font-size: 14px; opacity: .72; margin: 0; line-height: 1.55; }
.actu__more { font-size: 13px; font-weight: 600; margin-top: auto; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; align-self: flex-start; }
.actu__more:hover { text-decoration: underline; }
.actu-modal__img { margin: 0 0 24px; border-radius: 6px; overflow: hidden; }
.actu-modal__img img { width: 100%; height: auto; display: block; }
.actu__hero { margin-top: 16px; }
.actu__hero img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* ───── Bilan KPI ───── */
.bilan { max-width: 1280px; margin: 0 auto; padding: 80px 32px; border-top: 1px solid rgba(0,0,0,.08); }
.bilan__intro { font-size: 17px; max-width: 800px; line-height: 1.6; opacity: .78; margin: 0 0 32px; }

.mandat-switch {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 32px;
  max-width: 760px;
}
.mandat-switch__btn {
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 4px;
  transition: border-color .15s, background .15s;
}
.mandat-switch__btn:hover { background: rgba(0,0,0,.025); }
.mandat-switch__btn.is-active { background: rgba(0,0,0,.025); }
.mandat-switch__l {
  font-size: 18px; font-weight: 400; letter-spacing: -.01em;
  margin-bottom: 4px;
}
.mandat-switch__s { font-size: 12px; opacity: .65; letter-spacing: .02em; }

.bilan__legend {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 16px 20px;
  background: rgba(0,0,0,.025);
  border-radius: 4px;
  margin-bottom: 32px;
  font-size: 13px;
}
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-item span:first-child {
  width: 12px; height: 12px; border-radius: 2px; display: inline-block;
}

.bilan__list { display: flex; flex-direction: column; gap: 16px; }
.kpi-card {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 4px;
  padding: 28px 32px;
  background: var(--c-paper);
}
.kpi-card__head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: start;
  margin-bottom: 20px;
}
.kpi-card__num {
  font-size: 44px; font-weight: 400; line-height: 1;
  letter-spacing: -.03em; opacity: .9;
}
.kpi-card__title h3 {
  font-size: 22px; font-weight: 400; margin: 0 0 4px;
  letter-spacing: -.01em;
}
.kpi-card__title p { font-size: 14px; opacity: .65; margin: 0; font-style: italic; }
.kpi-card__badge {
  border: 1px solid; padding: 6px 12px; border-radius: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.kpi-card__detail {
  font-size: 14px; opacity: .72; margin: 16px 0 0; line-height: 1.55;
  padding-top: 16px; border-top: 1px dashed rgba(0,0,0,.1);
}

/* KPI - jauges */
.kpi-gauge { display: flex; flex-direction: column; gap: 10px; }
.kpi-gauge__row {
  display: grid; grid-template-columns: 90px 1fr 60px;
  gap: 16px; align-items: center;
  font-size: 13px; opacity: .85;
}
.kpi-gauge__bar {
  height: 8px; background: rgba(0,0,0,.06); border-radius: 2px; overflow: hidden;
}
.kpi-gauge__bar > div { height: 100%; transition: width .6s; }
.kpi-gauge__val { font-family: ui-monospace, monospace; font-size: 13px; text-align: right; }

/* KPI - notes */
.kpi-note { display: flex; align-items: center; gap: 32px; }
.kpi-note__big {
  font-size: 72px; font-weight: 400; line-height: 1; letter-spacing: -.04em;
}
.kpi-note__big span { font-size: 28px; opacity: .4; }
.kpi-note__bars { display: flex; gap: 4px; flex: 1; }
.kpi-note__bars span { flex: 1; height: 32px; border-radius: 2px; }

/* KPI - feux */
.kpi-feux { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.kpi-feux .feu {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.12);
  transition: opacity .2s;
  opacity: .25;
}
.kpi-feux .feu.is-on { opacity: 1; box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.kpi-feux__label {
  font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  margin-left: 16px;
}

/* ───── Conseil ───── */
.conseil { max-width: 1100px; margin: 0 auto; padding: 64px 32px; }
.conseil__intro { font-size: 17px; opacity: .75; max-width: 720px; margin: 0 0 32px; line-height: 1.6; }
.conseil__filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }

.conseil__scope {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 24px;
}
.conseil__scope-btn {
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 4px;
  transition: border-color .15s, background .15s;
}
.conseil__scope-btn:hover { background: rgba(0,0,0,.025); }
.conseil__scope-btn.is-active { border-width: 1.5px; background: rgba(0,0,0,.025); }
.conseil__scope-l {
  font-size: 16px; font-weight: 600; letter-spacing: -.005em;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.conseil__scope-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 7px; border-radius: 2px;
  background: rgba(0,0,0,.08); color: rgba(0,0,0,.7);
}
.conseil__scope-s { font-size: 12px; opacity: .6; }

.capca-notice {
  padding: 16px 20px;
  background: rgba(0,0,0,.025);
  border-left: 3px solid var(--c-secondary);
  border-radius: 2px;
  font-size: 14px; line-height: 1.55;
  margin-bottom: 24px;
}
.capca-notice strong { font-weight: 700; }
.chip {
  padding: 8px 14px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,.15); background: transparent;
  font-size: 13px; font-weight: 500;
}
.chip:hover { background: rgba(0,0,0,.04); }
.chip.is-active { font-weight: 600; }

.docs-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(0,0,0,.08); }
.doc-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 20px; align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: background .15s;
}
.doc-row:hover { background: rgba(0,0,0,.025); padding-left: 12px; padding-right: 12px; }
.doc-row__icon {
  width: 48px; height: 56px;
  border: 1.5px solid;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.doc-row__type {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 4px;
}
.doc-row__title { font-size: 17px; font-weight: 400; letter-spacing: -.005em; line-height: 1.3; }
.doc-row__meta { font-size: 12px; opacity: .55; margin-top: 4px; }
.doc-row__action { font-size: 13px; font-weight: 600; opacity: .7; }
.doc-row:hover .doc-row__action { opacity: 1; }

.conseil__next {
  margin-top: 48px;
  padding: 32px;
  background: rgba(0,0,0,.025);
  border-left: 3px solid var(--c-primary);
  border-radius: 4px;
}
.conseil__next-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.conseil__next h3 { font-size: 24px; font-weight: 400; margin: 0 0 12px; letter-spacing: -.01em; }
.conseil__next p { font-size: 15px; opacity: .75; margin: 0 0 20px; line-height: 1.5; }

/* ── Conseil blocs côte-à-côte ── */
.conseil__bloc { border-radius: 6px; }
.conseil__bloc-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 32px;
  padding: 20px 24px; background: rgba(0,0,0,.025);
  border-left: 4px solid; border-radius: 4px; margin-bottom: 0;
}
.conseil__bloc-title { font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.conseil__bloc-sub { font-size: 13px; opacity: .6; }
.conseil__next-inline { text-align: right; flex-shrink: 0; max-width: 380px; }
.conseil__next-inline .conseil__next-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px;
}
.conseil__next-date { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.conseil__next-detail { font-size: 13px; opacity: .65; line-height: 1.4; }
@media (max-width: 700px) {
  .conseil__bloc-header { flex-direction: column; }
  .conseil__next-inline { text-align: left; }
}

/* ───── Opposition ───── */
.opposition { max-width: 1280px; margin: 0 auto; padding: 64px 32px; }
.oppo__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 56px;
}
.oppo-card { display: flex; flex-direction: column; gap: 12px; }
.oppo-card__head { display: flex; align-items: center; justify-content: space-between; }
.oppo-card__type {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.oppo-card__date { font-size: 12px; opacity: .55; }
.oppo-card h3 { font-size: 19px; font-weight: 400; margin: 0; line-height: 1.3; letter-spacing: -.005em; }
.oppo-card p { font-size: 14px; opacity: .72; margin: 0; line-height: 1.55; }
.oppo-card__foot { margin-top: auto; font-size: 13px; font-weight: 600; }
.oppo-card__btn { background: none; border: none; padding: 0; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; }
.oppo-card__btn:hover { text-decoration: underline; }
.oppo-card__na { font-size: 13px; opacity: .4; }

/* Modale de lecture */
.doc-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.doc-modal {
  position: relative; background: var(--c-paper); color: var(--c-ink);
  border-radius: 6px; padding: 40px 48px;
  max-width: 720px; width: 100%; max-height: 85vh;
  overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.doc-modal__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; opacity: .45; line-height: 1;
}
.doc-modal__close:hover { opacity: 1; }
.doc-modal__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.doc-modal__title { font-size: 26px; font-weight: 400; margin: 0 0 24px; line-height: 1.25; }
.doc-modal__body {
  font-size: 15px; line-height: 1.7; white-space: pre-wrap;
  opacity: .85; margin-bottom: 24px;
}
.doc-modal__dl { font-size: 13px; font-weight: 600; text-decoration: none; }
.doc-modal__dl:hover { text-decoration: underline; }

.vote-record {
  padding: 40px;
  background: rgba(0,0,0,.025);
  border-radius: 4px;
}
.vote-record h3 { font-size: 28px; font-weight: 400; margin: 0 0 8px; letter-spacing: -.01em; }
.vote-record p { opacity: .75; margin: 0 0 24px; }
.vote-bars { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.vote-bar__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.vote-bar__head span:first-child { font-weight: 600; }
.vote-bar__head span:last-child { opacity: .6; font-family: ui-monospace, monospace; }
.vote-bar__track { height: 6px; background: rgba(0,0,0,.08); border-radius: 2px; overflow: hidden; }
.vote-bar__track > div { height: 100%; transition: width .6s; }
.vote-record__note { margin-top: 24px; font-size: 13px; font-style: italic; opacity: .7; }

/* ───── Expression ───── */
.expression { max-width: 980px; margin: 0 auto; padding: 64px 32px; }
.expression__intro { font-size: 17px; opacity: .75; line-height: 1.6; margin: 0 0 32px; }
.expression__tabs {
  display: flex; gap: 0; border-bottom: 1px solid rgba(0,0,0,.1);
  margin-bottom: 40px;
}
.expression__tab {
  background: transparent; border: 0;
  padding: 14px 22px;
  font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: rgba(0,0,0,.6);
}
.expression__tab.is-active { font-weight: 600; }

.testimony-form {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 32px;
}
.testimony-form textarea {
  width: 100%; border: 0; outline: 0;
  font-family: inherit; font-size: 15px;
  resize: vertical; min-height: 80px;
  background: transparent;
}
.testimony-form__row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.check { font-size: 13px; opacity: .75; display: flex; align-items: center; gap: 6px; }

.form-row-2 {
  display: flex; gap: 10px; margin-bottom: 10px;
}
.form-row-2 input {
  flex: 1; border: 1px solid rgba(0,0,0,.15); border-radius: 4px;
  padding: 10px 14px; font-family: inherit; font-size: 14px; outline: 0;
  background: rgba(0,0,0,.02);
}
.form-msg {
  margin-top: 12px; padding: 10px 14px; border-radius: 4px;
  font-size: 14px; font-weight: 500;
}
.form-msg--ok { background: #e6f4ea; color: #1a6b32; border: 1px solid #a8d5b5; }
.form-msg--err { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c2; }

.testimonies { display: flex; flex-direction: column; gap: 20px; }
.testimony {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 4px; padding: 20px 24px;
}
.testimony__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testimony__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.testimony__author { font-weight: 600; font-size: 14px; }
.testimony__meta { font-size: 12px; opacity: .55; }
.testimony p { font-size: 16px; line-height: 1.55; margin: 0 0 16px; font-style: italic; }
.testimony__foot { display: flex; align-items: center; gap: 16px; }
.testimony__vote {
  background: transparent; border: 1px solid; padding: 6px 12px; border-radius: 2px;
  font-size: 12px; font-weight: 600;
}
.testimony__reply { font-size: 12px; opacity: .6; }

/* Idées */
.ideas { display: flex; flex-direction: column; gap: 8px; }
.ideas__form {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px;
}
.ideas__form input {
  flex: 1; border: 1px solid rgba(0,0,0,.15); border-radius: 4px;
  padding: 12px 16px; font-family: inherit; font-size: 15px; outline: 0;
}
.idea-row {
  display: grid; grid-template-columns: auto 1fr;
  gap: 20px; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.idea-row__vote-label {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-align: center; margin-bottom: 4px;
}
.idea-row__votes {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 56px;
}
.idea-row__up {
  width: 32px; height: 32px; border: 1px solid; background: transparent;
  border-radius: 4px;
}
.idea-row__votes span { font-size: 18px; font-weight: 400; }
.idea-row h4 { font-size: 16px; font-weight: 400; margin: 0 0 4px; }
.idea-row__meta { font-size: 12px; opacity: .65; }
.idea-row__more { font-size: 13px; font-weight: 600; }

/* Mentions légales / CGU */
.legal-sect { max-width: 1100px; margin: 0 auto; padding: 48px 32px 80px; }
.legal-viewer { margin-top: 24px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,0,0,.1); }
.legal-viewer__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: rgba(0,0,0,.03); border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 14px;
}
.legal-viewer__frame { width: 100%; height: 80vh; border: none; display: block; }
.legal-empty { text-align: center; padding: 80px 40px; color: rgba(0,0,0,.35); }
.legal-empty__icon { font-size: 48px; margin-bottom: 16px; }
.legal-empty p { font-size: 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.contact__form { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.contact__form h3 { font-size: 22px; font-weight: 400; margin: 0; letter-spacing: -.01em; }
.contact__form p { font-size: 14px; opacity: .7; margin: 0 0 8px; }
.contact__form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; opacity: .75; font-weight: 500; }
.contact__form input, .contact__form select, .contact__form textarea {
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 4px; padding: 10px 14px;
  font-family: inherit; font-size: 14px; outline: 0;
  background: var(--c-paper);
  color: var(--c-ink);
}
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact__form .btn { align-self: flex-start; margin-top: 8px; }
.contact__side { padding: 28px 0; }
.contact__side h4 { font-size: 14px; margin: 0 0 6px; font-weight: 600; }
.contact__side p { font-size: 14px; opacity: .75; margin: 0 0 20px; line-height: 1.55; }

/* ───── Commune ───── */
.commune { max-width: 1280px; margin: 0 auto; padding: 64px 32px; }
.commune__hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  align-items: center; margin-bottom: 64px;
}
.commune__intro p { margin: 0 0 16px; opacity: .8; line-height: 1.6; }
.commune__patrimoine { margin-bottom: 64px; }
.commune__patrimoine h3, .commune__assos h3 {
  font-size: 28px; font-weight: 400; margin: 0 0 24px; letter-spacing: -.01em;
}
.patrimoine-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.patrimoine-card { display: flex; flex-direction: column; gap: 8px; }
.patrimoine-card__t { font-size: 16px; font-weight: 400; margin-top: 8px; }
.patrimoine-card__d { font-size: 12px; opacity: .55; font-family: ui-monospace, monospace; }

.commune__entreprises { margin-bottom: 64px; }
.commune__entreprises h3 { font-size: 28px; font-weight: 400; margin: 0 0 24px; letter-spacing: -.01em; }
.entreprises-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.entreprise-card__type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .55; }

.commune__assos { margin-bottom: 64px; }
.assos-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.asso-card h4 { font-size: 17px; font-weight: 400; margin: 0 0 4px; letter-spacing: -.005em; }
.asso-card__focus { font-size: 12px; opacity: .55; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.asso-card__next { font-size: 14px; font-weight: 500; }
.asso-card--clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.asso-card--clickable:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.asso-card--clickable:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* Modale actualités d'association (réutilise .doc-modal*) */
.asso-modal__focus { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .55; margin: -16px 0 24px; }
.asso-modal__list { display: flex; flex-direction: column; gap: 28px; }
.asso-news { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; }
.asso-news:not(:last-child) { padding-bottom: 28px; border-bottom: 1px solid rgba(0,0,0,.1); }
.asso-news__img { border-radius: 6px; overflow: hidden; }
.asso-news__img img { width: 100%; height: auto; display: block; }
.asso-news__date { font-size: 12px; opacity: .55; margin-bottom: 4px; }
.asso-news__body h3 { font-size: 18px; font-weight: 400; margin: 0 0 8px; line-height: 1.3; }
.asso-news__body p { font-size: 14px; line-height: 1.65; opacity: .85; margin: 0; white-space: pre-wrap; }
@media (max-width: 600px) {
  .asso-news { grid-template-columns: 1fr; gap: 12px; }
  .asso-news__img { max-width: 220px; }
}

.commune__sondage {
  border: 1.5px solid;
  padding: 32px;
}
.sondage__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.sondage__pill {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px;
}
.sondage__head h3 { font-size: 22px; font-weight: 400; margin: 0; letter-spacing: -.01em; }
.sondage__opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sondage__opt {
  position: relative;
  background: rgba(0,0,0,.025);
  border: 0;
  padding: 14px 20px; border-radius: 4px;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left; overflow: hidden;
  cursor: pointer;
}
.sondage__opt-bar { position: absolute; left: 0; top: 0; bottom: 0; transition: width .6s; }
.sondage__opt-l { position: relative; z-index: 1; font-size: 14px; font-weight: 500; }
.sondage__opt-pct { position: relative; z-index: 1; font-size: 18px; font-weight: 600; }
.sondage__foot { font-size: 12px; opacity: .55; }
.sondage__hint { font-size: 13px; opacity: .6; margin: -8px 0 16px; }
.sondage__opt--active { cursor: pointer; }
.sondage__opt--active:hover { background: rgba(0,0,0,.055); }
.sondage__opt--voted { background: rgba(0,0,0,.03); }

/* ───── Nous ───── */
.nous { max-width: 1100px; margin: 0 auto; padding: 64px 32px; }
.nous__intro { font-size: 17px; opacity: .75; line-height: 1.6; max-width: 720px; margin: 0 0 48px; }
.elus-grid { display: grid; grid-template-columns: minmax(0, 640px); gap: 24px; margin-bottom: 64px; }
.elu-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  align-items: start;
}
.elu-card .placeholder { aspect-ratio: 3/4; margin-bottom: 0; min-height: 0; }
.elu-card .placeholder { aspect-ratio: 3/4; margin-bottom: 0; min-height: 0; }
.elu-card__body { display: flex; flex-direction: column; }
.elu-card h3 { font-size: 22px; font-weight: 400; margin: 0 0 4px; letter-spacing: -.01em; }
.elu-card__role { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.elu-card p { font-size: 15px; opacity: .8; margin: 0; font-style: italic; line-height: 1.5; }

.charte {
  padding: 40px;
  background: rgba(0,0,0,.025);
  border-radius: 4px;
}
.charte h3 { font-size: 22px; font-weight: 500; margin: 0 0 24px; letter-spacing: -.005em; }
.charte__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.charte__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.charte__list span { font-size: 24px; line-height: 1; min-width: 36px; opacity: .9; }
.charte__list b { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.charte__list div { font-size: 14px; line-height: 1.55; opacity: .85; }

/* ───── Newsletter ───── */
.newsletter { padding: 64px 32px; }
.newsletter__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center;
}
.newsletter__kick { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.newsletter h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 400; margin: 0 0 12px; letter-spacing: -.01em; line-height: 1.1; }
.newsletter p { opacity: .65; margin: 0; font-size: 15px; line-height: 1.55; }
.newsletter__form { display: flex; gap: 8px; }
.newsletter__form input {
  flex: 1; padding: 14px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: inherit; font-family: inherit; font-size: 14px;
  border-radius: 4px; outline: 0;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter__form button {
  padding: 14px 22px;
  border: 0; border-radius: 4px;
  font-family: inherit; font-size: 14px; font-weight: 600;
}

/* ───── Footer ───── */
.site-footer { padding: 48px 32px 24px; border-top: 1px solid rgba(0,0,0,.08); }
.site-footer__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px;
  margin-bottom: 32px;
}
.site-footer__about { font-size: 13px; opacity: .65; line-height: 1.55; max-width: 360px; margin-top: 8px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer__cols h5 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; opacity: .65; }
.site-footer__cols a { display: block; font-size: 13px; padding: 4px 0; opacity: .8; }
.site-footer__cols a:hover { opacity: 1; color: var(--c-primary); }
.site-footer__bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 20px; border-top: 1px solid rgba(0,0,0,.08);
  display: flex; justify-content: space-between;
  font-size: 12px; opacity: .55;
}

/* Météo */
.meteo-sect { max-width: 1100px; margin: 0 auto; padding: 64px 32px; }
.meteo-sect__intro { font-size: 15px; opacity: .7; margin: 0 0 32px; line-height: 1.55; }
.meteo-load, .meteo-err { padding: 24px; opacity: .65; font-size: 14px; }
.meteo-now {
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; padding: 32px; align-items: center;
  margin-bottom: 40px;
}
.meteo-now__main { display: flex; align-items: center; gap: 24px; }
.meteo-now__icon { font-size: 64px; line-height: 1; }
.meteo-now__t { font-size: 64px; font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.meteo-now__t span { font-size: 28px; opacity: .5; margin-left: 4px; }
.meteo-now__l { font-size: 14px; opacity: .7; margin-top: 6px; }
.meteo-now__side { display: flex; gap: 24px; }
.metric__l { font-size: 11px; opacity: .55; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.metric__v { font-size: 22px; font-weight: 400; }
.meteo-fc__h { font-size: 22px; font-weight: 500; margin: 0 0 16px; letter-spacing: -.005em; }
.webcam { margin-top: 8px; }
.webcam__frame { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,.1); background: #e8e4dc; line-height: 0; }
.webcam__img { width: 100%; height: auto; display: block; }
.webcam__live { position: absolute; top: 12px; left: 12px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 4px; line-height: 1; }
.webcam__cap { font-size: 12px; opacity: .5; margin: 8px 0 0; line-height: 1.5; }
.meteo-fc { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 32px; }
.meteo-fc__d {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 4px;
  padding: 16px 8px;
  text-align: center;
}
.meteo-fc__day { font-size: 12px; font-weight: 600; opacity: .65; margin-bottom: 8px; }
.meteo-fc__icon { font-size: 28px; margin-bottom: 8px; line-height: 1; }
.meteo-fc__t { font-size: 14px; }
.meteo-fc__t b { font-weight: 600; margin-right: 6px; }
.meteo-fc__t span { opacity: .5; }
.meteo-fc__rain { font-size: 11px; opacity: .55; margin-top: 4px; font-family: ui-monospace, monospace; }
.meteo-note {
  font-size: 13px; line-height: 1.6; opacity: .7;
  padding: 16px 20px;
  background: rgba(0,0,0,.025);
  border-left: 3px solid var(--c-secondary);
  border-radius: 2px;
}
@media (max-width: 980px) {
  .hero__grid, .commune__hero, .contact, .newsletter__inner, .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .actus__grid, .oppo__grid, .elus-grid, .assos-list, .entreprises-list { grid-template-columns: 1fr; }
  .patrimoine-grid { grid-template-columns: repeat(2, 1fr); }
  .charte__list { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
