/* Régie publicitaire : /publicite et /mes-publicites */

.wp-pub-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; }
.wp-pub-hero .wp-h1 { max-width: 640px; }
.wp-pub-hero .wp-lead { max-width: 620px; }
.wp-pub-hero__stats { padding: 6px 0 4px; }
.wp-pub-hero__demo { margin: 0; justify-self: end; width: 100%; max-width: 340px; transform: rotate(1.2deg); }
.wp-pub-hero__demo .wp-ad__box { box-shadow: 0 18px 40px -18px rgba(27, 26, 23, .45); }

.wp-pub-offer__hd { justify-content: space-between; }
.wp-pub-offer .wp-h3 { min-height: 2.3em; }
.wp-pub-offer__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wp-pub-offer__price b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.wp-pub-offer__price span { font-size: 13px; color: var(--wp-muted); }
.wp-pub-offer .wp-btn { margin-top: auto; }
.wp-pub-ticks { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.35; color: var(--wp-ink-2); }
.wp-pub-ticks li { position: relative; padding-left: 22px; }
.wp-pub-ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--wp-ok); font-weight: 700; }

.wp-pub-inv { overflow-x: auto; background: var(--wp-paper); border: 1px solid var(--wp-line); border-radius: var(--wp-r-lg); }
.wp-pub-inv table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
.wp-pub-inv th, .wp-pub-inv td { padding: 12px 14px; border-bottom: 1px solid var(--wp-line); text-align: left; white-space: nowrap; }
.wp-pub-inv thead th { font: 400 11px var(--wp-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--wp-muted); }
.wp-pub-inv tbody tr:last-child > * { border-bottom: 0; }
.wp-pub-inv tbody th { font-weight: 700; }
.wp-pub-inv__c { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.wp-pub-inv__c.is-free { background: #DDEAD9; color: var(--wp-ok); }
.wp-pub-inv__c.is-last { background: var(--wp-acc-soft, #FBE3D0); color: var(--wp-acc-2); }
.wp-pub-inv__c.is-full { background: var(--wp-sand); color: var(--wp-faint); }

.wp-pub-book { align-items: start; }
.wp-pub-aside { position: sticky; top: 90px; }
.wp-pub-aside .wp-ad { max-width: none; }
.wp-pub-form fieldset { border: 0; padding: 0; margin: 0; }
.wp-pub-form [hidden] { display: none !important; }
.wp-pub-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wp-pub-choice { position: relative; display: block; cursor: pointer; }
.wp-pub-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wp-pub-choice > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border: 1px solid var(--wp-line-2); border-radius: var(--wp-r); background: var(--wp-paper); transition: border-color .15s, box-shadow .15s; }
.wp-pub-choice b { font-size: 14px; line-height: 1.25; }
.wp-pub-choice small { font-size: 13px; color: var(--wp-muted); }
.wp-pub-choice input:checked + span { border-color: var(--wp-ink); box-shadow: inset 0 0 0 1px var(--wp-ink); }
.wp-pub-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(236, 122, 36, .35); }
.wp-pub-file { padding: 9px 12px; }
.wp-hint--err { color: var(--wp-danger); font-weight: 600; }
.wp-pub-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--wp-ink-2); }

/* Mes publicités */
.wp-pub-list { display: flex; flex-direction: column; gap: 14px; }
.wp-pub-row { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.wp-pub-row__main { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.wp-pub-row--open .wp-pub-row__main { align-items: start; }
.wp-pub-row__img { border-radius: var(--wp-r); overflow: hidden; aspect-ratio: 6 / 5; background: var(--wp-sand); }
.wp-pub-row__img img { width: 100%; height: 100% !important; object-fit: cover; }
.wp-pub-row__t { font-size: 18px; font-weight: 800; line-height: 1.2; }
.wp-pub-row__nums { display: flex; gap: 22px; }
.wp-pub-row__nums .wp-stat__n { font-size: 22px; white-space: nowrap; }
.wp-pub-spark { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin-top: 6px; }
.wp-pub-spark span { flex: 1; min-width: 2px; background: var(--wp-dark-2, #3A5A40); border-radius: 2px 2px 0 0; opacity: .75; }
.wp-pub-note { font-size: 13px; padding: 8px 12px; border-radius: var(--wp-r); background: var(--wp-sand); color: var(--wp-ink-2); }
.wp-pub-row__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wp-pub-row__acts form { margin: 0; }
.wp-pub-edit { margin: 0; padding-top: 16px; border-top: 1px solid var(--wp-line); min-width: 0; }

@media (max-width: 960px) {
  .wp-pub-hero__in { grid-template-columns: 1fr; gap: 28px; }
  .wp-pub-hero__demo { justify-self: start; transform: none; }
  .wp-pub-offers { grid-template-columns: 1fr; }
  .wp-pub-book { grid-template-columns: 1fr; }
  .wp-pub-aside { position: static; }
}

@media (max-width: 760px) {
  .wp-pub-hero .wp-h1 { font-size: 34px; }
  .wp-pub-hero__stats { gap: 16px 22px; }
  .wp-pub-choices { grid-template-columns: 1fr; }
  .wp-pub-form .wp-form-grid { grid-template-columns: 1fr; }
  .wp-pub-row__main { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .wp-pub-row__side { grid-column: 1 / -1; }
}
