/* ============================================================
   PG Questionnaires — Theme Compatibility (PG Portfolio)
   ============================================================ */

/* NEUTRALISE le hard reset du plugin */
body.pgq-fullwidth { background: inherit !important; }
body.pgq-fullwidth #page, body.pgq-fullwidth .site,
body.pgq-fullwidth .site-content, body.pgq-fullwidth .entry-content,
body.pgq-fullwidth .page-content, body.pgq-fullwidth main,
body.pgq-fullwidth article, body.pgq-fullwidth .wp-block-post-content {
  max-width: none !important; padding: inherit !important; margin: inherit !important;
}
body.pgq-fullwidth header.site-header, body.pgq-fullwidth .site-header,
body.pgq-fullwidth footer.site-footer, body.pgq-fullwidth .site-footer,
body.pgq-fullwidth .wp-site-blocks>header, body.pgq-fullwidth .wp-site-blocks>footer,
body.pgq-fullwidth nav.main-navigation, body.pgq-fullwidth .site-branding,
body.pgq-fullwidth .entry-header, body.pgq-fullwidth .page-header,
body.pgq-fullwidth .entry-footer, body.pgq-fullwidth .post-navigation,
body.pgq-fullwidth .comments-area, body.pgq-fullwidth aside,
body.pgq-fullwidth .sidebar, body.pgq-fullwidth #colophon {
  display: inherit !important;
}

/* WRAPPER */
.pgq-theme-wrap { max-width: 900px; margin: 0 auto; padding: 0 24px 80px; }

/* ROOT — couleurs fond clair */
#pgq-root {
  --pgq-bg: transparent !important;
  --pgq-surface: #fff !important;
  --pgq-border: #e5e3de !important;
  --pgq-border-focus: #0000ff !important;
  --pgq-text: #0a0a0a !important;
  --pgq-text-muted: #888 !important;
  --pgq-accent: #0000ff !important;
  --pgq-accent-light: rgba(0,0,255,0.05) !important;
  --pgq-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03) !important;
  --pgq-shadow-hover: 0 2px 8px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05) !important;
  background: transparent !important;
  color: #0a0a0a !important;
  min-height: auto !important;
}

/* Masquer header/footer/intro du plugin */
#pgq-root .pgq-header { display: none !important; }
#pgq-root .pgq-footer { display: none !important; }
#pgq-root .pgq-intro { display: none !important; }

/* ============================================================
   PANIER FLOTTANT
   ============================================================ */
#pgq-root .pgq-floating-cart {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 12px 20px !important;
  background: #0a0a0a !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.15) !important;
  cursor: pointer !important;
  transition: all .25s ease !important;
  text-decoration: none !important;
}
#pgq-root .pgq-floating-cart:hover {
  background: #0000ff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(0,0,255,.2) !important;
}

/* Hidden elements (JS references) */
#pgq-root #pgqBtnIdentity[style*="none"],
#pgq-root #pgqBtnHome[style*="none"] { display: none !important; }

/* ============================================================
   GRILLE SUPPORTS
   ============================================================ */
#pgq-root .pgq-grid { grid-template-columns: repeat(3, 1fr) !important; }
#pgq-root .pgq-card {
  background: #fff !important;
  border: 1px solid #e5e3de !important;
  color: #0a0a0a !important;
}
#pgq-root .pgq-card:hover {
  border-color: #ccc !important;
  transform: translateY(-3px);
}
#pgq-root .pgq-card-icon { color: #888 !important; }
#pgq-root .pgq-card:hover .pgq-card-icon { color: #0a0a0a !important; }
#pgq-root .pgq-card-label { color: #0a0a0a !important; }
#pgq-root .pgq-card-desc { color: #888 !important; }
#pgq-root .pgq-card-badge.pgq-badge-done { background: rgba(0,0,255,0.08) !important; color: #0000ff !important; }

/* ============================================================
   TEXTES
   ============================================================ */
#pgq-root h1, #pgq-root h2, #pgq-root h3 { color: #0a0a0a !important; }
#pgq-root label { color: #0a0a0a !important; }
#pgq-root .pgq-section-title { font-family: 'Instrument Serif', Georgia, serif !important; }
#pgq-root .pgq-section-subtitle, #pgq-root .pgq-hint, #pgq-root small { color: #888 !important; }

/* ============================================================
   INPUTS
   ============================================================ */
#pgq-root input[type="text"], #pgq-root input[type="email"],
#pgq-root input[type="tel"], #pgq-root input[type="url"],
#pgq-root input[type="number"], #pgq-root input[type="date"],
#pgq-root textarea, #pgq-root select {
  background: #fff !important;
  border-color: #e5e3de !important;
  color: #0a0a0a !important;
}
#pgq-root input::placeholder, #pgq-root textarea::placeholder { color: #aaa !important; }
#pgq-root input:focus, #pgq-root textarea:focus, #pgq-root select:focus {
  border-color: #0000ff !important;
  box-shadow: 0 0 0 3px rgba(0,0,255,0.08) !important;
}

/* OPTION CARDS */
#pgq-root .pgq-type-card, #pgq-root .pgq-option-card {
  background: #fff !important; border-color: #e5e3de !important; color: #0a0a0a !important;
}
#pgq-root .pgq-type-card:hover, #pgq-root .pgq-option-card:hover { border-color: #ccc !important; }
#pgq-root .pgq-type-card.selected, #pgq-root .pgq-type-card.active,
#pgq-root .pgq-option-card input:checked + * {
  border-color: #0000ff !important; background: rgba(0,0,255,0.04) !important; box-shadow: 0 0 0 1px #0000ff !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
#pgq-root .pgq-btn-primary, #pgq-root button[type="submit"].pgq-btn-primary {
  background: #0a0a0a !important; color: #fff !important; border-color: #0a0a0a !important;
}
#pgq-root .pgq-btn-primary:hover { background: #0000ff !important; border-color: #0000ff !important; }
#pgq-root .pgq-btn-secondary {
  background: #fff !important; color: #0a0a0a !important; border: 1px solid #e5e3de !important;
}
#pgq-root .pgq-btn-secondary:hover { background: #f5f5f5 !important; }

/* CART PANEL / RECAP */
#pgq-root .pgq-cart-panel { background: #fff !important; border: 1px solid #e5e3de !important; border-radius: 10px !important; }
#pgq-root .pgq-cart-header { color: #0a0a0a !important; }
#pgq-root .pgq-cart-item { border-color: #f0f0f0 !important; }
#pgq-root .pgq-summary-card, #pgq-root .pgq-recap-card { background: #fff !important; border-color: #e5e3de !important; }

/* PROGRESS */
#pgq-root .pgq-progress-fill, #pgq-root .pgq-stepper-step.active::before,
#pgq-root .pgq-stepper-step.done::before { background: #0000ff !important; }
#pgq-root .pgq-stepper-label { color: #888 !important; }
#pgq-root .pgq-stepper-label.active { color: #0a0a0a !important; }

/* SUCCESS / OVERLAY / BADGES */
#pgq-root .pgq-success-icon { background: #0000ff !important; }
#pgq-root .pgq-sending-overlay { background: rgba(255,255,255,0.85) !important; color: #0a0a0a !important; }
#pgq-root .pgq-autosave-badge { background: rgba(0,0,255,0.06) !important; color: #0000ff !important; border-color: rgba(0,0,255,0.2) !important; }

/* CONTACT */
#pgq-root .pgq-contact-section { background: #fff !important; border: 1px solid #e5e3de !important; border-radius: 10px !important; }
#pgq-root .pgq-contact-section h2 { color: #0a0a0a !important; }
#pgq-root .pgq-contact-section p { color: #555 !important; }

/* RADIO / CHECKBOX RICH */
#pgq-root .pgq-radio-rich label { color: #0a0a0a !important; }
#pgq-root .pgq-radio-rich .pgq-radio-desc { color: #888 !important; }
#pgq-root .pgq-check-label { color: #0a0a0a !important; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .pgq-theme-wrap { padding: 0 16px 60px; }
  #pgq-root .pgq-grid { grid-template-columns: 1fr 1fr !important; }
  #pgq-root .pgq-floating-cart { bottom: 16px !important; right: 16px !important; }
}
