/* Fiche événement v4 : maquettes 5b (ordinateur) et 5d (mobile). */

.wpe { padding-bottom: 40px; }
.wpe-crumbs { padding-top: 20px; }

/* Bandeau photo */
.wpe-hero { margin-top: 14px; position: relative; height: 340px; border-radius: 16px; overflow: hidden; background: var(--wp-dark); }
.wpe-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpe-hero--poster .wpe-hero__img { object-fit: contain; background: #0B3F2C; }
.wpe-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 26, 23, .05) 20%, rgba(27, 26, 23, .88) 100%); }
.wpe-hero__in { position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; align-items: flex-end; gap: 20px; color: #FBF9F4; }
.wpe-date { width: 96px; border-radius: 14px; background: var(--wp-acc); color: var(--wp-ink); text-align: center; padding: 10px 0; flex-shrink: 0; display: flex; flex-direction: column; }
.wpe-date span { font: 500 11px/1.3 var(--wp-mono); text-transform: uppercase; }
.wpe-date b { font-size: 40px; font-weight: 900; line-height: 1; }
.wpe-hero__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wpe-hero__chip { display: none; }
.wpe-hero__k { font: 500 12px/1.3 var(--wp-mono); text-transform: uppercase; letter-spacing: .08em; }
.wpe-h1 { font-size: 50px; font-weight: 900; letter-spacing: -.03em; line-height: 1; text-wrap: balance; color: #FBF9F4; }
.wpe-hero__line { font-size: 16px; opacity: .9; margin: 0; }

/* Barre d’actions */
.wpe-bar { display: flex; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--wp-line-2); align-items: center; flex-wrap: wrap; }
.wpe-bar__sp { flex: 1; }
.wpe-bar__n { font-size: 13px; color: var(--wp-muted); }
.wpe-form { margin: 0; display: contents; }
.wpe-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 999px;
  background: var(--wp-paper); border: 1px solid var(--wp-line-2); color: var(--wp-ink); font: 700 14px/1 var(--wp-sans); cursor: pointer; white-space: nowrap;
}
.wpe-pill:hover { border-color: var(--wp-ink); color: var(--wp-ink); }
.wpe-pill--acc { background: var(--wp-acc); border-color: var(--wp-acc); padding: 11px 20px; }
.wpe-pill--acc:hover { background: var(--wp-acc-2); border-color: var(--wp-acc-2); }
.wpe-pill--acc.is-on { background: var(--wp-ink); border-color: var(--wp-ink); color: var(--wp-paper); }
.wpe-pill--ink-line { border-color: var(--wp-ink); background: transparent; }
.wpe-pill .lw-icon { font-size: 16px; }
.wpe-quick { display: none; }

/* Grille */
.wpe-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-top: 20px; align-items: start; }
.wpe-main, .wpe-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wpe-aside { gap: 16px; }
.wpe-card { background: var(--wp-paper); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.wpe-main > .wpe-card:first-child { padding: 24px; gap: 14px; }
.wpe-card__hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wpe-card__hd a { font-size: 13px; font-weight: 700; color: var(--wp-ink); }
.wpe-h2 { font-size: 24px; font-weight: 900; }
.wpe-h3 { font-size: 20px; font-weight: 900; line-height: 1.15; }
.wpe-h4 { font-size: 16px; font-weight: 800; }
.wpe-muted { font-size: 14px; color: var(--wp-muted); margin: 0; }
.wpe-muted a { font-weight: 700; color: var(--wp-ink); }
.wpe-desc { font-size: 17px; line-height: 1.6; color: var(--wp-ink-2); display: flex; flex-direction: column; gap: 10px; }
.wpe-desc p { margin: 0; overflow-wrap: anywhere; }
.wpe-desc a { color: var(--wp-acc-2); font-weight: 600; }
.wpe-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.wpe-fact { background: var(--wp-bg, #F4F0E8); border-radius: 10px; padding: 12px; min-width: 0; }
.wpe-fact dt { font: 400 10px/1.3 var(--wp-mono); text-transform: uppercase; color: var(--wp-muted); }
.wpe-fact dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.wpe-fact.is-unknown dd { color: var(--wp-faint); font-weight: 600; }
.wpe-src { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; border-top: 1px solid var(--wp-line); padding-top: 12px; color: var(--wp-muted); }
.wpe-src__links { font-weight: 700; color: var(--wp-ink); }
.wpe-src__links a { color: var(--wp-ink); }
.wpe-src__links a:hover { color: var(--wp-acc-2); }

.wpe-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wpe-people { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; }
.wpe-avatars { display: flex; flex-shrink: 0; }
.wpe-avatars img, .wpe-avatars__empty { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--wp-paper); margin-right: -8px; object-fit: cover; background: var(--wp-sand-2); }
.wpe-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.wpe-btns .wpe-pill { padding: 8px 14px; font-size: 13px; }
.wpe-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--wp-ink-2); max-height: 220px; overflow-y: auto; }
.wpe-ask { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--wp-ink); }
.wpe-ask input, .wpe-ask > span { flex: 1; min-width: 0; background: var(--wp-bg, #F4F0E8); border: 0; border-radius: 999px; padding: 10px 14px; font: 400 14px/1.2 var(--wp-sans); color: var(--wp-ink); }
.wpe-ask > span { color: var(--wp-faint); }
.wpe-ask button, .wpe-ask > b { background: var(--wp-ink); color: var(--wp-paper); font: 700 13px/1 var(--wp-sans); padding: 11px 14px; border-radius: 999px; border: 0; cursor: pointer; }
.wpe-shops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wpe-shops a { border: 1px solid var(--wp-line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; color: var(--wp-ink); min-width: 0; }
.wpe-shops a:hover { border-color: var(--wp-ink); color: var(--wp-ink); }
.wpe-shops b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpe-shops span { font-size: 12px; color: var(--wp-muted); }

/* Colonne */
.wpe-map { padding: 0; overflow: hidden; gap: 0; }
.wpe-map__canvas { height: 160px; background: #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: 24px 24px; }
.wpe-map__pad { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.wpe-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wpe-next li { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--wp-line); padding-bottom: 8px; }
.wpe-next b { font-size: 20px; font-weight: 900; width: 28px; flex-shrink: 0; }
.wpe-next a { display: flex; flex-direction: column; min-width: 0; color: var(--wp-ink); }
.wpe-next a:hover { color: var(--wp-acc-2); }
.wpe-next a span { font-size: 14px; font-weight: 700; line-height: 1.25; }
.wpe-next small { font-size: 12px; color: var(--wp-muted); }
.wpe-link { font-size: 13px; font-weight: 700; color: var(--wp-ink); }
.wpe-link:hover { color: var(--wp-acc-2); }
.wpe-cta { background: var(--wp-dark); color: var(--wp-on-dark); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.wpe-cta__k { font: 500 11px/1.3 var(--wp-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--wp-acc); }
.wpe-cta b { font-size: 17px; font-weight: 800; line-height: 1.2; }
.wpe-cta a { background: var(--wp-acc); color: var(--wp-ink); font-weight: 800; font-size: 14px; text-align: center; padding: 10px; border-radius: 999px; }
.wpe-cta a:hover { background: var(--wp-paper); color: var(--wp-ink); }
.wpe-sticky { display: none; }

@media (max-width: 1100px) {
  .wpe-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
  .wpe-h1 { font-size: 40px; }
  .wpe-duo { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .wpe-grid { grid-template-columns: minmax(0, 1fr); }
  .wpe-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}

/* ---------- Mobile (maquette 5d) ---------- */
@media (max-width: 760px) {
  .wpe { padding-bottom: 90px; }
  .wpe-crumbs { display: none; }
  .wpe-hero { margin: 0 calc(var(--wp-gut) * -1); height: 280px; border-radius: 0; }
  .wpe-hero__shade { background: linear-gradient(180deg, rgba(27, 26, 23, .3), rgba(27, 26, 23, .88)); }
  .wpe-hero__in { left: 16px; right: 16px; bottom: 16px; }
  .wpe-date, .wpe-hero__k { display: none; }
  .wpe-hero__chip { display: inline-block; align-self: flex-start; background: var(--wp-acc); color: var(--wp-ink); border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 800; }
  .wpe-h1 { font-size: 28px; line-height: 1.02; letter-spacing: -.02em; }
  .wpe-hero__line { font-size: 13px; opacity: .85; }

  .wpe-bar { display: none; }
  .wpe-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 0; }
  .wpe-quick a { background: var(--wp-paper); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--wp-ink); }
  .wpe-quick .lw-icon { font-size: 20px; }

  .wpe-grid { display: flex; flex-direction: column; gap: 12px; padding-top: 0; }
  .wpe-main { gap: 12px; }
  .wpe-card, .wpe-main > .wpe-card:first-child { padding: 16px; gap: 10px; }
  .wpe-main > .wpe-card:first-child .wpe-h2 { display: none; }
  .wpe-desc { font-size: 14px; line-height: 1.5; }
  .wpe-facts { grid-template-columns: 1fr; gap: 0; background: var(--wp-bg, #F4F0E8); border-radius: 12px; padding: 4px 12px; }
  .wpe-fact { background: transparent; padding: 7px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--wp-line); border-radius: 0; }
  .wpe-fact:last-child { border-bottom: 0; }
  .wpe-fact dt { font: 400 13px/1.3 var(--wp-sans); text-transform: none; }
  .wpe-fact dd { margin: 0; font-size: 13px; text-align: right; }
  .wpe-fact.is-unknown { display: none; }
  .wpe-src { font-size: 12px; }
  .wpe-h3 { font-size: 17px; }
  .wpe-shops { grid-template-columns: 1fr; }
  .wpe-aside { display: flex; }

  .wpe-sticky {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: calc(var(--wp-tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 30;
    padding: 12px 16px; background: rgba(251, 249, 244, .97); border-top: 1px solid var(--wp-line);
  }
  .wpe-sticky .wpe-form { display: contents; }
  .wpe-sticky__go { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--wp-acc); color: var(--wp-ink); border: 0; border-radius: 999px; padding: 13px; font: 700 14px/1 var(--wp-sans); cursor: pointer; }
  .wpe-sticky__go.is-on { background: var(--wp-ink); color: var(--wp-paper); }
  .wpe-sticky__ics { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--wp-line-2); border-radius: 999px; padding: 0 16px; color: var(--wp-ink); }
  .wpe-sticky__ics .lw-icon { font-size: 20px; }
}
