/* ==========================================================================
   Les Weppes v4 — communes (liste, page commune, histoire, photos)
   ========================================================================== */

/* ---------- 8a · Les 25 communes ---------- */

.wpco-top { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 28px; padding-top: 32px; }
.wpco-intro { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wpco-h1 { font-size: 48px; font-weight: 900; letter-spacing: -.03em; line-height: 1; text-wrap: balance; }
.wpco-intro .wp-lead { font-size: 16px; line-height: 1.55; }
.wpco-search { margin-top: 6px; border-radius: var(--wp-r-lg); padding: 8px 8px 8px 14px; gap: 8px; }
.wpco-search__ico { color: var(--wp-faint); font-size: 17px; }
.wpco-sorts .wp-chip { font-size: 13px; }

.wpco-map {
  position: relative; border-radius: 16px; overflow: hidden; min-height: 260px;
  background-color: #DCD5C3;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
  background-size: 30px 30px;
}
.wpco-dot {
  position: absolute; width: var(--s, 12px); height: var(--s, 12px); transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--wp-ink); border: 2px solid var(--wp-paper);
  transition: transform .15s;
}
.wpco-dot.is-mairie { background: var(--wp-acc); }
.wpco-dot:hover, .wpco-dot:focus-visible { transform: translate(-50%, -50%) scale(1.25); z-index: 2; }
.wpco-map__go {
  position: absolute; left: 12px; bottom: 12px; background: var(--wp-paper);
  font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px;
}
.wpco-map__key { position: absolute; right: 12px; top: 12px; background: var(--wp-paper); font-size: 11px; padding: 6px 10px; border-radius: 8px; }

.wpco-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 24px 0; }
.wpco-card {
  background: var(--wp-paper); border-radius: var(--wp-r); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.wpco-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(40, 30, 10, .4); color: inherit; }
.wpco-card__media { position: relative; display: block; }
.wpco-card__media img { width: 100%; height: 86px; object-fit: cover; background: var(--wp-sand-2); }
.wpco-badge {
  position: absolute; right: 6px; top: 6px; background: var(--wp-paper); color: var(--wp-ink);
  font: 400 9px/1.2 var(--wp-mono); text-transform: uppercase; padding: 3px 6px; border-radius: 4px;
}
.wpco-badge.is-mairie { background: var(--wp-acc); }
.wpco-card__body { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.wpco-card__t { font-size: 15px; font-weight: 800; line-height: 1.15; }
.wpco-card__s { font: 400 11px/1.3 var(--wp-mono); color: var(--wp-muted); }
.wpco-none { margin-bottom: 24px; }

.wpco-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-bottom: 40px; }
.wpco-link { background: var(--wp-paper); color: var(--wp-ink); border-radius: var(--wp-r); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.wpco-link strong { font-size: 16px; font-weight: 800; }
.wpco-link span { font-size: 13px; line-height: 1.4; opacity: .8; }
.wpco-link--acc { background: var(--wp-acc); }
.wpco-link--dark { background: var(--wp-dark); color: var(--wp-on-dark); }
.wpco-link:hover { color: inherit; box-shadow: var(--wp-shadow); }

@media (max-width: 1100px) {
  .wpco-top { grid-template-columns: minmax(0, 1fr) 380px; }
  .wpco-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wpco-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .wpco-top { grid-template-columns: minmax(0, 1fr); }
  .wpco-map { min-height: 200px; }
  .wpco-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wpco-top { padding-top: 20px; }
  .wpco-h1 { font-size: 32px; }
  .wpco-intro .wp-lead { font-size: 15px; }
  .wpco-sorts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--wp-gut) * -1); padding: 0 var(--wp-gut); }
  .wpco-sorts::-webkit-scrollbar { display: none; }
  .wpco-sorts .wp-chip { flex-shrink: 0; white-space: nowrap; }
  .wpco-map { min-height: 180px; }
  .wpco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px 0; }
  .wpco-card__media img { height: 78px; }
  .wpco-links { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-bottom: 28px; }
  .wpco-link { flex-direction: row; align-items: baseline; gap: 10px; padding: 14px; }
  .wpco-link span { font-size: 12px; }
}

/* ---------- 8b · La page d'une commune ---------- */

.wpcm-hero { position: relative; height: 340px; background: var(--wp-dark); color: var(--wp-paper); overflow: hidden; }
.wpcm-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpcm-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 26, 23, .85), rgba(27, 26, 23, .2)); }
.wpcm-hero__in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 22px; padding-bottom: 28px; }
.wpcm-hero__crumbs, .wpcm-hero__crumbs span[aria-hidden]::after { color: #E3DDD0; }
.wpcm-hero__crumbs > :last-child:not(a) { color: var(--wp-paper); }
.wpcm-hero__crumbs a:hover { color: var(--wp-paper); }
.wpcm-hero__row { display: flex; align-items: flex-end; gap: 24px; }
.wpcm-hero__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wpcm-hero__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.wpcm-tag { font: 400 11px/1.3 var(--wp-mono); text-transform: uppercase; background: rgba(251, 249, 244, .15); color: var(--wp-paper); padding: 4px 8px; border-radius: 4px; }
.wpcm-tag--acc { background: var(--wp-acc); color: var(--wp-ink); }
a.wpcm-tag:hover { color: inherit; filter: brightness(1.08); }
.wpcm-hero__name { display: flex; align-items: flex-end; gap: 14px; }
.wpcm-hero__blason { width: 56px; height: 56px; object-fit: contain; background: rgba(255, 255, 255, .92); padding: 4px; border-radius: 8px; flex-shrink: 0; }
.wpcm-h1 { font-size: 60px; font-weight: 900; letter-spacing: -.035em; line-height: .95; text-wrap: balance; }
.wpcm-hero__sub { font-size: 16px; opacity: .9; }
.wpcm-hero__sub a { border-bottom: 1px solid rgba(251, 249, 244, .4); }
.wpcm-hero__sub a:hover { color: var(--wp-paper); }
.wpcm-hero__act { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.wpcm-hero__btn { font-size: 14px; font-weight: 700; padding: 11px 18px; border-radius: 999px; text-align: center; border: 1px solid rgba(251, 249, 244, .5); color: var(--wp-paper); }
.wpcm-hero__btn:hover { color: var(--wp-paper); border-color: var(--wp-paper); }
.wpcm-hero__btn.is-on { background: var(--wp-paper); color: var(--wp-ink); border-color: var(--wp-paper); }
.wpcm-hero__btn.is-on:hover { color: var(--wp-acc-2); }

.wpcm-stats { background: var(--wp-paper); border-bottom: 1px solid var(--wp-line); }
.wpcm-stats__in { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wpcm-stat { padding: 16px 20px; border-right: 1px solid var(--wp-line); display: flex; flex-direction: column; }
.wpcm-stat:first-child { padding-left: 0; }
.wpcm-stat:last-child { border-right: 0; }
.wpcm-stat strong { font-size: 28px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wpcm-stat span { font-size: 12px; color: var(--wp-muted); }
.wpcm-stat:hover strong { color: var(--wp-acc-2); }
.wpcm-tabs { position: sticky; top: 0; z-index: 20; }
.wpcm [id] { scroll-margin-top: 64px; }

.wpcm-today { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 24px; scroll-margin-top: 60px; }
.wpcm-today__c { background: var(--wp-paper); color: var(--wp-ink); border-radius: var(--wp-r-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wpcm-today__c .wp-kick { font-size: 10px; opacity: .85; }
.wpcm-today__c strong { font-size: 18px; font-weight: 900; line-height: 1.15; }
.wpcm-today__s { font-size: 13px; opacity: .8; }
.wpcm-today__c.is-dark { background: var(--wp-dark); color: var(--wp-on-dark); }
.wpcm-today__c.is-dark .wp-kick { color: var(--wp-on-dark-2); }
.wpcm-today__c:hover { color: inherit; box-shadow: var(--wp-shadow); }

.wpcm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding-top: 24px; padding-bottom: 40px; align-items: start; }
.wpcm-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.wpcm-sec { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 60px; min-width: 0; }
.wpcm-sec .wp-sh__t { font-size: 24px; }
.wpcm-sec .wp-sh--sm .wp-sh__t { font-size: 20px; }
.wpcm-empty { background: var(--wp-paper); border-radius: var(--wp-r); padding: 16px; font-size: 14px; color: var(--wp-ink-2); }

.wpcm-compose { background: var(--wp-paper); border-radius: var(--wp-r-lg); padding: 14px 16px; display: flex; gap: 10px; align-items: center; }
.wpcm-av { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--wp-line); flex-shrink: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--wp-ink-2); }
.wpcm-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpcm-compose__in { flex: 1; min-width: 0; background: var(--wp-sand); border-radius: 999px; padding: 11px 16px; font-size: 15px; color: var(--wp-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpcm-compose__in:hover { color: var(--wp-ink); }
.wpcm-compose .wp-chip { font-size: 13px; flex-shrink: 0; }

.wpcm-fil { display: flex; flex-direction: column; gap: 10px; }
.wpcm-fil__i { background: var(--wp-paper); border-radius: var(--wp-r); padding: 12px; display: flex; gap: 14px; align-items: center; }
.wpcm-fil__i.is-alert { box-shadow: inset 4px 0 0 var(--wp-danger); }
.wpcm-fil__img { width: 84px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--wp-sand-2); }
.wpcm-fil__img img { width: 100%; height: 100%; object-fit: cover; }
.wpcm-fil__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wpcm-fil__b .wp-kick { font-size: 10px; }
.wpcm-fil__t { font-size: 16px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wpcm-fil__i .wp-btn { flex-shrink: 0; }

.wpcm-agenda { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wpcm-ev { background: var(--wp-paper); border-radius: var(--wp-r); padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wpcm-ev__d { display: flex; gap: 6px; align-items: baseline; }
.wpcm-ev__d strong { font-size: 24px; font-weight: 900; line-height: 1; }
.wpcm-ev__d span { font: 400 10px var(--wp-mono); text-transform: uppercase; }
.wpcm-ev__t { font-size: 14px; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.wpcm-ev__s { font-size: 12px; color: var(--wp-muted); }
.wpcm-ev:hover { box-shadow: var(--wp-shadow); }

.wpcm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wpcm-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.wpcm-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--wp-line-2); padding-bottom: 7px; }
.wpcm-list li a { font-weight: 700; min-width: 0; }
.wpcm-list li span { color: var(--wp-muted); text-align: right; flex-shrink: 0; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpcm-more { font-size: 13px; font-weight: 700; }

.wpcm-shops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wpcm-shop { background: var(--wp-paper); border-radius: var(--wp-r); padding: 10px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.wpcm-shop__img { position: relative; width: 42px; height: 42px; border-radius: 8px; background: var(--wp-sand-2); flex-shrink: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--wp-ink-2); }
.wpcm-shop__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpcm-shop__b { min-width: 0; display: flex; flex-direction: column; }
.wpcm-shop__b strong { font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpcm-shop__b span { font-size: 12px; color: var(--wp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpcm-shop--add { border: 1px dashed var(--wp-dash); background: transparent; }

.wpcm-disc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wpcm-disc__c { background: var(--wp-paper); border-radius: var(--wp-r); overflow: hidden; display: flex; flex-direction: column; }
.wpcm-disc__c img { width: 100%; height: 110px; object-fit: cover; background: var(--wp-sand-2); }
.wpcm-disc__b { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.wpcm-disc__b .wp-kick { font-size: 10px; }
.wpcm-disc__t { font-size: 14px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.wpcm-trails { display: flex; gap: 8px; flex-wrap: wrap; }
.wpcm-trail { background: var(--wp-paper); padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.wpcm-trail--more { background: transparent; font-weight: 700; }

.wpcm-gaz { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.wpcm-gaz__c { background: var(--wp-paper); border-radius: var(--wp-r); overflow: hidden; display: flex; min-width: 0; }
.wpcm-gaz__c img { width: 45%; object-fit: cover; flex-shrink: 0; background: var(--wp-sand-2); }
.wpcm-gaz__b { padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wpcm-gaz__b .wp-kick { font-size: 10px; }
.wpcm-gaz__t { font-size: 15px; font-weight: 800; line-height: 1.25; }
.wpcm-gaz__c.is-lead .wpcm-gaz__t { font-size: 18px; }
.wpcm-gaz__c--add { border: 1px dashed var(--wp-dash); background: transparent; padding: 14px; font-size: 13px; color: var(--wp-ink-2); display: block; line-height: 1.45; }
.wpcm-gaz__c--add strong { color: var(--wp-ink); }
.wpcm-gaz:not(:has(.is-lead)) { grid-template-columns: minmax(0, 1fr); }

.wpcm-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wpcm-box { background: var(--wp-paper); color: var(--wp-ink); border-radius: var(--wp-r-lg); padding: 18px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 60px; }
.wpcm-box__t { font-size: 17px; font-weight: 800; line-height: 1.25; }
.wpcm-box__h { font-size: 16px; font-weight: 800; }
.wpcm-box__p { font-size: 13px; line-height: 1.5; color: var(--wp-ink-2); }
.wpcm-box__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wpcm-box__act { display: flex; gap: 6px; flex-wrap: wrap; }
.wpcm-box__act .wp-btn { flex: 1; justify-content: center; }
.wpcm-box__links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; font-weight: 700; }
.wpcm-box__links button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.wpcm-box__links button:hover { color: var(--wp-acc-2); }
.wpcm-mono { font: 400 12px var(--wp-mono); color: var(--wp-muted); }
.wpcm-kv { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.wpcm-kv li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--wp-line); padding-bottom: 7px; }
.wpcm-kv li:last-child { border-bottom: 0; padding-bottom: 0; }
.wpcm-kv li > :first-child { font-weight: 600; }
.wpcm-kv li > :last-child { color: var(--wp-muted); text-align: right; }
.wpcm-kv--plain li { border: 0; padding: 0; }
.wpcm-kv--plain li > :first-child { font-weight: 400; }
.wpcm-box--acc { background: var(--wp-acc); }
.wpcm-box--acc .wp-kick { color: var(--wp-ink); }
.wpcm-box--acc p { font-size: 15px; line-height: 1.4; }
.wpcm-box--acc .wpcm-box__links a:hover, .wpcm-box--acc .wpcm-box__links button:hover { color: var(--wp-paper); }
.wpcm-box--dark { background: var(--wp-dark); color: var(--wp-on-dark); background-image: var(--wp-furrow-dark-r); }
.wpcm-box--dark .wpcm-box__t { font-size: 18px; font-weight: 900; }
.wpcm-box--dark .wpcm-box__p { color: var(--wp-on-dark-2); }
.wpcm-box--dark .wp-strong { color: var(--wp-on-dark); font-size: 13px; }
.wpcm-box--dark:hover { color: var(--wp-on-dark); }
.wpcm-box--dark:hover .wp-strong { color: var(--wp-acc); }
.wpcm-box--dash { background: transparent; border: 2px dashed var(--wp-acc); }
.wpcm-hubs { display: flex; flex-wrap: wrap; gap: 6px; }
.wpcm-hubs a { font-size: 12px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--wp-line-2); }
.wpcm-hubs a:hover { border-color: var(--wp-ink); }
.wpcm-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.wpcm-photos img { width: 100%; height: 70px; object-fit: cover; border-radius: 6px; background: var(--wp-sand-2); }

.wpcm-claim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: start; scroll-margin-top: 60px; }
.wpcm-claim__pitch { display: flex; flex-direction: column; gap: 12px; }
.wpcm-claim__list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.wpcm-claim__list li::before { content: '✓'; color: var(--wp-ok); font-weight: 900; margin-right: 8px; }
.wpcm-claim__form { background: var(--wp-bg); border-radius: var(--wp-r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.wpcm-errors { background: #FBE9E4; color: var(--wp-danger); border-radius: var(--wp-r-sm); padding: 10px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.wpcm-note { background: var(--wp-sand); border-radius: var(--wp-r-sm); padding: 12px 14px; font-size: 14px; }
.wpcm-sheet__act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

@media (max-width: 1100px) {
  .wpcm-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .wpcm-agenda { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wpcm-shops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .wpcm-grid { grid-template-columns: minmax(0, 1fr); }
  .wpcm-today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wpcm-stats__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wpcm-stat:nth-child(3n) { border-right: 0; }
  .wpcm-stat:nth-child(3n + 1) { padding-left: 0; }
  .wpcm-stat:nth-child(-n + 3) { border-bottom: 1px solid var(--wp-line); }
  .wpcm-claim { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .wpcm-hero { height: auto; min-height: 300px; }
  .wpcm-hero__in { min-height: 300px; padding-top: 14px; padding-bottom: 18px; gap: 40px; }
  .wpcm-hero::after { background: linear-gradient(180deg, rgba(27, 26, 23, .35), rgba(27, 26, 23, .85)); }
  .wpcm-hero__row { flex-direction: column; align-items: stretch; gap: 14px; }
  .wpcm-h1 { font-size: 36px; }
  .wpcm-hero__blason { width: 42px; height: 42px; }
  .wpcm-hero__sub { font-size: 13px; }
  .wpcm-hero__act { flex-direction: row; }
  .wpcm-hero__act > * { flex: 1; padding: 10px 12px; font-size: 13px; }
  .wpcm-stats__in { display: flex; overflow-x: auto; scrollbar-width: none; }
  .wpcm-stats__in::-webkit-scrollbar { display: none; }
  .wpcm-stat, .wpcm-stat:nth-child(n) { flex: 0 0 auto; min-width: 110px; padding: 12px 14px; border-bottom: 0; border-right: 1px solid var(--wp-line); }
  .wpcm-stat:first-child { padding-left: 0; }
  .wpcm-stat strong { font-size: 22px; }
  .wpcm-tabs { background: var(--wp-paper); border-bottom: 1px solid var(--wp-line); }
  .wpcm-tabs .wp-subtabs__bar { display: flex; font-size: 14px; gap: 0; }
  .wpcm-tabs .wp-subtabs__i { padding: 11px 10px; }
  .wpcm-today { gap: 8px; padding-top: 16px; }
  .wpcm-today__c { padding: 12px; }
  .wpcm-today__c strong { font-size: 15px; }
  .wpcm-today__s { font-size: 12px; }
  .wpcm-grid { padding-top: 18px; gap: 22px; }
  .wpcm-compose { flex-wrap: wrap; padding: 12px; }
  .wpcm-compose__in { flex: 1 1 calc(100% - 50px); }
  .wpcm-compose .wp-chip { flex: 1; justify-content: center; }
  .wpcm-sec .wp-sh__t { font-size: 21px; }
  .wpcm-fil__i { padding: 10px; gap: 10px; flex-wrap: wrap; }
  .wpcm-fil__img { width: 64px; height: 52px; }
  .wpcm-fil__b { flex: 1 1 calc(100% - 80px); }
  .wpcm-fil__t { font-size: 15px; }
  .wpcm-fil__i .wp-btn { margin-left: 74px; }
  .wpcm-agenda, .wpcm-disc { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--wp-gut) * -1); padding: 0 var(--wp-gut) 4px; scroll-snap-type: x proximity; }
  .wpcm-agenda::-webkit-scrollbar, .wpcm-disc::-webkit-scrollbar { display: none; }
  .wpcm-ev { flex: 0 0 150px; scroll-snap-align: start; }
  .wpcm-disc__c { flex: 0 0 230px; scroll-snap-align: start; }
  .wpcm-two { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .wpcm-shops { grid-template-columns: minmax(0, 1fr); }
  .wpcm-shop:nth-child(n + 4):not(.wpcm-shop--add) { display: none; }
  .wpcm-gaz { grid-template-columns: minmax(0, 1fr); }
  .wpcm-gaz__c img { width: 38%; }
  .wpcm-claim__form { padding: 16px; }
  .wpcm-claim .wp-form-grid { grid-template-columns: minmax(0, 1fr); }
  .wp-sheet .wp-form-grid { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- 8c · Histoire de la commune · photos ---------- */

.wpch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-top: 24px; padding-bottom: 48px; align-items: start; }
.wpch-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wpch-h1 { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.wpch-lead { font-size: 15px; line-height: 1.55; color: var(--wp-ink-2); max-width: 760px; }
.wpch-stats { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.wpch-stats li { background: var(--wp-paper); border-radius: var(--wp-r-sm); padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.wpch-stats strong { font-size: 22px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.wpch-stats span { font-size: 11px; color: var(--wp-muted); }
.wpch-eras .wp-chip { font-size: 12px; }
.wpch-line { list-style: none; display: flex; flex-direction: column; border-left: 3px solid var(--wp-ink); margin: 8px 0 0 92px; }
.wpch-item { position: relative; padding: 0 0 18px 22px; }
.wpch-item__y { position: absolute; left: -100px; top: 2px; width: 82px; text-align: right; font-size: 14px; font-weight: 900; line-height: 1.2; }
.wpch-item__dot { position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--wp-faint); border: 3px solid var(--wp-bg); }
.wpch-item.is-hl .wpch-item__dot { background: var(--wp-acc); }
.wpch-item__c { background: var(--wp-paper); border-radius: var(--wp-r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.wpch-item__t { font-size: 16px; font-weight: 800; line-height: 1.25; }
.wpch-item__c p { font-size: 13px; line-height: 1.5; color: var(--wp-ink-2); }
.wpch-cta { background: var(--wp-acc); border-radius: var(--wp-r-lg); padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wpch-cta > div { display: flex; flex-direction: column; gap: 2px; }
.wpch-cta strong { font-size: 18px; font-weight: 900; line-height: 1.2; }
.wpch-cta span { font-size: 13px; }
.wpch-cta .wp-btn { flex-shrink: 0; }
.wpch-side { position: sticky; top: 64px; }
.wpch-cover { width: 100%; height: 200px; object-fit: cover; border-radius: var(--wp-r-lg); background: var(--wp-sand-2); }
.wpch-hl { border-top: 1px solid var(--wp-line); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.wpch-hl strong { font-size: 14px; }
.wpch-hl p { font-size: 13px; line-height: 1.5; color: var(--wp-ink-2); }
.wpch-src { font-size: 12px; color: var(--wp-muted); line-height: 1.5; }

.wpcp-in { padding-top: 24px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.wpcp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.wpcp-head > div { display: flex; flex-direction: column; gap: 8px; }
.wpcp-empty { max-width: 560px; align-items: flex-start; }
.wpcp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wpcp-ph { position: relative; border: 0; padding: 0; background: var(--wp-sand-2); border-radius: var(--wp-r); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; font: inherit; text-align: left; }
.wpcp-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wpcp-ph:hover img { transform: scale(1.04); }
.wpcp-ph__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: var(--wp-paper);
  background: linear-gradient(transparent, rgba(27, 26, 23, .78)); display: flex; flex-direction: column; gap: 1px;
}
.wpcp-ph__cap strong { font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpcp-ph__cap > span { font: 400 11px var(--wp-mono); opacity: .85; }

@media (max-width: 1023px) {
  .wpch-grid { grid-template-columns: minmax(0, 1fr); }
  .wpch-side { position: static; }
  .wpcp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wpch-grid { padding-top: 16px; gap: 24px; }
  .wpch-h1 { font-size: 30px; }
  .wpch-stats { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--wp-gut) * -1); padding: 0 var(--wp-gut); }
  .wpch-stats::-webkit-scrollbar { display: none; }
  .wpch-stats li { flex: 0 0 auto; min-width: 110px; }
  .wpch-eras { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--wp-gut) * -1); padding: 0 var(--wp-gut); }
  .wpch-eras::-webkit-scrollbar { display: none; }
  .wpch-eras .wp-chip { flex-shrink: 0; white-space: nowrap; }
  .wpch-line { margin-left: 6px; }
  .wpch-item { padding-left: 18px; }
  .wpch-item__y { position: static; display: block; width: auto; text-align: left; margin-bottom: 4px; color: var(--wp-acc-2); }
  .wpch-cta { flex-direction: column; align-items: stretch; }
  .wpcp-in { padding-top: 16px; }
  .wpcp-head .wp-btn { width: 100%; justify-content: center; }
  .wpcp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .wpcp-ph__cap strong { display: none; }
  .wpcp-ph__cap > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}