/* Gazette v4 : la une (9a), l’article (9b). */

/* ---------- 9a · La gazette ---------- */

.wpgz { padding-bottom: 48px; }
.wpgz-mast { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 28px; padding-bottom: 14px; text-align: center;
  background: linear-gradient(var(--wp-ink), var(--wp-ink)) center bottom / calc(100% - var(--wp-gut) * 2) 2px no-repeat; }
.wpgz-mast__t { font-size: 64px; font-weight: 900; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
.wpgz-mast__s { font: 500 12px/1.4 var(--wp-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--wp-muted); }

.wpgz-bar { display: flex; justify-content: center; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.wpgz-rubs { display: flex; gap: 8px; }
.wpgz-rubs .wp-chip { font-weight: 700; }
.wpgz-rubs .wp-chip span { font: 400 11px var(--wp-mono); opacity: .6; margin-left: 2px; }
.wpgz-search { width: 240px; }
.wpgz-commune .wp-select { border-radius: 999px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }

.wpgz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-top: 10px; align-items: start; }
.wpgz-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.wpgz-reset { font-size: 13px; }
.wpgz-k { font: 500 12px/1.35 var(--wp-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--wp-acc-2); }

.wpgz-lead { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.wpgz-lead img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--wp-r); background: var(--wp-sand-2); }
.wpgz-lead__c { display: flex; flex-direction: column; gap: 12px; }
.wpgz-lead__t { font-size: 38px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.wpgz-lead:hover .wpgz-lead__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wpgz-lead__x { font-size: 16px; line-height: 1.55; color: var(--wp-ink-2); }
.wpgz-by { font-size: 13px; color: var(--wp-muted); }

.wpgz-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; border-top: 2px solid var(--wp-ink); padding-top: 18px; }
.wpgz-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wpgz-card img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--wp-r-sm); background: var(--wp-sand-2); }
.wpgz-card .wpgz-k { font-size: 11px; }
.wpgz-card__t { font-size: 19px; font-weight: 800; line-height: 1.2; }
.wpgz-card:hover .wpgz-card__t { text-decoration: underline; text-underline-offset: 3px; }
.wpgz-card__x { font-size: 14px; line-height: 1.45; color: var(--wp-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.wpgz-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; border-top: 1px solid var(--wp-line-2, var(--wp-line)); padding-top: 12px; color: var(--wp-muted); }
.wpgz-pager__nav { display: flex; gap: 18px; }
.wpgz-pager__nav a { font-weight: 700; color: var(--wp-ink); }
.wpgz-pager__nav a:hover { text-decoration: underline; }

.wpgz-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wpgz-news { display: flex; flex-direction: column; gap: 8px; }
.wpgz-news__row { display: flex; gap: 6px; }
.wpgz-news__row input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 10px 14px; background: rgba(255, 255, 255, .1); color: var(--wp-bg); font: inherit; font-size: 13px; }
.wpgz-news__row input::placeholder { color: rgba(255, 255, 255, .5); }
.wpgz-news__row input:focus { outline: 2px solid var(--wp-acc); }
.wpgz-news__row button { border: 0; border-radius: 999px; background: var(--wp-acc); color: var(--wp-ink); font: 800 13px var(--wp-sans); padding: 10px 14px; cursor: pointer; }
.wpgz-news__ok { display: flex; gap: 6px; align-items: flex-start; font-size: 11px; color: rgba(255, 255, 255, .6); line-height: 1.4; }
.wpgz-news__ok input { margin-top: 2px; accent-color: var(--wp-acc); }
.wpgz-pop { list-style: none; display: flex; flex-direction: column; }
.wpgz-pop a { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--wp-line); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--wp-ink); }
.wpgz-pop li:last-child a { border-bottom: 0; }
.wpgz-pop a:hover { color: var(--wp-acc-2); }
.wpgz-pop span { flex: 0 0 20px; font-size: 22px; font-weight: 900; line-height: 1; color: var(--wp-acc-2); }
.wpgz-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.wpgz-tags a { padding: 6px 10px; border-radius: 999px; background: var(--wp-bg); color: var(--wp-ink); }
.wpgz-tags a:hover { background: var(--wp-sand-2); }
.wpgz-tags a.is-on { background: var(--wp-ink); color: var(--wp-paper); }
.wpgz-tags a span { font: 400 10px var(--wp-mono); opacity: .6; }

@media (max-width: 1100px) {
  .wpgz-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .wpgz-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wpgz-grid { grid-template-columns: minmax(0, 1fr); }
  .wpgz-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wpgz-mast { padding-top: 18px; align-items: flex-start; text-align: left; }
  .wpgz-mast__t { font-size: 38px; }
  .wpgz-mast__s { font-size: 10px; letter-spacing: .08em; }
  .wpgz-bar { justify-content: flex-start; }
  .wpgz-rubs { width: calc(100% + var(--wp-gut) * 2); margin: 0 calc(var(--wp-gut) * -1); padding: 0 var(--wp-gut); overflow-x: auto; scrollbar-width: none; }
  .wpgz-rubs::-webkit-scrollbar { display: none; }
  .wpgz-rubs .wp-chip { flex-shrink: 0; white-space: nowrap; }
  .wpgz-search { flex: 1 1 100%; width: auto; }
  .wpgz-commune { flex: 1 1 100%; }
  .wpgz-commune .wp-select { width: 100%; }
  .wpgz-lead { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wpgz-lead img { height: 220px; }
  .wpgz-lead__t { font-size: 28px; }
  .wpgz-list { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 4px; }
  .wpgz-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--wp-line); }
  .wpgz-card img { grid-row: 1 / span 2; width: 96px; height: 76px; }
  .wpgz-card__t { font-size: 16px; }
  .wpgz-card__x { display: none; }
  .wpgz-card .wpgz-k { font-size: 10px; }
  .wpgz-pager { flex-direction: column; align-items: stretch; text-align: center; }
  .wpgz-pager__nav { justify-content: space-between; }
  .wpgz-side { display: flex; }
}

/* ---------- 9b · Un article ---------- */

.wpar-preview { margin-top: 16px; background: var(--wp-acc); border-radius: var(--wp-r); padding: 12px 16px; font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wpar { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 56px; align-items: start; }
.wpar-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wpar-h1 { font-size: 44px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.wpar-lead { font-size: 19px; line-height: 1.55; color: var(--wp-ink-2); }
.wpar-by { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--wp-line-2); border-bottom: 1px solid var(--wp-line-2); padding: 12px 0; scroll-margin-top: 80px; }
.wpar-by__av { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--wp-sand-2); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.wpar-by__who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.wpar-by__who span { font-size: 12px; color: var(--wp-muted); }
.wpar-by__act { display: flex; gap: 6px; flex-wrap: wrap; }
.wpar-by__act form { margin: 0; }
.wpar-pill { font: 700 13px var(--wp-sans); border: 1px solid var(--wp-line-2); padding: 7px 12px; border-radius: 999px; background: var(--wp-paper); color: var(--wp-ink); cursor: pointer; white-space: nowrap; }
.wpar-pill:hover { border-color: var(--wp-ink); }
.wpar-pill.is-on { background: var(--wp-ink); border-color: var(--wp-ink); color: var(--wp-paper); }
.wpar-cover { margin: 0; }
.wpar-cover img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--wp-r); background: var(--wp-sand-2); display: block; }
.wpar-cover figcaption { font: 400 11px/1.4 var(--wp-mono); color: var(--wp-muted); margin-top: 6px; }

.wpar-body { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.75; color: #2A2924; }
.wpar-body.is-lg { font-size: 19px; }
.wpar-body.is-xl { font-size: 21px; }
.wpar-body > p { margin: 0; display: flow-root; }
.wpar-body p a, .wpar-body li a, .wpar-body td a, .wpar-src a { color: var(--wp-acc-2); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.wpar-body > .wpar-ref { margin-top: -10px; font-size: 15px; }
.wpar-ref a { font-weight: 700; }
.wpar-ref a::after { content: ' ↗'; display: inline-block; }
.wpar-ref span { font: 400 11px var(--wp-mono); color: var(--wp-muted); margin-left: 4px; }
.wpar-drop { float: left; font-size: 64px; font-weight: 900; line-height: .9; margin: 4px 10px 0 0; color: var(--wp-ink); }
.wpar-h2 { font-size: 24px; font-weight: 900; line-height: 1.2; margin-top: 6px; scroll-margin-top: 80px; color: var(--wp-ink); }
.wpar-h3 { font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--wp-ink); }
.wpar-quote { margin: 0; border-left: 4px solid var(--wp-acc); padding: 4px 0 4px 18px; font-size: 1.1em; font-weight: 600; font-style: italic; color: var(--wp-ink); }
.wpar-quote p { margin: 0; }
.wpar-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.wpar-table { overflow-x: auto; border-radius: var(--wp-r); background: var(--wp-paper); }
.wpar-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.wpar-table th, .wpar-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--wp-line); vertical-align: top; }
.wpar-table th { font-weight: 800; background: var(--wp-sand); }
.wpar-ess { background: var(--wp-paper); border-radius: var(--wp-r); padding: 16px 18px; display: flex; gap: 16px; align-items: center; border-left: 4px solid var(--wp-acc); }
.wpar-ess > div { flex: 1; min-width: 0; }
.wpar-ess .wpgz-k { font-size: 10px; }
.wpar-ess p { font-size: 15px; line-height: 1.5; margin: 0; }
.wpar-ess .wp-btn { flex-shrink: 0; }

.wpar-src { background: var(--wp-paper); border-radius: var(--wp-r); padding: 16px 18px; font-size: 13px; line-height: 1.6; color: var(--wp-ink-2); }
.wpar-src summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.wpar-src summary::-webkit-details-marker { display: none; }
.wpar-src__k { font-size: 10px; color: var(--wp-muted); }
.wpar-src__pre strong { color: var(--wp-ink); white-space: nowrap; }
.wpar-src__pre strong::after { content: ' ▾'; }
.wpar-src[open] .wpar-src__pre { display: none; }
.wpar-src__body { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.wpar-src__body p, .wpar-src__body .wpar-list { margin: 0; font-size: 13px; }
.wpar-src__body .wpar-h3, .wpar-src__body .wpar-h2 { font-size: 14px; margin: 4px 0 0; }

.wpar-tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.wpar-tags a { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--wp-line-2); }
.wpar-tags a:hover { border-color: var(--wp-ink); }
.wpar-ai { font-size: 12px; font-style: italic; color: var(--wp-muted); }

.wpar-com { background: var(--wp-paper); border-radius: var(--wp-r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 80px; }
.wpar-com__t { font-size: 20px; font-weight: 900; }
.wpar-com__empty, .wpar-com__hint { font-size: 14px; color: var(--wp-muted); }
.wpar-com__hint { font-size: 12px; }
.wpar-com__err { font-size: 14px; color: #B3261E; font-weight: 600; }
.wpar-com__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.wpar-com__i { display: flex; gap: 10px; scroll-margin-top: 90px; }
.wpar-com__i:target { background: var(--wp-sand); border-radius: var(--wp-r-sm); }
.wpar-com__av { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--wp-sand-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.wpar-com__who { font-size: 14px; font-weight: 700; }
.wpar-com__who span { font-weight: 400; font-size: 12px; color: var(--wp-muted); margin-left: 4px; }
.wpar-com__body { font-size: 15px; line-height: 1.5; white-space: pre-wrap; margin-top: 2px; }
.wpar-com__form { display: flex; gap: 8px; align-items: flex-end; }
.wpar-com__form textarea { flex: 1; min-width: 0; min-height: 44px; resize: vertical; border: 1px solid transparent; background: var(--wp-bg); border-radius: 22px; padding: 11px 16px; font: 400 14px/1.4 var(--wp-sans); color: var(--wp-ink); }
.wpar-com__form textarea:focus { outline: none; border-color: var(--wp-ink); background: var(--wp-paper); }

.wpar-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 72px; min-width: 0; }
.wpar-ev { border-top: 4px solid var(--wp-acc); }
.wpar-ev .wp-kick { color: var(--wp-muted); }
.wpar-ev > span:not(.wp-kick) { font-size: 13px; color: var(--wp-muted); }
.wpar-toc a { font-size: 14px; font-weight: 600; color: var(--wp-ink); padding: 4px 0; border-bottom: 1px solid var(--wp-line); }
.wpar-toc a:last-child { border-bottom: 0; }
.wpar-toc a:hover { color: var(--wp-acc-2); }
.wpar-also { display: flex; gap: 10px; align-items: center; }
.wpar-also img { flex: 0 0 62px; width: 62px; height: 48px; border-radius: var(--wp-r-sm); object-fit: cover; background: var(--wp-sand-2); }
.wpar-also span { display: flex; flex-direction: column; min-width: 0; }
.wpar-also strong { font-size: 14px; line-height: 1.3; color: var(--wp-ink); }
.wpar-also:hover strong { text-decoration: underline; }
.wpar-also small { font-size: 11px; color: var(--wp-muted); }
.wpar-place { display: flex; flex-direction: column; font-size: 14px; padding-bottom: 7px; border-bottom: 1px solid var(--wp-line); color: var(--wp-ink); }
.wpar-place:last-child { border-bottom: 0; padding-bottom: 0; }
.wpar-place small { font-size: 12px; color: var(--wp-muted); }
.wpar-shops { font-size: 14px; color: var(--wp-ink); }
.wpar-shops a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .wpar { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}
@media (max-width: 900px) {
  .wpar { grid-template-columns: minmax(0, 1fr); }
  .wpar-main { max-width: 680px; }
  .wpar-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wpar { padding-top: 16px; }
  .wpar-h1 { font-size: 30px; }
  .wpar-lead { font-size: 17px; }
  .wpar-by { flex-wrap: wrap; }
  .wpar-by__act { flex: 1 1 100%; }
  .wpar-by__act > * { flex: 1; }
  .wpar-by__act form .wpar-pill { width: 100%; }
  .wpar-by__act form { display: flex; }
  .wpar-cover { margin: 0 calc(var(--wp-gut) * -1); }
  .wpar-cover img { border-radius: 0; max-height: 280px; }
  .wpar-cover figcaption { padding: 0 var(--wp-gut); }
  .wpar-body { font-size: 16px; }
  .wpar-body.is-lg { font-size: 18px; }
  .wpar-body.is-xl { font-size: 20px; }
  .wpar-drop { font-size: 52px; }
  .wpar-ess { flex-direction: column; align-items: stretch; }
  .wpar-com { padding: 16px; margin: 0 calc(var(--wp-gut) * -1); border-radius: 0; }
  .wpar-side { display: flex; }
}
/* ---------- 9c · Les photos des Weppes et le concours ---------- */

.wpph { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.wpph-head { display: flex; align-items: flex-end; gap: 20px; }
.wpph-head > div { flex: 1; min-width: 0; }
.wpph-h1 { font-size: 46px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.wpph-lead { font-size: 16px; line-height: 1.5; color: var(--wp-ink-2); margin-top: 6px; max-width: 820px; }
.wpph-head .wp-btn { flex-shrink: 0; }

.wpph-contest { background: var(--wp-dark); color: var(--wp-bg); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); min-height: 280px; }
.wpph-contest--idle { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.wpph-contest__c { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.wpph-contest__t { font-size: 36px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.wpph-contest__c > p { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .72); max-width: 560px; }
.wpph-count { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.wpph-count > span { background: rgba(255, 255, 255, .08); border-radius: var(--wp-r-sm); padding: 10px 14px; text-align: center; min-width: 70px; display: flex; flex-direction: column; }
.wpph-count strong { font-size: 28px; font-weight: 900; line-height: 1.1; }
.wpph-count small { font: 400 10px var(--wp-mono); text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.wpph-contest__act { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.wpph-ghost { border: 1px solid rgba(255, 255, 255, .3); color: var(--wp-bg); background: transparent; }
.wpph-ghost:hover { border-color: var(--wp-bg); }
.wpph-mosaic { display: grid; gap: 3px; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; background: var(--wp-dark-2); }
.wpph-mosaic img { width: 100%; height: 100%; object-fit: cover; min-height: 0; background: var(--wp-dark-2); }
.wpph-mosaic--3 img:first-child { grid-row: span 2; grid-column: span 2; }
.wpph-mosaic--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.wpph-mosaic--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }

.wpph-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wpph-cats { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.wpph-cats .wp-chip { font-size: 13px; }
.wpph-sel .wp-select { border-radius: 999px; min-height: 36px; padding-top: 5px; padding-bottom: 5px; font-size: 13px; }

.wpph-wall { columns: 4; column-gap: 10px; }
.wpph-ph { position: relative; display: block; width: 100%; break-inside: avoid; margin: 0 0 10px; border: 0; padding: 0; border-radius: var(--wp-r); overflow: hidden; background: var(--wp-sand-2); cursor: zoom-in; font: inherit; text-align: left; }
.wpph-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wpph-ph:hover img { transform: scale(1.04); }
.wpph-ph__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; background: linear-gradient(transparent, rgba(27, 26, 23, .8)); color: var(--wp-paper); display: flex; flex-direction: column; gap: 2px; }
.wpph-ph__cap strong { font-size: 14px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpph-ph__cap > span { display: flex; justify-content: space-between; gap: 8px; font: 400 10px var(--wp-mono); }
.wpph-ph__cap > span > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpph-ph__cap [data-photo-like-badge] { flex-shrink: 0; }

.wpph-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wpph-who { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.wpph-who li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--wp-ink); }
.wpph-who li span:last-child { color: var(--wp-muted); white-space: nowrap; }

@media (max-width: 1100px) {
  .wpph-contest { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
  .wpph-wall { columns: 3; }
}
@media (max-width: 760px) {
  .wpph { padding-top: 18px; gap: 16px; }
  .wpph-head { flex-direction: column; align-items: stretch; }
  .wpph-h1 { font-size: 32px; }
  .wpph-lead { font-size: 15px; }
  .wpph-contest { grid-template-columns: minmax(0, 1fr); margin: 0 calc(var(--wp-gut) * -1); border-radius: 0; }
  .wpph-contest__c { padding: 20px var(--wp-gut); }
  .wpph-contest__t { font-size: 26px; }
  .wpph-count > span { flex: 1; min-width: 0; padding: 8px 6px; }
  .wpph-count strong { font-size: 22px; }
  .wpph-contest__act .wp-btn { flex: 1; justify-content: center; }
  .wpph-mosaic { height: 200px; order: -1; }
  .wpph-cats { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--wp-gut) * -1); padding: 0 var(--wp-gut); }
  .wpph-cats::-webkit-scrollbar { display: none; }
  .wpph-cats .wp-chip { flex-shrink: 0; white-space: nowrap; }
  .wpph-sel { flex: 1; }
  .wpph-sel .wp-select { width: 100%; }
  .wpph-wall { columns: 2; column-gap: 6px; }
  .wpph-ph { margin-bottom: 6px; }
  .wpph-ph__cap strong { font-size: 12px; }
  .wpph-foot { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- 9d · Trophée des communes ---------- */

.wptr { max-width: 980px; padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.wptr-head { display: flex; flex-direction: column; gap: 8px; }
.wptr-h1 { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.wptr-lead { font-size: 15px; line-height: 1.55; color: var(--wp-ink-2); max-width: 760px; }
.wptr-mine { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: var(--wp-paper); border: 2px solid var(--wp-acc); border-radius: var(--wp-r); padding: 10px 14px; font-size: 14px; }
.wptr-mine > span:first-child { font: 500 11px var(--wp-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--wp-muted); }
.wptr-mine strong { font-size: 16px; }
.wptr-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
.wptr-pod { background: var(--wp-paper); border-radius: var(--wp-r-lg); padding: 16px; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 0; transition: transform .15s; }
.wptr-pod:hover { transform: translateY(-2px); }
.wptr-pod--1 { height: 190px; background: var(--wp-acc); }
.wptr-pod--2 { height: 150px; }
.wptr-pod--3 { height: 130px; }
.wptr-pod.is-mine { box-shadow: inset 0 0 0 2px var(--wp-ink); }
.wptr-pod__r { font-size: 40px; font-weight: 900; line-height: 1; }
.wptr-pod strong { font-size: 17px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.wptr-pod__v { font: 500 12px var(--wp-mono); }
.wptr-rank { background: var(--wp-paper); border-radius: var(--wp-r-lg); padding: 6px 16px; }
.wptr-row { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--wp-line); }
.wptr-row:hover .wptr-row__n { text-decoration: underline; }
.wptr-row.is-mine { background: var(--wp-sand); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.wptr-row__r { width: 26px; font-size: 18px; font-weight: 900; flex-shrink: 0; }
.wptr-row__n { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wptr-row__bar { width: 200px; height: 8px; border-radius: 4px; background: var(--wp-sand); overflow: hidden; flex-shrink: 0; }
.wptr-row__bar span { display: block; height: 100%; background: var(--wp-acc); border-radius: 4px; }
.wptr-row__v { width: 60px; text-align: right; font: 500 12px var(--wp-mono); flex-shrink: 0; }
.wptr-more summary { list-style: none; cursor: pointer; text-align: center; font-size: 13px; font-weight: 700; padding: 10px; }
.wptr-more summary::-webkit-details-marker { display: none; }
.wptr-more[open] summary { display: none; }
.wptr-rank > .wptr-row:last-of-type, .wptr-more .wptr-row:last-child { border-bottom: 0; }
.wptr-note { font-size: 13px; color: var(--wp-muted); }

.wptr-contests { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.wptr-group__t { font: 500 12px var(--wp-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--wp-muted); margin-bottom: 8px; }
.wptr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wptr-tile { background: var(--wp-paper); border-radius: var(--wp-r); padding: 14px; display: flex; flex-direction: column; gap: 3px; border: 1px solid transparent; scroll-margin-top: 80px; }
.wptr-tile:hover { border-color: var(--wp-line-2); }
.wptr-tile.is-on { border-color: var(--wp-acc); }
.wptr-tile strong { font-size: 15px; font-weight: 800; line-height: 1.25; }
.wptr-tile span { font-size: 12px; color: var(--wp-muted); }
.wptr-tile b { color: var(--wp-ink); }

.wptr-cta { background: var(--wp-acc); border-radius: var(--wp-r-lg); padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wptr-cta strong { font-size: 15px; font-weight: 700; line-height: 1.35; }
.wptr-cta__act { display: flex; gap: 6px; flex-shrink: 0; }
.wptr-cta .wp-btn--line { border-color: var(--wp-ink); }
.wptr-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wptr-mandat { margin-top: 8px; }
.wptr-extra .wp-btn { align-self: flex-start; }
.wptr-names { list-style: none; counter-reset: n; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.wptr-names li { counter-increment: n; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--wp-ink); border-bottom: 1px solid var(--wp-line); padding: 4px 0; }
.wptr-names li span:first-child::before { content: counter(n) '. '; color: var(--wp-muted); }
.wptr-names li span:last-child { font: 400 12px var(--wp-mono); color: var(--wp-muted); }

@media (max-width: 760px) {
  .wptr { padding-top: 16px; }
  .wptr-h1 { font-size: 30px; }
  .wptr-podium { gap: 6px; }
  .wptr-pod { padding: 10px 6px; }
  .wptr-pod--1 { height: 160px; }
  .wptr-pod--2 { height: 130px; }
  .wptr-pod--3 { height: 112px; }
  .wptr-pod__r { font-size: 30px; }
  .wptr-pod strong { font-size: 13px; }
  .wptr-pod__v { font-size: 10px; }
  .wptr-rank { padding: 4px 12px; }
  .wptr-row { gap: 10px; }
  .wptr-row.is-mine { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .wptr-row__bar { width: 70px; }
  .wptr-row__v { width: 44px; }
  .wptr-row__n { font-size: 14px; }
  .wptr-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .wptr-tile { padding: 12px; }
  .wptr-tile strong { font-size: 13px; }
  .wptr-cta { flex-direction: column; align-items: stretch; }
  .wptr-cta__act .wp-btn { flex: 1; justify-content: center; }
  .wptr-extra { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Concours photo ---------- */

.wpcc { padding-top: 20px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.wpcc .wpph-contest__t { font-size: 40px; }
.wpcc-meta { font: 400 12px var(--wp-mono) !important; color: rgba(255, 255, 255, .6) !important; }
.wpcc-cd { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.wpcc-cd__label { font: 500 11px var(--wp-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--wp-acc); }
.wpcc-cd__until { font-size: 12px; color: rgba(255, 255, 255, .6); }
.wpcc-cd.is-over .wpph-count { opacity: .5; }
.wpcc-ghost { background: transparent; color: var(--wp-bg); border: 1px solid rgba(255, 255, 255, .3); }
.wpcc-ghost:hover { border-color: var(--wp-bg); }
.wpcc .wpph-mosaic--1 img { max-height: 420px; }
.wpcc-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--wp-paper); border: 2px solid var(--wp-acc); border-radius: var(--wp-r); padding: 12px 16px; font-size: 14px; font-weight: 600; }
.wpcc-now b { margin-left: auto; }
.wpcc-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wpcc-stats li { background: var(--wp-paper); border-radius: var(--wp-r); padding: 12px 14px; font-size: 13px; color: var(--wp-ink-2); }
.wpcc-stats strong { display: block; font-size: 24px; font-weight: 900; color: var(--wp-ink); line-height: 1.1; }
.wpcc-h2 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.wpcc-h3 { font-size: 19px; font-weight: 800; line-height: 1.2; }
.wpcc-note { background: var(--wp-sand); border-radius: var(--wp-r-sm); padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.wpcc-note--err { background: #fbe4dc; }
.wpcc-hint { font-size: 12px; color: var(--wp-muted); line-height: 1.45; }
.wpcc-textbtn { background: none; border: 0; padding: 0; font: 600 13px var(--wp-sans); color: var(--wp-muted); text-decoration: underline; cursor: pointer; }
.wpcc-textbtn:hover { color: var(--wp-ink); }

.wpcc-feat { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; background: var(--wp-paper); border-radius: var(--wp-r-lg); overflow: hidden; }
.wpcc-feat__m { background: var(--wp-sand); min-height: 260px; }
.wpcc-feat__m img { width: 100%; height: 100%; max-height: 560px; object-fit: contain; display: block; }
.wpcc-feat__b { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.wpcc-podium { display: flex; flex-direction: column; gap: 10px; }
.wpcc-podium__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.wpcc-podium__i { background: var(--wp-paper); border-radius: var(--wp-r-lg); overflow: hidden; }
.wpcc-podium__i--1 { box-shadow: 0 0 0 3px var(--wp-acc); }
.wpcc-podium__i .wpcc-card__m { position: relative; }
.wpcc-podium__i .wpcc-rank { position: absolute; top: 10px; left: 10px; }
.wpcc-prize-won { font-size: 13px; font-weight: 700; }
.wpcc-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--wp-ink); color: var(--wp-bg); font-size: 14px; font-weight: 900; }
.wpcc-rank--1 { background: var(--wp-acc); color: var(--wp-ink); }

.wpcc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.wpcc-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.wpcc-side { display: flex; flex-direction: column; gap: 14px; }
.wpcc-side .wp-box, .wpup-side .wp-box { scroll-margin-top: 90px; }
.wpcc-prize img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--wp-r-sm); background: var(--wp-sand); }
.wpcc-prize__t { font-size: 15px; color: var(--wp-ink); }
.wpcc-rules { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.wpcc-rules b { color: var(--wp-ink); }
.wpcc-eds { list-style: none; display: flex; flex-direction: column; }
.wpcc-eds a { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--wp-line); }
.wpcc-eds a:hover b { text-decoration: underline; }
.wpcc-eds b { font-size: 14px; color: var(--wp-ink); }
.wpcc-eds span:not(.wp-kick) { font-size: 12px; color: var(--wp-muted); }

.wpcc-mine { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; background: var(--wp-paper); border: 2px solid var(--wp-acc); border-radius: var(--wp-r-lg); padding: 16px; scroll-margin-top: 90px; }
.wpcc-mine__m img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--wp-r); background: var(--wp-sand); display: block; }
.wpcc-mine__b { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: 14px; line-height: 1.5; }
.wpcc-link { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.wpcc-link__row { display: flex; gap: 6px; }
.wpcc-link__row .wp-input { flex: 1; min-width: 0; font: 400 12px var(--wp-mono); }

.wpcc-gal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.wpcc-gal-head p { font-size: 13px; color: var(--wp-ink-2); margin-top: 4px; max-width: 620px; line-height: 1.5; }
.wpcc-sort { display: flex; gap: 6px; }
#galerie { scroll-margin-top: 90px; }
.wpcc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wpcc-card { background: var(--wp-paper); border-radius: var(--wp-r-lg); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.wpcc-card:target { box-shadow: 0 0 0 3px var(--wp-acc); }
.wpcc-card__m { display: block; background: var(--wp-sand); }
.wpcc-card__m img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.wpcc-card__b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wpcc-card__t { font-size: 15px; font-weight: 800; line-height: 1.25; }
.wpcc-card__cap { font-size: 13px; color: var(--wp-ink-2); line-height: 1.45; }
.wpcc-author { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--wp-muted); min-width: 0; }
.wpcc-author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--wp-sand); flex-shrink: 0; }
.wpcc-author b { color: var(--wp-ink); font-weight: 700; }
.wpcc-vote { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.wpcc-vote__n { font: 500 12px var(--wp-mono); color: var(--wp-ink-2); }
.wpcc-vote__mine { font-size: 12px; font-weight: 700; color: var(--wp-acc-2); }
.wpcc-vote .wp-btn[disabled] { opacity: .45; cursor: not-allowed; }
.wpcc-share { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--wp-line); font-size: 12px; }
.wpcc-share span { font: 500 10px var(--wp-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--wp-faint); }
.wpcc-share a, .wpcc-share button { background: none; border: 0; padding: 0; font: 600 12px var(--wp-sans); color: var(--wp-ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--wp-line-2); text-underline-offset: 3px; }
.wpcc-share a:hover, .wpcc-share button:hover { text-decoration-color: var(--wp-ink); }
.wpcc-share .is-copied { color: var(--wp-acc-2); }

/* ---------- Formulaires de dépôt photo ---------- */

.wpup { padding-top: 20px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.wpup-head { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.wpup-h1 { font-size: 36px; font-weight: 900; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.wpup-head p { font-size: 15px; line-height: 1.55; color: var(--wp-ink-2); }
.wpup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.wpup-form { background: var(--wp-paper); border-radius: var(--wp-r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.wpup-form .wp-label small { font-weight: 400; color: var(--wp-muted); }
.wpup-err { background: #fbe4dc; border-radius: var(--wp-r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.wpup-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.wpup-side { display: flex; flex-direction: column; gap: 14px; }
.photo-contribute__warn { font-size: 13px; line-height: 1.45; background: #fbe4dc; border-radius: var(--wp-r-sm); padding: 8px 12px; margin-top: -6px; }
.photo-contribute__warn--info { background: var(--wp-sand); }

@media (max-width: 1023px) {
  .wpcc-grid, .wpup-grid { grid-template-columns: minmax(0, 1fr); }
  .wpcc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wpcc-feat { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .wpcc, .wpup { padding-top: 14px; gap: 14px; }
  .wpcc .wpph-contest__t { font-size: 28px; }
  .wpcc .wpph-count > span { min-width: 0; flex: 1; padding: 8px 4px; }
  .wpcc .wpph-count strong { font-size: 22px; }
  .wpcc .wpph-count { flex-wrap: nowrap; gap: 6px; }
  .wpcc .wpph-contest__act .wp-btn { flex: 1; justify-content: center; }
  .wpcc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .wpcc-stats strong { font-size: 20px; }
  .wpcc-podium__list { grid-template-columns: minmax(0, 1fr); }
  .wpcc-cards { grid-template-columns: minmax(0, 1fr); }
  .wpcc-mine { grid-template-columns: minmax(0, 1fr); }
  .wpcc-mine__m img { aspect-ratio: 4 / 3; }
  .wpcc-h2 { font-size: 21px; }
  .wpup-h1 { font-size: 28px; }
  .wpup-form { padding: 16px; }
  .wpup-form .wp-form-grid { grid-template-columns: minmax(0, 1fr); }
  .wpup-act .wp-btn { flex: 1; justify-content: center; }
}.wpup-short { min-height: 64px; }
.wpup-body { min-height: 320px; line-height: 1.6; }
.wpup-fixed { padding: 11px 14px; border-radius: var(--wp-r-sm); background: var(--wp-sand); font-size: 14px; font-weight: 700; }
.wpup-file { padding: 9px 10px; font-size: 13px; }
.wpup-file::file-selector-button { border: 0; border-radius: 999px; background: var(--wp-dark); color: var(--wp-bg); padding: 6px 12px; margin-right: 10px; font: 600 12px var(--wp-sans); cursor: pointer; }
.wp-box--acc .wpcc-rules, .wp-box--acc p { color: var(--wp-ink); }