/* PAPAREIL Forum Premium P0 + P1 — isolé et réversible. */
body.pfp-view-topic #af-wrapper .pfp-reading-aside svg,
body.pfp-view-topic #af-wrapper .pfp-aside-card svg,
body.pfp-view-topic #af-wrapper .pfp-side-question svg,
body.pfp-view-topic #af-wrapper .pfp-side-nav svg,
body.pfp-view-topic #af-wrapper .pfp-side-reply svg {
  display:inline-block !important;width:17px !important;height:17px !important;
  min-width:17px !important;max-width:17px !important;
  min-height:17px !important;max-height:17px !important;
  flex:0 0 17px !important;vertical-align:middle;
}
body.pfp-view-topic #af-wrapper .pfp-aside-symbol svg {
  width:24px !important;height:24px !important;max-width:24px !important;
  max-height:24px !important;min-width:24px !important;min-height:24px !important;
}
body.pfp-view-topic #af-wrapper .pfp-side-question {
  display:block !important;padding:15px 16px !important;margin:16px 0 0;
  border-radius:12px !important;background:#ebf5fc;
}
body.pfp-view-topic #af-wrapper .pfp-side-question > svg {float:left;margin:1px 9px 0 0}
body.pfp-view-topic #af-wrapper .pfp-side-question-kicker {display:block !important;margin:2px 0 9px}
body.pfp-view-topic #af-wrapper .pfp-side-question-text {
  display:block !important;grid-column:auto !important;clear:both;
  font:700 14px/1.55 system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  overflow-wrap:normal;word-break:normal;margin:0 0 12px;
}
body.pfp-view-topic #af-wrapper .pfp-side-reply {
  display:inline-flex !important;align-items:center;gap:8px;
  grid-column:auto !important;justify-content:flex-start;
  padding:8px 0 0 !important;line-height:1.4;
}
body.pfp-view-topic #af-wrapper .pfp-side-nav {
  display:flex !important;flex-direction:column;gap:5px;min-width:0;
}
body.pfp-view-topic #af-wrapper .pfp-side-nav a {
  display:flex !important;align-items:center;gap:10px;min-height:38px;
  padding:9px 10px !important;border-radius:10px;
  overflow-wrap:normal;word-break:normal;white-space:normal;
}
body.pfp-view-topic #af-wrapper .pfp-side-nav a svg {flex-shrink:0}
body.pfp-view-topic #af-wrapper .pfp-aside-card {min-width:0}
body.pfp-view-topic #af-wrapper .pfp-aside-note {line-height:1.55}
body.pfp-view-topic #af-wrapper .pfp-reading-tools {gap:7px}
body.pfp-view-topic #af-wrapper .pfp-reading-tools__title {flex-basis:100%}
/* Stabilise la colonne AVANT l'insertion progressive de la carte. */
@media(min-width:1060px) {
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .post-wrapper {
   display:grid;grid-template-columns:minmax(0,1fr) 265px;column-gap:24px;align-items:start;
 }
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .forum-post-header {grid-column:1/-1}
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .post-message {grid-column:1;grid-row:2}
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .pfp-reading-aside {grid-column:2;grid-row:2}
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .post-footer,
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .signature,
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .post-reactions-summary {grid-column:1/-1}
}
@media(max-width:1059px) {
 body.pfp-view-topic #af-wrapper .first-post .post-wrapper {display:block}
 body.pfp-view-topic #af-wrapper .pfp-aside-card {position:static !important;display:block !important}
 body.pfp-view-topic #af-wrapper .pfp-aside-symbol {float:left;margin:0 12px 10px 0}
 body.pfp-view-topic #af-wrapper .pfp-aside-card h2 {clear:both}
}
/* Favoris, comptes, accueil. */
body.pfp-view-topic #af-wrapper .pfp-conversation-controls .pfp-favorite[aria-pressed="true"] {
 background:#f1f6ff !important;border-color:#b3cde9;color:#174b79 !important;
}
body.pfp-view-topic #af-wrapper .pfp-favorite span:first-child {font-size:18px;line-height:1}
#af-wrapper {max-width:100%}
body.pfp-active #af-wrapper .pfp-club-home {margin:15px 0 24px}
body.pfp-active #af-wrapper .pfp-club-hero {
 display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;
 padding:28px 32px;background:linear-gradient(125deg,#10274b,#1d4b7a);
 border:1px solid #244a73;border-radius:20px;color:#fff;overflow:hidden;
 box-shadow:0 13px 30px rgba(16,39,75,.11);
}
body.pfp-active #af-wrapper .pfp-club-kicker, .pfp-account-panel .pfp-club-kicker {
 color:#d9bd7d;font:800 11px/1.3 system-ui,sans-serif;letter-spacing:.16em;
}
body.pfp-active #af-wrapper .pfp-club-hero h2 {color:#fff;margin:9px 0;font:800 clamp(22px,2.1vw,30px)/1.24 system-ui,sans-serif}
body.pfp-active #af-wrapper .pfp-club-hero p {color:#e3edf6;margin:0;font-size:14px;line-height:1.6;max-width:62ch}
body.pfp-active #af-wrapper .pfp-club-hero-art {font-size:76px;line-height:1;color:#d1b677;text-align:center;opacity:.8}
body.pfp-active #af-wrapper .pfp-club-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:13px}
body.pfp-active #af-wrapper .pfp-club-tile {
 display:flex;align-items:center;gap:12px;min-width:0;
 padding:16px;border:1px solid #dce7f0;border-radius:14px;
 color:#173759;background:#fff;text-decoration:none !important;
 box-shadow:0 5px 17px rgba(16,39,75,.035);
}
body.pfp-active #af-wrapper .pfp-club-tile:hover {background:#f3f8fc;border-color:#9fc7e3}
body.pfp-active #af-wrapper .pfp-club-tile-icon {display:grid;place-items:center;width:37px;height:37px;flex:0 0 37px;border-radius:11px;background:#e7f2fc;color:#245f8f;font-size:23px}
body.pfp-active #af-wrapper .pfp-club-tile strong {display:block;color:#163455;font-size:13px;line-height:1.35}
body.pfp-active #af-wrapper .pfp-club-tile small {display:block;margin-top:4px;color:#596e85;font-size:11px;line-height:1.4}
body.pfp-active #af-wrapper .pfp-club-note {font-size:12px;color:#708297;margin:11px 3px 0}
body.pfp-active #af-wrapper .pfp-club-discover {margin:14px 0;padding:18px 22px;border:1px solid #d9e7f3;border-radius:15px;background:#f7fbfe}
body.pfp-active #af-wrapper .pfp-club-discover h3 {font-size:17px;color:#12355a;margin:0 0 10px}
body.pfp-active #af-wrapper .pfp-club-discover ul {margin:0;padding:0;list-style:none;display:grid;gap:8px}
body.pfp-active #af-wrapper .pfp-club-discover li a {text-decoration:none;font-weight:650;color:#205a8a}
body.pfp-active #af-wrapper .pfp-club-discover p {color:#62758a;font-size:13px;margin:0}
/* Espace Communauté : compatible avec un contenu WooCommerce existant. */
.pfp-account-panel {box-sizing:border-box;max-width:100%;margin:22px 0;padding:22px;border:1px solid #dce7f0;border-radius:20px;background:#f7fbff;color:#1b3553;font:400 15px/1.6 system-ui,-apple-system,'Segoe UI',sans-serif}
.pfp-account-heading h2 {font-size:23px;color:#12335a;margin:6px 0}
.pfp-account-heading p {margin:0 0 16px;color:#5c7087}
.pfp-account-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.pfp-account-card {padding:19px;border:1px solid #dce7f0;border-radius:15px;background:#fff;min-width:0}
.pfp-account-card h3 {font-size:17px;color:#123960;margin:0 0 12px}
.pfp-account-list {margin:0;padding:0;list-style:none;display:grid;gap:9px}
.pfp-account-list li {margin:0}
.pfp-account-list a {color:#1c608f;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.pfp-account-empty {color:#667b90;font-size:13px}
.pfp-account-card label {display:block;font-weight:650;margin:10px 0 6px}
.pfp-account-card select {display:block;margin:5px 0 9px;width:100%;min-height:39px;border:1px solid #bccfe0;border-radius:8px;padding:8px;color:#193c5f;background:white}
.pfp-save-preferences,.pfp-draft-save {display:inline-flex;justify-content:center;align-items:center;min-height:39px;border:0;border-radius:9px;background:#123660;color:#fff;font-weight:700;cursor:pointer;padding:9px 14px}
.pfp-preferences-status,.pfp-draft-status {display:block;font-size:12px;color:#316083;margin:8px 0 0;line-height:1.5}
/* Brouillons : ne surcharge pas l'éditeur WordPress/Asgaros. */
#af-wrapper .pfp-draft-toolbar {max-width:100%}
#af-wrapper .pfp-draft-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:15px;margin:10px 0 18px;border:1px solid #dce7f0;border-radius:12px;background:#f4f9fe}
#af-wrapper .pfp-draft-toolbar > div:first-child {flex:1;min-width:180px}
#af-wrapper .pfp-draft-toolbar strong {display:block;color:#14375a;font-size:14px}
#af-wrapper .pfp-draft-toolbar span {display:block;font-size:12px;color:#657b91}
#af-wrapper .pfp-draft-actions {display:flex;gap:7px;flex-wrap:wrap}
#af-wrapper .pfp-draft-actions button {min-height:36px;border:1px solid #bdcede;border-radius:8px;background:white;color:#21476a;padding:8px 11px;font:650 12px/1.2 system-ui,sans-serif;cursor:pointer}
#af-wrapper .pfp-draft-actions button.pfp-draft-save {background:#123660;color:white}
#af-wrapper .pfp-draft-status {flex-basis:100%}
body.pfp-text-grand #af-wrapper .post-message {--pfp-reading-scale:1.09}
body.pfp-text-tres-grand #af-wrapper .post-message {--pfp-reading-scale:1.20}
body.pfp-motion-reduite #af-wrapper *,body.pfp-motion-reduite #af-wrapper *::before,body.pfp-motion-reduite #af-wrapper *::after {animation:none !important;transition:none !important;scroll-behavior:auto !important}
@media(max-width:1050px) {body.pfp-active #af-wrapper .pfp-club-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px) {
 body.pfp-active #af-wrapper .pfp-club-hero {grid-template-columns:1fr;padding:22px}
 body.pfp-active #af-wrapper .pfp-club-hero-art {display:none}
 body.pfp-active #af-wrapper .pfp-club-grid,.pfp-account-grid {grid-template-columns:1fr}
 body.pfp-active #af-wrapper .pfp-club-tile {padding:13px}
 .pfp-account-panel {padding:13px;border-radius:14px}
 .pfp-account-card {padding:15px}
 #af-wrapper .pfp-draft-toolbar {padding:11px}
}
@media(prefers-reduced-motion:reduce) {body.pfp-active #af-wrapper *,body.pfp-active #af-wrapper *::before,body.pfp-active #af-wrapper *::after{animation:none !important;transition:none !important}}
/* P0 — Rail généré en PHP dans le message : pas de layout tardif en JavaScript. */
body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .post-wrapper {
  display:block !important;
}
@media(min-width:1060px) {
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .post-message {
   display:grid !important;grid-template-columns:minmax(0,1fr) 255px;
   align-items:start;column-gap:25px;
 }
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .post-message > .pfp-main-text {
   grid-column:1;grid-row:1;min-width:0;
 }
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .post-message > .pfp-reading-aside {
   grid-column:2;grid-row:1;min-width:0;margin:0 0 15px;
 }
 body.pfp-view-topic.pfp-has-reading-rail #af-wrapper .first-post .post-message > :not(.pfp-main-text):not(.pfp-reading-aside) {
   grid-column:1;
 }
}
body.pfp-view-topic #af-wrapper .pfp-main-text > p:first-of-type {
 color:#153b64;font-size:calc(17px * var(--pfp-reading-scale,1));font-weight:600;
}
body.pfp-view-topic #af-wrapper .pfp-main-text > h2,
body.pfp-view-topic #af-wrapper .pfp-main-text > h3 {
 color:#12355b;font-size:18px;line-height:1.4;
 padding:11px 14px;border-left:3px solid #3179b5;background:#f2f7fc;border-radius:0 8px 8px 0;
}
body.pfp-view-topic #af-wrapper.pfp-focus-mode .first-post .post-message {display:block !important}
body.pfp-view-topic #af-wrapper.pfp-focus-mode .pfp-main-text {max-width:820px;margin-inline:auto}
body.pfp-view-topic #af-wrapper.pfp-focus-mode .pfp-reading-aside {display:none !important}
@media(max-width:1059px) {
 body.pfp-view-topic #af-wrapper .first-post .post-message {display:block !important}
 body.pfp-view-topic #af-wrapper .pfp-reading-aside {margin:8px 0 18px}
}
