/* ============================================================
   PGPRO – nouvelle page d'accueil, en-tête et pied de page
   Chargé par wp-content/mu-plugins/pgpro-accueil.php
   Préfixe des classes : pgp-
   ============================================================ */

:root {
  --pgp-ink: #1c1b2e;
  --pgp-ink-2: #4b4a5e;
  --pgp-muted: #6f6e82;
  --pgp-border: #e6e5ec;
  --pgp-bg: #fbfbfa;
  --pgp-surface: #ffffff;
  --pgp-navy: #221f3c;
  --pgp-green: #0fb36c;
  --pgp-green-dark: #0c9a5d;
  --pgp-radius: 16px;
}

body.pgp-body {
  background: var(--pgp-bg);
  color: var(--pgp-ink);
  -webkit-font-smoothing: antialiased;
}
.pgp-body a { text-decoration: none; }

/* ---------- Bandes pleine largeur ---------- */
.pgp-body .pgp-band { padding: 96px 24px; margin-top: 0; margin-bottom: 0; }
.pgp-body main.wp-block-group { margin-top: 0; margin-bottom: 0; }
.pgp-body .pgp-band.is-tight { padding: 40px 24px; }
.pgp-body .pgp-band.is-white { background: var(--pgp-surface); border-top: 1px solid var(--pgp-border); border-bottom: 1px solid var(--pgp-border); }
.pgp-body .pgp-band.is-navy { background: var(--pgp-navy); color: #ffffff; }

/* ---------- Typographie ---------- */
.pgp-body .pgp-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pgp-green-dark); margin: 0 0 14px; }
.pgp-body .is-navy .pgp-eyebrow { color: #7ee2b4; }
.pgp-body .pgp-h1 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; color: var(--pgp-ink); margin: 0 0 24px; text-wrap: balance; }
.pgp-body .pgp-h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; color: var(--pgp-ink); margin: 0 0 16px; text-wrap: balance; }
.pgp-body .is-navy .pgp-h2 { color: #ffffff; }
.pgp-body .pgp-h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--pgp-ink); margin: 0 0 8px; }
.pgp-body .pgp-lead { font-size: 18px; line-height: 1.6; color: var(--pgp-ink-2); margin: 0 0 28px; max-width: 560px; }
.pgp-body .is-navy .pgp-lead { color: #c9c7d6; }
.pgp-body .pgp-text { font-size: 15px; line-height: 1.6; color: var(--pgp-ink-2); margin: 0; }
.pgp-body .pgp-intro { margin-bottom: 48px; }
.pgp-body .pgp-intro .pgp-h2, .pgp-body .pgp-intro .pgp-lead { max-width: 640px; }
.pgp-body .pgp-intro .pgp-lead { margin-bottom: 0; }

/* ---------- Boutons ---------- */
.pgp-body .pgp-btn .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  background: var(--pgp-green); color: #ffffff; box-shadow: none; text-decoration: none;
}
.pgp-body .pgp-btn .wp-block-button__link:hover { background: var(--pgp-green-dark); color: #ffffff; }
.pgp-body .pgp-btn.is-small .wp-block-button__link { min-height: 46px; padding: 0 20px; font-size: 15px; }
.pgp-body .pgp-btn.is-light .wp-block-button__link { background: #ffffff; color: var(--pgp-navy); }
.pgp-body .pgp-btn.is-light .wp-block-button__link:hover { background: #eef0f5; color: var(--pgp-navy); }
.pgp-body .pgp-btn.is-link .wp-block-button__link { background: transparent; color: var(--pgp-ink); padding: 0 6px; }
.pgp-body .pgp-btn.is-link .wp-block-button__link:hover { background: transparent; color: var(--pgp-green-dark); }
.pgp-body .pgp-btn.is-link .wp-block-button__link::after { content: "\2192"; font-weight: 600; }
.pgp-body .pgp-ctas { gap: 18px; align-items: center; margin: 0 0 24px; }
.pgp-body .pgp-btn.is-full { width: 100%; }
.pgp-body .pgp-btn.is-full .wp-block-button__link { width: 100%; }

/* ---------- Barre de contact ---------- */
.pgp-body .pgp-topbar { background: var(--pgp-navy); color: #c9c7d6; padding: 8px 24px; margin: 0; }
.pgp-topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; min-height: 24px; }
.pgp-topbar-in > div { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pgp-topbar-in a, .pgp-topbar-in span { display: inline-flex; align-items: center; gap: 8px; color: #c9c7d6; font-size: 13px; }
.pgp-topbar-in a:hover { color: #ffffff; }
.pgp-topbar-in svg { width: 16px; height: 16px; flex: none; }

/* ---------- En-tête ---------- */
.pgp-body .pgp-navbar { background: var(--pgp-surface); border-bottom: 1px solid var(--pgp-border); padding: 0 24px; margin: 0; position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 40; }
.pgp-body .pgp-navbar-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 80px; flex-wrap: nowrap; }
.pgp-body .pgp-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.pgp-body .pgp-brand .wp-block-site-logo { margin: 0; line-height: 0; }
.pgp-body .pgp-brand .wp-block-site-logo img { width: 56px; height: 56px; object-fit: contain; }
.pgp-body .pgp-wordmark { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; color: var(--pgp-ink); margin: 0; white-space: nowrap; }
.pgp-body .pgp-wordmark span { font-weight: 500; color: var(--pgp-muted); }
.pgp-body .pgp-nav { gap: 26px; flex: 1 1 auto; justify-content: flex-end; }
.pgp-body .pgp-nav .wp-block-navigation-item__content { color: var(--pgp-ink); font-weight: 500; font-size: 15px; white-space: nowrap; }
.pgp-body .pgp-nav .wp-block-navigation-item__content:hover { color: var(--pgp-green-dark); }
.pgp-body .pgp-nav .wp-block-navigation__responsive-container-open { color: var(--pgp-ink); }
.pgp-body .pgp-nav .wp-block-navigation__responsive-container.is-menu-open { background: #ffffff; padding: 32px 24px; }
.pgp-body .pgp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 20px; padding: 10px 0; }
.pgp-body .pgp-header-cta { margin: 0; flex: none; }

/* ---------- Bannière ---------- */
.pgp-body .pgp-hero { position: relative; overflow: hidden; padding-top: 80px; padding-bottom: 88px; }
.pgp-body .pgp-hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 179, 108, 0.12), rgba(15, 179, 108, 0)); pointer-events: none; }
.pgp-body .pgp-hero::after { content: ""; position: absolute; right: 320px; bottom: -260px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 157, 233, 0.10), rgba(31, 157, 233, 0)); pointer-events: none; }
.pgp-body .pgp-hero > * { position: relative; }
.pgp-body .pgp-hero-grid { gap: 64px; }
.pgp-body .pgp-hero-grid .wp-block-column { flex-basis: 0; flex-grow: 1; }
.pgp-checks { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--pgp-ink-2); margin: 0; padding: 0; list-style: none; }
.pgp-checks li { display: inline-flex; align-items: center; gap: 8px; }
.pgp-checks svg { width: 18px; height: 18px; color: var(--pgp-green); flex: none; }

/* Fenêtre applicative (illustration, à remplacer par une capture d'écran) */
.pgp-visual { position: relative; padding: 24px 0 24px 24px; }
.pgp-app { background: #ffffff; color: var(--pgp-ink); border-radius: var(--pgp-radius); box-shadow: 0 30px 60px -20px rgba(28, 27, 46, 0.35), 0 0 0 1px rgba(28, 27, 46, 0.06); overflow: hidden; font-size: 12.5px; }
.pgp-app-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--pgp-navy); color: #ffffff; }
.pgp-app-head img { width: 22px; height: 22px; object-fit: contain; }
.pgp-app-head strong { font-size: 13px; font-weight: 600; }
.pgp-app-head small { font-size: 12px; color: #b9b7c9; white-space: nowrap; }
.pgp-app-head .pgp-pill { margin-left: auto; font-size: 11px; background: rgba(15, 179, 108, 0.25); color: #7ee2b4; padding: 3px 10px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.pgp-app-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.pgp-app-kpis div { background: #f5f5f8; border-radius: 10px; padding: 12px 14px; }
.pgp-app-kpis small { display: block; font-size: 11px; color: var(--pgp-muted); }
.pgp-app-kpis b { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; white-space: nowrap; }
.pgp-app-kpis b.is-green { color: var(--pgp-green-dark); }
.pgp-app-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.1fr; gap: 8px; padding: 11px 16px; border-top: 1px solid #f0eff4; align-items: center; white-space: nowrap; }
.pgp-app-row.is-head { border-top: 0; color: var(--pgp-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 4px; padding-bottom: 8px; }
.pgp-app-row > span:first-child { display: flex; align-items: center; gap: 10px; overflow: hidden; text-overflow: ellipsis; }
.pgp-app-row i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; font-style: normal; }
.pgp-app-row b { font-weight: 600; }
.pgp-app-foot { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid #f0eff4; background: var(--pgp-bg); }
.pgp-app-foot span { font-size: 12px; font-weight: 500; padding: 8px 14px; border-radius: 8px; }
.pgp-app-foot .is-primary { color: #ffffff; background: var(--pgp-green); }
.pgp-app-foot .is-ghost { color: var(--pgp-ink); background: #ffffff; border: 1px solid #d9d8e2; }
.pgp-chip { position: absolute; background: #ffffff; border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(28, 27, 46, 0.3), 0 0 0 1px rgba(28, 27, 46, 0.06); padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--pgp-ink); white-space: nowrap; }
.pgp-chip i { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pgp-chip svg { width: 18px; height: 18px; }
.pgp-chip.is-top { right: -16px; top: -28px; }
.pgp-chip.is-bottom { left: -28px; bottom: -14px; }
.pgp-tint-green { background: #dff5ea; color: #0c9a5d; }
.pgp-tint-blue { background: #e2effc; color: #1f6fb5; }
.pgp-tint-orange { background: #fdeadb; color: #c25e0c; }
.pgp-tint-purple { background: #ece3f8; color: #6a34ad; }
.pgp-tint-red { background: #fde3dc; color: #c73a12; }
.pgp-tint-yellow { background: #fbf2cc; color: #9a7500; }

/* ---------- Références ---------- */
.pgp-logos-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.pgp-logos-head p { font-size: 14px; font-weight: 500; color: var(--pgp-muted); margin: 0; }
.pgp-logos-head a { font-size: 14px; font-weight: 500; color: var(--pgp-green-dark); }
.pgp-logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 24px; align-items: center; }
.pgp-logos img { width: 100%; height: 60px; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter .2s, opacity .2s; }
.pgp-logos img:hover { filter: none; opacity: 1; }

/* ---------- Modules ---------- */
.pgp-body .pgp-modules { gap: 24px; }
.pgp-body .pgp-card { background: var(--pgp-surface); border: 1px solid var(--pgp-border); border-radius: var(--pgp-radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.pgp-body .pgp-card > * { margin: 0; }
.pgp-body .pgp-card .pgp-more { margin-top: auto; }
.pgp-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.pgp-icon svg { width: 24px; height: 24px; }
.pgp-icon.is-plain { width: auto; height: auto; border-radius: 0; background: transparent; }
.pgp-icon.is-plain svg { width: 32px; height: 32px; }
.pgp-body .pgp-more a { font-weight: 500; font-size: 15px; color: var(--pgp-green-dark); }
.pgp-body .pgp-more a:hover { color: #087a49; }

/* ---------- Pourquoi PGPRO ---------- */
.pgp-body .pgp-why { gap: 40px; }
.pgp-body .pgp-why > * { margin: 0; }
.pgp-body .pgp-why .pgp-icon { margin-bottom: 14px; }
.pgp-body .pgp-why .pgp-h3 { margin-bottom: 10px; }

/* ---------- Signature électronique ---------- */
.pgp-body .pgp-sign-grid { gap: 64px; }
.pgp-doc { width: min(340px, 100%); margin: 0 auto; background: #ffffff; color: var(--pgp-ink); border-radius: 14px; padding: 28px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 14px; transform: rotate(-2deg); }
.pgp-doc-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pgp-muted); }
.pgp-doc-head small { font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.pgp-doc-line { height: 8px; background: #eeedf3; border-radius: 4px; }
.pgp-doc-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #d9d8e2; }
.pgp-doc-foot small { display: block; font-size: 11px; color: var(--pgp-muted); margin-bottom: 6px; }
.pgp-doc-seal { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--pgp-green); color: var(--pgp-green-dark); display: inline-flex; align-items: center; justify-content: center; }
.pgp-doc-seal svg { width: 24px; height: 24px; }

/* ---------- Démo / contact ---------- */
.pgp-body .pgp-contact-grid { gap: 64px; }
.pgp-body .pgp-contact-grid .wp-block-column:first-child { flex-basis: 45%; }
.pgp-body .pgp-contact-grid .wp-block-column:last-child { flex-basis: 55%; }
.pgp-contact-list { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.pgp-contact-list li { display: flex; align-items: center; gap: 12px; color: var(--pgp-ink); font-weight: 500; font-size: 16px; }
.pgp-contact-list li a { color: var(--pgp-ink); }
.pgp-contact-list li a:hover { color: var(--pgp-green-dark); }
.pgp-contact-list li.is-address { align-items: flex-start; color: var(--pgp-ink-2); font-weight: 400; }
.pgp-contact-list i { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #f5f5f8; color: var(--pgp-green-dark); display: inline-flex; align-items: center; justify-content: center; }
.pgp-contact-list svg { width: 20px; height: 20px; }
.pgp-body .pgp-form { background: var(--pgp-bg); border: 1px solid var(--pgp-border); border-radius: 20px; padding: 36px; margin: 0; }
.pgp-body .pgp-form .wpcf7 p { margin: 0 0 16px; }
.pgp-body .pgp-form .wpcf7 label { font-size: 13px; font-weight: 500; color: var(--pgp-ink-2); }
.pgp-body .pgp-form .wpcf7-form-control-wrap { display: block; }
.pgp-body .pgp-form input[type="text"], .pgp-body .pgp-form input[type="email"], .pgp-body .pgp-form input[type="tel"], .pgp-body .pgp-form select, .pgp-body .pgp-form textarea {
  width: 100%; min-height: 48px; border: 1px solid #d9d8e2; border-radius: 10px; background: #ffffff; padding: 12px 14px; color: var(--pgp-ink); font-size: 15px; font-family: inherit; box-shadow: none;
}
.pgp-body .pgp-form textarea { min-height: 120px; }
.pgp-body .pgp-form input:focus, .pgp-body .pgp-form textarea:focus, .pgp-body .pgp-form select:focus { outline: 2px solid var(--pgp-green); outline-offset: 0; border-color: var(--pgp-green); }
.pgp-body .pgp-form input[type="submit"], .pgp-body .pgp-form .wpcf7-submit {
  width: 100%; min-height: 52px; border: 0; border-radius: 10px; background: var(--pgp-green); color: #ffffff; font-weight: 600; font-size: 16px; cursor: pointer; font-family: inherit;
}
.pgp-body .pgp-form input[type="submit"]:hover, .pgp-body .pgp-form .wpcf7-submit:hover { background: var(--pgp-green-dark); }
.pgp-body .pgp-form .wpcf7-spinner { display: none; }
.pgp-body .pgp-form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--pgp-border); font-size: 14px; }
.pgp-body .pgp-form-note { font-size: 13px; color: var(--pgp-muted); text-align: center; margin: 14px 0 0; }

/* ---------- Pied de page ---------- */
.pgp-body .pgp-footer { background: var(--pgp-ink); color: #b9b7c9; padding: 64px 24px 32px; margin: 0; }
.pgp-body .pgp-footer-grid { gap: 48px; }
.pgp-body .pgp-footer-grid .wp-block-column:first-child { flex-basis: 34%; }
.pgp-body .pgp-footer-grid p { margin: 0; }
.pgp-body .pgp-footer .pgp-brand { margin-bottom: 16px; }
.pgp-body .pgp-footer .pgp-brand .wp-block-site-logo img { width: 44px; height: 44px; background: #ffffff; border-radius: 10px; padding: 4px; }
.pgp-body .pgp-footer .pgp-wordmark { color: #ffffff; font-size: 18px; }
.pgp-body .pgp-footer .pgp-wordmark span { color: #ffffff; }
.pgp-body .pgp-footer .pgp-text { color: #b9b7c9; max-width: 320px; }
.pgp-body .pgp-footer-title { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #ffffff; margin: 0 0 12px; }
.pgp-body .pgp-footer ul.pgp-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pgp-body .pgp-footer ul.pgp-footer-links a, .pgp-body .pgp-footer .pgp-footer-contact a { color: #b9b7c9; font-size: 15px; }
.pgp-body .pgp-footer ul.pgp-footer-links a:hover, .pgp-body .pgp-footer .pgp-footer-contact a:hover { color: #ffffff; }
.pgp-body .pgp-footer .pgp-footer-contact { font-size: 15px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.pgp-social { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.pgp-social a { color: #b9b7c9; display: inline-flex; }
.pgp-social a:hover { color: #ffffff; }
.pgp-social svg { width: 20px; height: 20px; }
.pgp-body .pgp-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 24px; margin-top: 48px; font-size: 13px; }
.pgp-body .pgp-footer-bottom p { margin: 0; }
.pgp-body .pgp-footer-bottom a { color: #b9b7c9; font-size: 13px; margin-left: 20px; }
.pgp-body .pgp-footer-bottom a:hover { color: #ffffff; }

/* ---------- Pages intérieures (modèle « page ») ---------- */
.pgp-body .pgp-page-main { padding: 48px 24px 80px; }
.pgp-body .pgp-page-main .wp-block-post-title { font-size: clamp(30px, 3vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; color: var(--pgp-ink); margin: 0 0 28px; }

/* ---------- Téléphone / tablette ---------- */
@media (max-width: 1199px) {
  .pgp-body .pgp-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .pgp-body .pgp-nav .wp-block-navigation__responsive-container-open { display: flex; }
}
@media (max-width: 781px) {
  .pgp-body .pgp-band { padding: 56px 20px; }
  .pgp-body .pgp-band.is-tight { padding: 32px 20px; }
  .pgp-body .pgp-hero { padding-top: 48px; padding-bottom: 56px; }
  .pgp-body .pgp-hero::before, .pgp-body .pgp-hero::after { display: none; }
  .pgp-body .pgp-hero-grid, .pgp-body .pgp-sign-grid, .pgp-body .pgp-contact-grid, .pgp-body .pgp-footer-grid { gap: 32px; }
  .pgp-body .pgp-header-cta { display: none !important; }
  .pgp-topbar-in .pgp-m-hide { display: none !important; }
  .pgp-body .pgp-navbar { padding: 0 20px; }
  .pgp-body .pgp-navbar-in { min-height: 72px; }
  .pgp-visual { padding: 0; }
  .pgp-chip { display: none; }
  .pgp-app-kpis { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 6px; padding: 12px; }
  .pgp-app-kpis div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 12px; }
  .pgp-app-kpis small, .pgp-app-kpis b { display: inline; margin: 0; }
  .pgp-app-row { grid-template-columns: 1.6fr 1fr 1fr; }
  .pgp-app-row .pgp-m-hide { display: none; }
  .pgp-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .pgp-logos img { height: 44px; }
  .pgp-body .pgp-modules, .pgp-body .pgp-why { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .pgp-body .pgp-form { padding: 24px 20px; }
  .pgp-body .pgp-footer { padding: 48px 20px 28px; }
}
