/* PTFR-2027 — identité visuelle et composants communs. */
:root {
  --page: #f1f5f9;
  --surface: #fff;
  --soft: #f6f8fb;
  --ink: #17283c;
  --muted: #4e6177;
  --line: #d6e0ea;
  --panel-line: #b1c1d2;
  --field-line: #8797a5;
  --brand: #23486f;
  --brand-hover: #335d89;
  --link: #255783;
  --external-link: #a1293a;
  --heading-fill: #c6d8ed;
  --tint: #e8f0f9;
  --blue: var(--brand);
  --blue-hover: var(--brand-hover);
  --blue-soft: var(--tint);
  --plum: #614775;
  --plum-hover: #765789;
  --plum-soft: #f2ecf7;
  --positive: #176247;
  --positive-bg: #e8f5ee;
  --warning: #864017;
  --warning-bg: #fff0e3;
  --danger: #a1293a;
  --danger-hover: #b83848;
  --danger-bg: #fceef0;
  --focus: #2d65a0;
  --radius: 16px;
  --control-radius: 9px;
  --space: clamp(12px, 1.35vw, 18px);
  --panel-gap: clamp(10px, 1.15vw, 16px);
  --shadow: 0 2px 8px #17283c0a;
  --menu-shadow: 0 14px 34px #17283c29;
  --shell: 1360px;
}

html { min-height: 100%; font-size: 100%; background: var(--page); }
body.ptfr-2027 {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 15px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: normal;
}
body.ptfr-2027 *, body.ptfr-2027 *::before, body.ptfr-2027 *::after { box-sizing: border-box; }
.ptfr-2027 :where(input, select, textarea, button) { font: inherit; }
.ptfr-2027 img { max-width: 100%; }
.ptfr-2027 a { color: var(--link); text-decoration: none; text-decoration-color: #6b8a93; text-underline-offset: .2em; }
.ptfr-2027 a:hover { color: var(--ink); }
.ptfr-2027 :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ptfr-2027 :where(p) { margin: .75em 0; }
.ptfr-2027 :where(h1, h2, h3, h4, h5, h6) { color: var(--ink); margin: 0 0 .4em; line-height: 1.25; font-weight: 680; }
.ptfr-2027 h1 { font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.04em; }
.ptfr-2027 h2 { font-size: clamp(1.22rem, 2vw, 1.55rem); letter-spacing: -.025em; }
.ptfr-2027 h3 { font-size: 1.1rem; }
.ptfr-2027 :where(.sub-title, h4, h5, h6) { font-size: 1rem; font-weight: 680; }
/* Hiérarchie des titres : contrastée, compacte, sans blocs imbriqués. */
.ptfr-2027 .site-page-content :is(h1,h2,h3,h4,h5,h6) { line-height: 1.3; overflow-wrap: anywhere; }
.ptfr-2027 .site-page-content :is(section,article) > header:not(.ptfr-user-hero) > :is(h1,h2) { margin: 0; color: #173652; }
/* Icônes de titres : proportionnées au vrai titre, pas à la taille des pictos de formulaire. */
.ptfr-2027 .site-page-content > :is(section,article) > header:not(.ptfr-user-hero) > h1 > :is(i,span.fa,span.fas) {
  display: inline-block;
  margin-inline-end: .28em;
  font-size: 1.18em;
  line-height: 1;
  vertical-align: -.06em;
}
.ptfr-2027 .site-page-content header.ptfr-user-hero .ptfr-user-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 1.95rem;
}
.ptfr-2027 .site-page-content header.ptfr-user-hero .ptfr-user-hero-icon :is(i,svg) { color: #fff; }

.ptfr-2027 .site-page-content :is(section,article) > :is(h2,h3,h4,h5,h6):not(.formatter-title) { width: fit-content; max-width: 100%; margin: 12px 0 8px; padding: 6px 11px; border: 1px solid #c9d9e9; border-radius: 9px; background: #edf3fa; color: #1c476e; }
.ptfr-2027 .site-page-content :is(section,article) > h3 { font-size: 1.08rem; }
.ptfr-2027 .site-page-content :is(section,article) > h4 { font-size: 1rem; }
.ptfr-2027 .site-page-content :is(section,article) > h5 { font-size: .94rem; }
.ptfr-2027 .site-page-content :is(section,article) > h6 { font-size: .87rem; }
/* PTFR-2027 V33 — niveaux REELS du BBCode PHPBoost 5.2 :
   [title=1..5] donne h2..h6.formatter-title, PAS h1..h5 sans classe.
   Ne change ni les titres des modules ni les en-tetes de citation/HIDE. */
body.ptfr-2027 #main-content .site-page-content :is(.forum-post-content, .message-content, .page-content, .news-entry-prose, .article-content, .formatter-content) :is(h2.formatter-title, h3.formatter-title, h4.formatter-title, h5.formatter-title, h6.formatter-title) {
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin: 13px 0 10px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  box-shadow: none;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.32;
  overflow-wrap: anywhere;
  text-transform: none;
}
/* BBCode TITLE 1 */
body.ptfr-2027 #main-content .site-page-content :is(.forum-post-content, .message-content, .page-content, .news-entry-prose, .article-content, .formatter-content) h2.formatter-title {
  padding: 11px 15px;
  border-color: #294f76;
  background: #294f76;
  color: #fff;
  font-size: clamp(1.27rem, 2vw, 1.55rem);
  font-weight: 770;
}
/* BBCode TITLE 2 */
body.ptfr-2027 #main-content .site-page-content :is(.forum-post-content, .message-content, .page-content, .news-entry-prose, .article-content, .formatter-content) h3.formatter-title {
  background: #e7f0fa;
  border-color: #bfd3e6;
  color: #285987;
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  font-weight: 740;
}
/* BBCode TITLE 3 */
body.ptfr-2027 #main-content .site-page-content :is(.forum-post-content, .message-content, .page-content, .news-entry-prose, .article-content, .formatter-content) h4.formatter-title {
  width: fit-content;
  background: #e8f5ef;
  border-color: #b8decd;
  color: #206c59;
  font-size: 1.12rem;
  font-weight: 720;
}
/* BBCode TITLE 4 */
body.ptfr-2027 #main-content .site-page-content :is(.forum-post-content, .message-content, .page-content, .news-entry-prose, .article-content, .formatter-content) h5.formatter-title {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff2e4;
  border-color: #ebd5bb;
  color: #98612b;
  font-size: 1.05rem;
  font-weight: 700;
}
/* BBCode TITLE 5 */
body.ptfr-2027 #main-content .site-page-content :is(.forum-post-content, .message-content, .page-content, .news-entry-prose, .article-content, .formatter-content) h6.formatter-title {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 7px;
  background: #f1eff9;
  border-color: #d9d0ec;
  color: #6a538f;
  font-size: .99rem;
  font-weight: 690;
}
@media (max-width: 600px) {
  body.ptfr-2027 #main-content .site-page-content :is(.forum-post-content, .message-content, .page-content, .news-entry-prose, .article-content, .formatter-content) :is(h2.formatter-title, h3.formatter-title, h4.formatter-title, h5.formatter-title, h6.formatter-title) {
    max-width: 100%;
    margin: 11px 0 8px;
    padding: 8px 11px;
  }
}

/* Titres d'utilisateur ou de statut qui ne doivent jamais se retrouver bleu sur bleu. */
.ptfr-2027 :is(.ptfr-user-hero, .ptfr-user-hero *) > h1 { color: var(--ink); }
/* Actions de pages : la zone cliquable recouvre visuellement l'icône. */
.ptfr-2027 .site-page-content :is(.article-pages,.article-web,.article-download,.article-faq,.article-calendar,.article-media) > .actions,
.ptfr-2027 .site-page-content :is(.article-pages,.article-web,.article-download,.article-faq,.article-calendar,.article-media) header > .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 8px 0; padding: 0; }
.ptfr-2027 .site-page-content :is(.article-pages,.article-web,.article-download,.article-faq,.article-calendar,.article-media) .actions > a { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; min-width: 35px; padding: 7px 9px; background: #e5f0fb; color: #24517d; border: 1px solid #bed2e6; border-radius: var(--control-radius); text-decoration: none; transition: background-color .12s ease; }
.ptfr-2027 .site-page-content :is(.article-pages,.article-web,.article-download,.article-faq,.article-calendar,.article-media) .actions > a:is(:hover,:focus-visible) { background: #d1e5f8; color: #1a466e; border-color: #a6c4df; }
.ptfr-2027 .site-page-content :is(.article-pages,.article-web,.article-download,.article-faq,.article-calendar,.article-media) .actions > a:is([data-confirmation*="delete"],[href*="delete"],[href*="del="]) { background: #ffe9ed; color: #a32945; border-color: #e7bac5; }
.ptfr-2027 .site-page-content :is(.article-pages,.article-web,.article-download,.article-faq,.article-calendar,.article-media) .actions > a:is([data-confirmation*="delete"],[href*="delete"],[href*="del="]):is(:hover,:focus-visible) { background: #ffdae2; color: #85223a; border-color: #d88fa1; }
.ptfr-2027 .site-page-content :is(.article-pages,.article-web,.article-download,.article-faq,.article-calendar,.article-media) .actions > a i { color: inherit; margin: 0; }
.ptfr-2027 :where(time, .small, .smaller, .text-muted, .text-weak) { color: var(--muted); }
.ptfr-2027 .spacer { clear: both; }
.ptfr-2027 :where(.hidden, [hidden]) { display: none !important; }
.ptfr-2027 :where(.text-strong, .text-bold) { font-weight: 700; }
.ptfr-2027 .text-error { color: var(--danger); }
.ptfr-2027 .text-success { color: var(--positive); }

/* En-tête, navigation et zones de menus administrables. */
.ptfr-2027 .site-skip { position: absolute; z-index: 200; inset: 8px auto auto 8px; padding: 10px 16px; background: var(--surface); transform: translateY(-150%); }
.ptfr-2027 .site-skip:focus { transform: none; }
.ptfr-2027 .site-header { position: relative; isolation: isolate; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--panel-line); }
.ptfr-2027 :is(.site-bar, #top-header-content, #sub-header-content, .site-layout, #top-footer, .site-footer-inner) {
  width: min(100% - var(--space) * 2, var(--shell));
  margin-inline: auto;
}
.ptfr-2027 .site-bar {
  position: relative;
  z-index: 3;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding-block: 12px;
}
.ptfr-2027 .site-brand { display: inline-flex; gap: 11px; align-items: center; min-width: 0; color: var(--ink); font-size: 1.13rem; font-weight: 750; line-height: 1.25; letter-spacing: -.025em; text-decoration: none; }
.ptfr-2027 .site-brand span:last-child { overflow-wrap: anywhere; }
.ptfr-2027 :is(.site-mark, .forum-cat-title > i) {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 1.15rem;
}
.ptfr-2027 .site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.ptfr-2027 .site-mobile-menu-toggle { display: none; }
.ptfr-2027 :is(.site-nav a, .site-account a, .site-footer-links nav a) {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--control-radius);
  color: var(--muted);
  font-weight: 620;
  text-decoration: none;
}
.ptfr-2027 :is(.site-nav a, .site-footer-links nav a):hover { color: var(--brand); background: var(--tint); }
.ptfr-2027 .site-nav > a > i { color: var(--blue); }
.ptfr-2027 .site-account { justify-self: end; }
.ptfr-2027 .site-account > a:any-link { color: #fff; background: var(--brand); }
.ptfr-2027 .site-account > a:is(:hover, :focus-visible) { color: #fff; background: var(--brand-hover); }
.ptfr-2027 .site-account > a > :is(i, span) { color: inherit; }
.ptfr-2027 #top-header, .ptfr-2027 #sub-header { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--soft); }
.ptfr-2027 #top-header { z-index: 2; }
.ptfr-2027 #sub-header:focus-within { z-index: 2; }
.ptfr-2027 :is(#top-header-content, #sub-header-content) { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-block: 9px; min-width: 0; }
.ptfr-2027 :is(#top-header-content, #sub-header-content):empty { display: none; }
.ptfr-2027 .site-header :is(ul, li, .cssmenu):not(.base-menu-panel) { overflow: visible; }

/* Page, blocs, cartes et pied de page. */
.ptfr-2027 .site-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space);
  align-items: start;
  min-height: 55vh;
  padding-block: var(--space) clamp(24px, 3vw, 38px);
}
.ptfr-2027 :is(#main, #main-content, #menu-left, #menu-right) { min-width: 0; width: auto; margin: 0; float: none; }
.ptfr-2027 :is(#main, #main-content, #menu-left, #menu-right, #top-footer) { display: grid; gap: var(--space); }
.ptfr-2027 #main-content { display: block; }
.ptfr-2027 #main-content > :not(:first-child) { margin-top: var(--space); }
.ptfr-2027 #main-content > .spacer { margin-top: 0; }
.ptfr-2027 :is(#top-content, #bottom-content) { min-width: 0; margin: 0; }
.ptfr-2027 #top-footer { margin-bottom: var(--space); }
.ptfr-2027 .site-context { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 9px 16px; min-width: 0; }
.ptfr-2027 .site-context:has(.site-module-actions) #breadcrumb { flex: 1 1 220px; }
.ptfr-2027 #breadcrumb { min-width: 0; margin: 0; padding: 0; color: var(--muted); }
.ptfr-2027 #breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0; margin: 0; list-style: none; }
.ptfr-2027 #breadcrumb li { display: inline-flex; min-width: 0; gap: 10px; align-items: baseline; overflow-wrap: anywhere; font-size: .87rem; }
.ptfr-2027 #breadcrumb li + li::before { content: '/'; color: var(--field-line); }
.ptfr-2027 #breadcrumb .current a { color: var(--ink); font-weight: 640; }
.ptfr-2027 #breadcrumb a { text-decoration: none; }
.ptfr-2027 #breadcrumb a:hover { color: var(--ink); }
.ptfr-2027 :is(.module-mini-container, .block-container, .cell, .news-card, .module-contents, .message-container) {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ptfr-2027 :is(.module-mini-container, .block-container, .cell, .module-contents, .message-container) { overflow-wrap: anywhere; }
.ptfr-2027 :is(.module-mini-container, .block-container, .cell) :is(.module-contents, .module-mini-container, .cell) { box-shadow: none; }
.ptfr-2027 :where(.module-contents, .module-mini-contents, .block-content, .cell-body)
  > :is(.block-container, .module-mini-container, .module-contents, .cell) { border-color: var(--panel-line); }
.ptfr-2027 :where(.module-contents, .module-mini-contents, .block-content, .cell-body)
  > :is(.block-container, .module-mini-container, .module-contents)
  + :is(.block-container, .module-mini-container, .module-contents) { margin-block-start: var(--panel-gap); }
.ptfr-2027 .module-contents { padding: clamp(12px, 1.5vw, 20px); }
.ptfr-2027 .module-mini-top { padding: 11px 14px 10px; border-bottom: 1px solid var(--line); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: var(--soft); }
.ptfr-2027 .module-mini-top :is(.sub-title, h5) { margin: 0; color: var(--blue); line-height: 1.35; }
.ptfr-2027 .module-mini-contents { padding: 12px 16px; }
/* Les mini-modules peuvent produire un lien après .block-content et sans .module-mini-bottom.
   Les zones cliquables en bas, notamment « Accéder aux vidéos », conservent un retrait réel. */
.ptfr-2027 .module-mini-container > :is(.module-mini-bottom,footer,.block-content):not(:empty) {
  height: auto; min-height: 0; padding: 12px 16px 16px;
}
.ptfr-2027 .module-mini-container > .block-content:has(> .module-mini-top) { padding: 0 16px 16px; }
.ptfr-2027 .module-mini-container :is(.module-mini-bottom,.module-mini-contents,.block-content) > :is(a.button,a.basic-button,button.button,button.basic-button) {
  display: inline-flex; align-items: center; margin: 10px 0 4px;
}
/* Les boutons de bas de mini-module peuvent se trouver directement dans
   CONTENTS, sans .module-mini-bottom. Leur retrait est porté par le conteneur. */
.ptfr-2027 .module-mini-container:has(a[href*="/media"]) > .module-mini-contents {
  padding: 15px 20px 20px;
}
.ptfr-2027 .module-mini-container:has(a[href*="/media"]) > a:is(.button,.basic-button),
.ptfr-2027 .module-mini-container:has(a[href*="/media"]) > .block-content > a:is(.button,.basic-button) {
  margin: 12px 20px 18px;
}
.ptfr-2027 .module-mini-container:has(a[href*="/media"]) .module-mini-contents > :is(.more, a:last-child, p:last-child) {
  margin-bottom: 12px;
}
.ptfr-2027 :is(#module-mini-media,#module-mini-medias,[id*="mini-media"]) .module-mini-contents {
  padding: 15px 20px 20px;
}

/* Retrait fiable du bouton vers /media, même lorsque le module le place
   directement après la liste et sans footer PHPBoost. */
.ptfr-2027 :is(.module-mini-container,.block-container):has(a[href*="/media"]) :is(a.basic-button,a.button,a.more)[href*="/media"] {
  margin: 12px 18px 18px;
}
/* Le contenu ne touche pas les angles : valable même si le mini-module n'utilise pas le footer normal. */
.ptfr-2027 .module-mini-container > .module-mini-contents { padding-inline: 16px; padding-bottom: 16px; }

.ptfr-2027 .module-mini-bottom:empty { display: none; }
.ptfr-2027 :is(.cell-flex, .cell-columns, .cell-tile, .cell-list) { gap: var(--panel-gap); }
.ptfr-2027 :is(.cell-header, .cell-body, .cell-footer) { padding: 12px 16px; }
.ptfr-2027 :is(.cell-header, .cell-footer) { background: var(--soft); }
.ptfr-2027 .cell-header { border-radius: var(--radius) var(--radius) 0 0; }
.ptfr-2027 .cell-footer { border-radius: 0 0 var(--radius) var(--radius); }
.ptfr-2027 :is(.content, .module-contents) > article + article { margin-top: var(--panel-gap); }
.ptfr-2027 .site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.ptfr-2027 .site-footer-inner { padding-block: 25px 16px; }
.ptfr-2027 .site-footer-links, .ptfr-2027 .site-footer-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.ptfr-2027 .site-footer-links nav { display: flex; flex-wrap: wrap; gap: 4px; }
.ptfr-2027 .site-footer .footer-content { margin-block: 12px; }
.ptfr-2027 .site-footer-meta { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; color: var(--muted); font-size: .83rem; }
.ptfr-2027 .site-back-top { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--control-radius); background: var(--tint); }
.ptfr-2027 .site-back-top:hover { background: var(--line); }

/* Contrôles, boutons, tableaux et retours d’état. */
.ptfr-2027 :is(.button, .basic-button, .small-button, button, input[type="button"], input[type="reset"], input[type="submit"], .btn-profil) {
  min-height: 38px;
  padding: .5em .95em;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 620;
  line-height: 1.4;
  cursor: pointer;
}
.ptfr-2027 :is(a.button, a.basic-button, a.small-button, a.btn-profil) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; vertical-align: middle; }
.ptfr-2027 :is(.button, .basic-button, .small-button, button, input[type="button"], input[type="reset"], input[type="submit"], .btn-profil):hover { background: var(--brand-hover); color: #fff; }
.ptfr-2027 :is(button, input, .button, .basic-button):is(:disabled, [aria-disabled="true"]) { background: #dfe5e9; color: #536372; cursor: default; }
.ptfr-2027 :is(.button-secondary, button[type="reset"], input[type="reset"]) { border-color: var(--line); background: var(--soft); color: var(--ink); }
.ptfr-2027 :is(.button-secondary, button[type="reset"], input[type="reset"]):hover { background: var(--tint); color: var(--brand); }
.ptfr-2027 :is(.button-danger, .button-delete, .ptfr-moderation-action--reject, button[value="reject"]) { background: var(--danger); color: #fff; }
.ptfr-2027 :is(.button-danger, .button-delete, .ptfr-moderation-action--reject, button[value="reject"]):hover { background: var(--danger-hover); }
.ptfr-2027 :is(input:not([type]), input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="number"], input[type="search"], input[type="date"], input[type="time"], select, textarea) {
  max-width: 100%;
  min-height: 42px;
  padding: .56em .72em;
  border: 1px solid var(--field-line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--ink);
}
.ptfr-2027 textarea { resize: vertical; min-height: 7em; }
.ptfr-2027 input::placeholder, .ptfr-2027 textarea::placeholder { color: var(--muted); }
.ptfr-2027 :is(input[type="checkbox"], input[type="radio"], progress) { accent-color: var(--brand); }
.ptfr-2027 fieldset { min-width: 0; padding: 12px 15px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ptfr-2027 legend { padding-inline: .45em; font-weight: 700; color: var(--ink); }
.ptfr-2027 .form-element + .form-element { margin-top: 8px; }
.ptfr-2027 :is(.fieldset-submit, .form-buttons) { margin-top: 10px; }
.ptfr-2027 :is(.responsive-table, .table-responsive, .forum-contents) { max-width: 100%; overflow-x: auto; }
.ptfr-2027 table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--ink); background: var(--surface); }
.ptfr-2027 table :is(th, td) { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.ptfr-2027 table th { background: var(--tint); color: var(--ink); font-weight: 690; }
.ptfr-2027 tbody :is(tr, tr:hover, tr:focus-within, tr:nth-child(even), tr:nth-child(even):hover) { background: var(--surface); }
.ptfr-2027 tbody tr:last-child td { border-bottom: 0; }
.ptfr-2027 :is(.pagination, .pagination-container) { gap: 6px; flex-wrap: wrap; }
.ptfr-2027 .pagination :is(a, span.current, li.current) { padding: 5px 9px; border-radius: 7px; text-decoration: none; }
.ptfr-2027 .pagination a:hover { background: var(--tint); }
.ptfr-2027 :is(.message-helper, .notice, .ptfr-moderation-pending, .warning, .error-auth-write) {
  padding: 12px 16px;
  border: 1px solid #ebc9aa;
  border-radius: var(--control-radius);
  color: var(--warning);
  background: var(--warning-bg);
  margin: 0;
}
.ptfr-2027 :is(.message-helper.error, .message-helper.danger) { border-color: #edc2c8; color: var(--danger); background: var(--danger-bg); }
.ptfr-2027 :is(.message-helper.success, .message-helper.positive) { border-color: #bfded1; color: var(--positive); background: var(--positive-bg); }
.ptfr-2027 :is(.message-helper.question, .message-helper.info, .message-helper.information) { border-color: var(--line); color: var(--brand); background: var(--tint); }
.ptfr-2027 .forum-post-content .ptfr-text-link { display: inline; padding: 0; margin: 0; border: 0; background: transparent; }

.ptfr-2027 :is(.ptfr-external-link-affix, .forum-external-link-icon) { display: inline; white-space: nowrap; font-size: .85em; }
.ptfr-2027 :is(.progressbar, .progressbar-container) { border-radius: 20px; background: var(--tint); }
.ptfr-2027 :is(.progressbar-content, .progressbar-filled, .progressbar-value) { border-radius: inherit; background: var(--brand); }
.ptfr-2027 .blink { animation: none; }
.ptfr-2027 .cssmenu :is(.submenu, .has-sub > ul, .has-submenu > ul, ul ul) { background: var(--surface); border: 1px solid var(--line); border-radius: var(--control-radius); box-shadow: 0 12px 25px #18253218; }
.ptfr-2027 .cssmenu a:hover { background: var(--tint); }
.ptfr-2027 :is(.modal, .popup-content, .tooltip) { background: var(--surface); color: var(--ink); border-radius: var(--radius); }
.ptfr-2027 .modal.show { visibility: visible; }
.ptfr-2027 .modal { max-height: min(86vh, 900px); overflow: auto; box-shadow: 0 16px 50px #18253233; }
.ptfr-2027 :is(.overlay, .site-info-popup-overlay) { background: #18253288; }
.ptfr-2027 :is(.site-info-popup, .site-info-popup-dialog, .site-info-popup-content) { background: var(--surface); color: var(--ink); border-radius: var(--radius); }
.ptfr-2027 :is(.modal-header, .modal-footer) { padding: 14px 18px; border-block-end: 1px solid var(--line); }

/* BBCode et contenus éditoriaux : composants distincts, sans bordures latérales décoratives.
   Les classes PHPBoost restent intactes et les styles s’appliquent aussi sur mobile. */
.ptfr-2027 :is(.forum-post-content, .article-pages .content, .article-news [itemprop="text"], .message-content) {
  min-width: 0; overflow-wrap: anywhere; background: transparent;
}
.ptfr-2027 a.ptfr-internal-link.ptfr-text-link { color: var(--link); text-decoration: none; }
.ptfr-2027 a.ptfr-external-link.ptfr-text-link { color: var(--external-link); text-decoration: none; }
.ptfr-2027 a.ptfr-external-link.ptfr-text-link:hover { color: #781a29; }
.ptfr-2027 a.ptfr-text-link { overflow-wrap: anywhere; }
.ptfr-2027 :is(.forum-post-content, .message-content) :is(img, iframe, video) { max-width: 100%; }
/* Cohérence des containers: retrait raisonnable et pas de style sur l’éditeur BBCode. */
.ptfr-2027 :is(.formatter-container, .formatter-block, .formatter-fieldset) {
  max-width: 100%; min-width: 0; box-sizing: border-box;
}
.ptfr-2027 :is(.formatter-blockquote,.formatter-code,.formatter-hide,.formatter-fieldset) {
  margin: 12px 0; padding: 12px 15px; border: 1px solid #c7d8e7;
  border-radius: 10px; background: #f3f7fb; color: #203c57;
  box-shadow: none;
}
/* CITATION : presentation editoriale. A la difference du HIDE, pas de
   cartouche : fin accent vertical, retrait et pictogramme guillemets. */
.ptfr-2027 .formatter-container.formatter-blockquote {
  position: relative;
  display: block;
  width: auto;
  margin: 16px 0;
  padding: 16px 20px 17px 24px;
  border: 0;
  border-left: 4px solid #67769d;
  border-radius: 0 10px 10px 0;
  background: #f6f7fc;
  color: #293955;
  box-shadow: none;
}
.ptfr-2027 .formatter-container.formatter-blockquote::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b608e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21c3 0 5-1 5-5V4H3v8h5'/%3E%3Cpath d='M14 21c3 0 5-1 5-5V4h-5v8h5'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 14px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: #e4e9f6;
  color: #4b608e;
  /* Icône vectorielle fixe : ne dépend pas d’une police réseau. */
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.ptfr-2027 .formatter-container.formatter-blockquote > .formatter-title {
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 36px;
  margin: 0 0 10px 48px;
  padding: 5px 0 7px;
  border: 0;
  border-bottom: 1px solid #d8dfed;
  border-radius: 0;
  background: transparent;
  color: #3a4d79;
  font-size: 1.08em;
  font-weight: 760;
  line-height: 1.35;
}
.ptfr-2027 .formatter-container.formatter-blockquote > .formatter-content {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 0 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #293955;
  font-size: 1em;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ptfr-2027 .formatter-container.formatter-blockquote > .formatter-content * { font-style: inherit; }
.ptfr-2027 .formatter-container.formatter-blockquote > .formatter-content :is(p,ul,ol):first-child { margin-top: 0; }
.ptfr-2027 .formatter-container.formatter-blockquote > .formatter-content :is(p,ul,ol):last-child { margin-bottom: 0; }
.ptfr-2027 .formatter-container.formatter-code {
  border-color: #d3c7e8; background: #f5f0fa; color: #4c386a;
}
.ptfr-2027 .formatter-code > .formatter-title { color: #6c4596; }
/* HIDE : titre distinct, léger espace entre le titre et le contrôle.
   Le composant conserve une hauteur compacte et la largeur originale. */
.ptfr-2027 .formatter-container.formatter-hide {
  margin: 9px 0;
  padding: 12px 14px;
  border-color: #d4e0eb;
  background: #f6f9fc;
  color: #2a4663;
}
.ptfr-2027 .formatter-container.formatter-hide > .formatter-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 11px;
  padding: 5px 11px;
  border: 1px solid #bdd0e4;
  border-radius: 7px;
  background: #dce9f6;
  color: #23486d;
  font-size: .94em;
  font-weight: 700;
  line-height: 1.35;
}
.ptfr-2027 .formatter-hide.formatter-show {
  background: #f6f9fc;
  border-color: #d4e0eb;
}
.ptfr-2027 .formatter-fieldset { background: #eff5fc; border-color: #bcd0e6; }
.ptfr-2027 .formatter-fieldset > legend, .ptfr-2027 .formatter-fieldset > .formatter-title {
  display: inline-block; max-width: 100%; padding: 4px 9px;
  border: 1px solid #acc6e2; border-radius: 7px;
  background: #deebfa; color: #245c90; font-weight: 700;
}
/* BBCode BLOC : retrait sobre, aucun panneau colore, seule une bordure gauche bleu nuit. */
.ptfr-2027 .formatter-block {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 12px 0 12px clamp(14px, 2vw, 24px);
  padding: 4px 0 4px 16px;
  border: 0;
  border-left: 2px solid #23486f;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  overflow-wrap: anywhere;
}
.ptfr-2027 .formatter-block > .formatter-title {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #23486f;
  font-size: 1em;
  font-weight: 680;
}
.ptfr-2027 .formatter-block > .formatter-content {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.ptfr-2027 :is(.formatter-code,.formatter-hide) > .formatter-title {
  display: block; position: static; margin: 0; padding: 0 0 8px;
  border: 0; border-bottom: 1px solid currentColor;
  border-radius: 0; background: transparent;
  text-align: left; font-weight: 700; font-size: 1em;
}
.ptfr-2027 :is(.formatter-code,.formatter-hide) > .formatter-title::before,
.ptfr-2027 :is(.formatter-code,.formatter-hide) > .formatter-title::after { content: none; }
.ptfr-2027 :is(.formatter-code,.formatter-hide) > .formatter-content {
  min-width: 0; max-width: 100%; margin: 9px 0 0; padding: 0;
  border: 0; background: transparent; color: inherit; line-height: 1.6;
}
.ptfr-2027 .formatter-hide:not(.formatter-show) > .formatter-content { margin: 0; padding: 0; }
.ptfr-2027 .formatter-hide.formatter-show > .formatter-content {
  max-height: 60vh;
  margin: 5px 0 0;
  padding: 7px 9px 3px;
  overflow: auto;
}
.ptfr-2027 .formatter-hide .formatter-hide-message,
.ptfr-2027 .formatter-hide .formatter-hide-close-button {
  min-height: 36px;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #d0deea;
  border-radius: 7px;
  background: #f0f5fb;
  color: #2d4d6d;
  line-height: 1.35;
}
/* PHPBoost ajoute .formatter-hide-message uniquement à DOMContentLoaded.
   Ce texte est dessiné par CSS sur le conteneur .no-js, qui existe déjà dans
   le HTML initial. Dès que PHPBoost enlève .no-js et insère le vrai contrôle,
   le texte CSS disparaît sans délai ni doublon, sans toucher au JS noyau. */
body.ptfr-2027 .formatter-container.formatter-hide.no-js:not(.formatter-show)::after {
  content: "Cliquer pour afficher le contenu";
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #d0deea;
  border-radius: 7px;
  background: #f0f5fb;
  color: #2d4d6d;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}
.ptfr-2027 .formatter-hide-close-button::before, .ptfr-2027 .formatter-hide-message::before { content: none; }
/* Menus de flux PHPBoost : le lien/bouton sous <ul class="rss-feed"> doit
   être protégé par le padding du CONTENEUR, pas par une marge sur l'alerte.
   Exemple natif : #content-menu-223.block-container > div > ul.rss-feed + lien. */
body.ptfr-2027 :is(#top-content,#bottom-content,#menu-left,#menu-right)
  .block-container > div:has(> .rss-feed) {
  min-width: 0;
  padding: 12px 16px 16px;
  box-sizing: border-box;
}
body.ptfr-2027 :is(#top-content,#bottom-content,#menu-left,#menu-right)
  .block-container > div:has(> .rss-feed) > .rss-feed {
  padding: 6px 0;
}
@media (max-width: 600px) {
  body.ptfr-2027 :is(#top-content,#bottom-content,#menu-left,#menu-right)
    .block-container > div:has(> .rss-feed) { padding: 10px 12px 14px; }
}

/* Remarques, informations, questions et messages de sécurité. */
.ptfr-2027 .message-helper {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 12px 16px 12px 50px;
  border: 1px solid #d7dce3;
  border-radius: 11px;
  background: #f4f6f8;
  color: #4b5563;
  line-height: 1.5;
}
.ptfr-2027 .message-helper::before {
  content: "•";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-sizing: border-box;
}
.ptfr-2027 .message-helper.divers {
  border-color: #d4dae3;
  background: #f2f4f7;
  color: #525f70;
}
.ptfr-2027 .message-helper.divers::before {
  content: "…";
  background: #e4e9ef;
  color: #516071;
}
.ptfr-2027 :is(.message-helper.information,.message-helper.info,.message-helper.question,.message-helper.notice) {
  border-color: #27476d;
  background: #eaf1fb;
  color: #1f3f66;
}
.ptfr-2027 :is(.message-helper.information,.message-helper.info,.message-helper.question,.message-helper.notice)::before {
  content: "i";
  background: #27476d;
  color: #ffffff;
}
.ptfr-2027 :is(.message-helper.success,.message-helper.positive) {
  border-color: #b9ddcb;
  background: #ecf8f1;
  color: #23654b;
}
.ptfr-2027 :is(.message-helper.success,.message-helper.positive)::before {
  content: "✓";
  background: #d5ede1;
  color: #23654b;
}
.ptfr-2027 .message-helper.warning {
  border-color: #efc79d;
  background: #fff1e4;
  color: #9a541d;
}
.ptfr-2027 .message-helper.warning::before {
  content: "!";
  background: #f9dfc1;
  color: #9a541d;
}
.ptfr-2027 :is(.message-helper.error,.message-helper.danger) {
  border-color: #edbec7;
  background: #fff0f2;
  color: #9c2841;
}
.ptfr-2027 :is(.message-helper.error,.message-helper.danger)::before {
  content: "×";
  background: #f6d9df;
  color: #9c2841;
}
.ptfr-2027 :is(.message-helper.member-only,.message-helper.modo-only,.message-helper.admin-only) {
  border-color: #d0c1e4;
  background: #f4edfb;
  color: #654188;
}
.ptfr-2027 :is(.message-helper.member-only,.message-helper.modo-only,.message-helper.admin-only)::before {
  background: #e7dcf6;
  color: #654188;
}
.ptfr-2027 .message-helper a {
  color: inherit;
  font-weight: 700;
}
/* Dans le texte, un lien annoté ne devient jamais une grosse alerte. */
.ptfr-2027 .forum-post-content .ptfr-text-link {
  display: inline; padding: 0; margin: 0; border: 0; background: transparent;
}
/* Code, tableaux, listes et paragraphes éditoriaux : chacun son rythme. */
.ptfr-2027 :is(pre,.formatter-code .formatter-content) { max-width: 100%; overflow-x: auto; }
.ptfr-2027 pre { padding: 13px 15px; border: 1px solid #d5caeb; border-radius: 9px; background: #f5f1fa; }
.ptfr-2027 code { font-family: ui-monospace, Consolas, monospace; }
.ptfr-2027 table.formatter-table { width: 100%; max-width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #c4d5e7; border-radius: 9px; overflow: hidden; }
.ptfr-2027 table.formatter-table :is(th,td) { padding: 9px 12px; border-bottom: 1px solid #dce5ed; }
.ptfr-2027 table.formatter-table th { background: #e4effb; color: #275b8a; }
.ptfr-2027 .formatter-content :is(ul,ol), .ptfr-2027 :is(.formatter-ul,.formatter-ol) { padding-left: 1.5em; margin: 9px 0 11px; }
.ptfr-2027 .formatter-acronym { text-decoration: underline dotted #7a91ab; text-underline-offset: 3px; }
.ptfr-2027 :is(.bbcode-editor,.bbcode-bar,.formatter-bar,.bbcode-toolbar) { background: var(--soft); border: 1px solid var(--line); border-radius: var(--control-radius); }
.ptfr-2027 :is(.bbcode-editor,.bbcode-toolbar,.formatter-bar) a:hover { background: var(--tint); }
@media (max-width: 600px) {
  .ptfr-2027 :is(.formatter-code,.formatter-fieldset) { margin: 10px 0; padding: 10px 12px; }
  .ptfr-2027 .formatter-container.formatter-blockquote { margin: 12px 0; padding: 12px 12px 13px 14px; }
  .ptfr-2027 .formatter-container.formatter-blockquote::before { left: 12px; top: 12px; width: 32px; height: 32px; font-size: 18px; }
  .ptfr-2027 .formatter-container.formatter-blockquote > :is(.formatter-title,.formatter-content) { margin-left: 42px; }
  .ptfr-2027 .formatter-container.formatter-blockquote > .formatter-title { min-height: 32px; font-size: 1.02em; }
  .ptfr-2027 .formatter-block { margin-left: 14px; padding-left: 12px; }
  /* Encadrés BBCode sur mobile : réserver la place de l'icône, même si le texte
     passe sur plusieurs lignes. Ne jamais superposer l'icône au contenu. */
  .ptfr-2027 .message-helper {
    width: 100%; max-width: 100%; box-sizing: border-box;
    padding: 12px 12px 12px 49px;
    min-height: 48px; overflow-wrap: anywhere;
  }
  .ptfr-2027 .message-helper::before {
    top: 12px; left: 12px; transform: none;
    width: 25px; height: 25px; margin: 0;
  }
}

/* Forum et messages. */
.ptfr-2027 #module-forum > article, .ptfr-2027 #module-forum article[id^="article-forum-"] { margin-block: var(--space); min-width: 0; }
.ptfr-2027 #module-forum article > header h2 {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--heading-fill);
  color: var(--ink);
  font-size: 1.15rem;
}
.ptfr-2027 .forum-cat-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ptfr-2027 .forum-cat-title > i { width: 34px; height: 34px; border-radius: 8px; background: var(--blue); }
.ptfr-2027 .forum-cat-title a, .ptfr-2027 a.forum-color-accueil { color: var(--blue); font-weight: 690; text-decoration: none; }
.ptfr-2027 :is(.forum-cat-title a, a.forum-color-accueil):hover { color: var(--link); }
.ptfr-2027 a.forum-color-accueil .smaller { font-weight: 400; }
.ptfr-2027 #module-forum .forum-contents { padding: 0; border-start-start-radius: 0; border-start-end-radius: 0; }
.ptfr-2027 .forum-table { table-layout: auto; }
.ptfr-2027 .forum-table :is(.forum-topic, .forum-last-topic) { white-space: normal; overflow-wrap: anywhere; }
.ptfr-2027 #module-forum :is(.forum-table, .forum-topic-toolbar h1, .ptfr-message-header) a { text-decoration: none; }
.ptfr-2027 #module-forum :is(.forum-table, .ptfr-message-header) a:hover { color: var(--brand-hover); }
.ptfr-2027 .forum-table .forum-announce-topic { width: 54px; text-align: center; color: var(--brand); }
.ptfr-2027 .forum-table .forum-announce-topic > i { display: inline-grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; background: var(--tint); }
.ptfr-2027 .forum-table :is(.forum-message-nb, .forum-view) { white-space: nowrap; }
.ptfr-2027 .forum-table .last-topic-date a, .ptfr-2027 .color-date-info-message { color: var(--muted); font-size: .86em; }
.ptfr-2027 :is(.pagination-forum-forum, .actions, .ptfr-message-actions, .ptfr-comment-actions, .ptfr-moderation-actions) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ptfr-2027 :is(.ptfr-message-action, .ptfr-comment-action) {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--soft);
  color: var(--brand);
  text-decoration: none;
}
.ptfr-2027 :is(.ptfr-message-action, .ptfr-comment-action):hover { background: var(--tint); color: var(--brand); }
.ptfr-2027 :is(.ptfr-message-action-delete, .ptfr-message-action-report) { background: var(--danger); color: #fff; }
.ptfr-2027 :is(.ptfr-message-action-delete, .ptfr-message-action-report):hover { background: var(--danger-hover); color: #fff; }
.ptfr-2027 :is(.msg-container, .msg-container2) {
  min-width: 0;
  margin: var(--space) 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ptfr-2027 .msg-contents-container { min-width: 0; }
.ptfr-2027 .msg-contents { min-width: 0; padding: clamp(13px, 2.1vw, 24px); }
.ptfr-2027 .ptfr-message-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px clamp(13px, 2.1vw, 24px);
  border-bottom: 1px solid var(--panel-line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--heading-fill);
}
.ptfr-2027 .ptfr-message-header > * { min-width: 0; }
.ptfr-2027 .ptfr-message-author, .ptfr-2027 .ptfr-message-author-content { float: none; min-width: 0; overflow-wrap: anywhere; }
.ptfr-2027 .ptfr-member-summary :is(.ptfr-member-summary-rank, .ptfr-member-summary-stat) { background: var(--soft); border: 1px solid var(--line); border-radius: var(--control-radius); }
.ptfr-2027 :is(.forum-post-form, .forum-poll-table) { margin-block: var(--space); }
.ptfr-2027 .footer-forum { margin-top: var(--space); }
.ptfr-2027 .forum-post-content > :first-child { margin-top: 0; }
.ptfr-2027 .forum-post-content > :last-child { margin-bottom: 0; }

/* Espace membre, écran de connexion et notifications. */
.ptfr-2027 .ptfr-dashboard { display: grid; gap: var(--space); }
.ptfr-2027 .ptfr-dashboard-header { padding: clamp(16px, 3vw, 32px); background: var(--heading-fill); border: 1px solid var(--line); border-radius: var(--radius); }
.ptfr-2027 .ptfr-dashboard-eyebrow { color: var(--link); font-size: .85rem; font-weight: 720; }
.ptfr-2027 .ptfr-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--panel-gap); margin: 0; padding: 0; list-style: none; }
.ptfr-2027 .ptfr-dashboard-card { border: 1px solid var(--panel-line); border-radius: 12px; background: var(--surface); }
.ptfr-2027 .ptfr-dashboard-card > a, .ptfr-2027 .ptfr-login-help-link {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  border-radius: inherit;
  color: var(--ink);
  text-decoration: none;
}
.ptfr-2027 .ptfr-dashboard-card > a { height: 100%; }
.ptfr-2027 .ptfr-login-help-link { border: 1px solid var(--panel-line); border-radius: 12px; background: var(--surface); }
.ptfr-2027 :is(.ptfr-dashboard-card > a, .ptfr-login-help-link):hover { background: var(--blue-soft); color: var(--blue); }
.ptfr-2027 :is(.ptfr-dashboard-icon, .ptfr-login-help-icon) { display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--brand); font-size: 1rem; }
.ptfr-2027 .ptfr-dashboard-card--staff .ptfr-dashboard-icon { background: var(--plum-soft); color: var(--plum); }
.ptfr-2027 .ptfr-dashboard-card--logout .ptfr-dashboard-icon { background: var(--danger-bg); color: var(--danger); }
.ptfr-2027 :is(.ptfr-dashboard-copy, .ptfr-login-help-text) { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ptfr-2027 :is(.ptfr-dashboard-copy, .ptfr-login-help-text) small { display: block; color: var(--muted); }
.ptfr-2027 :is(.ptfr-dashboard-badge, .connect-notification-badge) { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 20px; background: var(--warning-bg); color: var(--warning); font-size: .78rem; font-weight: 720; white-space: nowrap; }
.ptfr-2027 .ptfr-login-page { width: min(100%, 1050px); margin-inline: auto; }
/* Page connexion : véritable pictogramme Planet Truck au lieu de la pile generique. */
.ptfr-2027 .ptfr-login-brand {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 88px; height: 88px;
  padding: 5px; border: 1px solid #c2d3e3; border-radius: 50%;
  background: #fff; color: var(--brand); box-shadow: none;
}
.ptfr-2027 .ptfr-login-brand img {
  display: block; width: 76px; height: 76px; max-width: 100%;
  aspect-ratio: 1; object-fit: contain;
}
.ptfr-2027 .ptfr-login-card { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ptfr-2027 .ptfr-login-aside { position: static; display: flex; align-items: center; padding: clamp(22px, 4.5vw, 55px); background: var(--tint); border-radius: var(--radius) 0 0 var(--radius); }
.ptfr-2027 .ptfr-login-aside-mark { display: none; }
.ptfr-2027 .ptfr-login-eyebrow { display: block; color: var(--brand); font-size: .82rem; font-weight: 720; margin-block: 16px 6px; }
.ptfr-2027 .ptfr-login-aside p { color: var(--muted); }
.ptfr-2027 .ptfr-login-main { min-width: 0; padding: clamp(18px, 3vw, 38px); }
.ptfr-2027 .ptfr-login-form-container fieldset { border: 0; padding: 0; }
.ptfr-2027 .ptfr-login-help-grid { display: grid; gap: 9px; margin-top: 16px; }
.ptfr-2027 :is(.ptfr-login-external, .ptfr-login-separator) { margin-top: 13px; }
.ptfr-2027 .ptfr-login-social-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--control-radius); }
.ptfr-2027 :is(.notification, .notification-item, .ptfr-notification-row, .ptfr-message-row) { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.ptfr-2027 :is(.notification, .notification-item, .ptfr-notification-row, .ptfr-message-row) + :is(.notification, .notification-item, .ptfr-notification-row, .ptfr-message-row) { margin-top: 8px; }

@media (min-width: 1025px) {
  .ptfr-2027 .site-layout:has(> #menu-left) { grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); }
  .ptfr-2027 .site-layout:has(> #menu-right) { grid-template-columns: minmax(0, 1fr) minmax(210px, 250px); }
  .ptfr-2027 .site-layout:has(> #menu-left):has(> #menu-right) { grid-template-columns: minmax(185px, 225px) minmax(0, 1fr) minmax(185px, 225px); }
}
@media (max-width: 1024px) {
  .ptfr-2027 .site-layout > #main { grid-row: 1; }
  .ptfr-2027 .site-layout > :is(#menu-left, #menu-right) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }
}
@media (max-width: 720px) {
  .ptfr-2027 .site-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .ptfr-2027 .site-nav { grid-row: 2; grid-column: 1 / -1; gap: 5px; }
  .ptfr-2027 .site-nav a { padding-inline: 9px; }
  .ptfr-2027 .site-brand { font-size: 1rem; gap: 8px; }
  .ptfr-2027 .site-account a { padding-inline: 9px; font-size: .85rem; }
  .ptfr-2027 .site-mark { width: 36px; height: 36px; }
  .ptfr-2027 .site-footer-links nav a { padding-inline: 7px; }
  .ptfr-2027 .ptfr-login-card { grid-template-columns: minmax(0, 1fr); }
  .ptfr-2027 .ptfr-login-aside { border-radius: var(--radius) var(--radius) 0 0; }
  .ptfr-2027 .forum-table :is(th, td) { padding: 9px; }
  .ptfr-2027 .forum-table .forum-announce-topic { width: 35px; }
}
@media (max-width: 540px) {
  .ptfr-2027 .forum-table :is(.forum-message-nb, .forum-view, .forum-author) { display: none; }
  .ptfr-2027 .forum-table .forum-last-topic { font-size: .82rem; }
  .ptfr-2027 .forum-table .forum-announce-topic > i { width: 24px; height: 24px; }
}
@media print {
  .ptfr-2027 :is(.site-header, .site-footer, #menu-left, #menu-right, .connect-menu, .site-skip) { display: none; }
  body.ptfr-2027 { background: #fff; color: #000; }
  .ptfr-2027 .site-layout { display: block; width: 100%; }
}

/* Raccourcis de modules, barres d’édition et menus secondaires. */
/* Menus flottants partagés. Leur position reste indépendante du contenu derrière. */
.ptfr-2027 details[data-base-menu] { position: relative; }
.ptfr-2027 details[data-base-menu][open] { z-index: 5; }
.ptfr-2027 details[data-base-menu] > summary { list-style: none; }
.ptfr-2027 details[data-base-menu] > summary::-webkit-details-marker { display: none; }
.ptfr-2027 details[data-base-menu] > .base-menu-panel {
  position: absolute;
  inset: calc(100% + 8px) auto auto var(--menu-offset, 0px);
  width: min(254px, calc(100vw - 20px));
  max-height: var(--menu-height, min(420px, 55vh));
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--menu-shadow);
  list-style: none;
}
.ptfr-2027 details[data-base-menu] > .base-menu-panel[data-align="end"] { inset-inline: var(--menu-offset, auto) 0; }
.ptfr-2027 details[data-base-menu].base-menu-up > .base-menu-panel { inset-block: auto calc(100% + 8px); }
.ptfr-2027 .site-tools summary { display: flex; gap: 8px; align-items: center; min-height: 42px; padding: 7px 13px; border-radius: 9px; color: var(--muted); cursor: pointer; font-weight: 620; list-style: none; }
.ptfr-2027 .site-tools summary::-webkit-details-marker { display: none; }
.ptfr-2027 .site-tools summary:hover, .ptfr-2027 .site-tools[open] summary { background: var(--tint); color: var(--brand); }
.ptfr-2027 .site-tools li a { display: flex; justify-content: start; }
.ptfr-2027 .site-tools li + li { margin-top: 3px; }
.ptfr-2027 .site-tools li i { color: var(--brand); }

/* Communauté : grille de liens horizontale sur ordinateur ; flux vertical sur mobile.
   La structure UL/LI native et les liens PHPBoost sont conservés. */
.ptfr-2027 .site-nav .site-tools.site-community > .ptfr-community-grid {
  left:var(--menu-offset,0px);
  right:auto;
  width:min(680px,calc(100vw - 28px));
  min-width:0;
  max-height:min(580px,calc(100vh - 110px));
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
  gap:5px 9px;
  padding:15px;
  box-shadow:none;
}
.ptfr-2027 .site-tools.site-community .ptfr-community-grid .site-menu-section {
  grid-column:1/-1;
  margin:7px 0 2px;
  padding:5px 3px 7px;
  border-bottom:1px solid #cfdfeb;
  color:#426481;
  font-size:.73rem;
  letter-spacing:.06em;
  font-weight:750;
}
.ptfr-2027 .site-tools.site-community .ptfr-community-grid li {min-width:0;margin:0}
.ptfr-2027 .site-tools.site-community .ptfr-community-grid li a {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  width:100%;
  padding:10px 11px;
  background:#f1f6fb;
  border:1px solid #d6e3ee;
  border-radius:8px;
  color:#244970;
  font-size:.88rem;
  line-height:1.3;
  font-weight:600;
  text-decoration:none;
}
.ptfr-2027 .site-tools.site-community .ptfr-community-grid li a:is(:hover,:focus-visible) {
  background:#dceaf7;
  border-color:#afc9dc;
  color:#173f60;
}
.ptfr-2027 .site-tools.site-community .ptfr-community-grid li a i {
  flex:0 0 20px;
  font-size:1.1rem;
  text-align:center;
  color:#315f7d;
}
@media(max-width:990px) and (min-width:721px) {
  .ptfr-2027 .site-nav .site-tools.site-community > .ptfr-community-grid {
    width:min(565px,calc(100vw - 28px));
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:979px) {
  .ptfr-2027 .site-nav .site-tools.site-community > .ptfr-community-grid {
    position:static;
    inset:auto;
    transform:none;
    width:100%;
    max-width:100%;
    max-height:none;
    overflow:visible;
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:9px;
    box-shadow:none;
  }
}
@media(max-width:350px) {
  body.ptfr-2027 .site-bar > .site-nav > .site-tools.site-community > .base-menu-panel.ptfr-community-grid {
    grid-template-columns:minmax(0,1fr);
    max-height:65vh;
    overflow:auto;
  }
}


.ptfr-2027 .site-module-actions { position: relative; z-index: 4; margin-inline-start: auto; }
.ptfr-2027 .site-module-actions .base-menu-panel ul { margin: 3px 0 6px 12px; padding: 0 0 0 9px; border-inline-start: 1px solid var(--line); list-style: none; }
.ptfr-2027 .site-module-actions .base-menu-panel li a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ptfr-2027 .site-module-actions .base-menu-panel li a:hover { background: var(--tint); color: var(--brand); }
.ptfr-2027 :is(a, summary).action-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 42px;
  min-height: 42px;
  gap: 5px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--brand);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
.ptfr-2027 :is(a, summary).action-icon:hover { color: var(--brand); background: var(--tint); border-color: var(--panel-line); }
.ptfr-2027 summary.action-icon-primary { background: var(--brand); color: #fff; border-color: transparent; }
.ptfr-2027 summary.action-icon-primary:hover, .ptfr-2027 details[open] > summary.action-icon-primary { background: var(--brand-hover); color: #fff; }
.ptfr-2027 a.action-icon-danger { color: var(--danger); background: var(--danger-bg); border-color: #edc2c8; }
.ptfr-2027 a.action-icon-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }

/* Le sujet, les raccourcis et les commandes forment un ensemble compact. */
.ptfr-2027 #main-content > .site-page-content:has(> #module-forum) { margin-top: clamp(12px, 1.4vw, 19px); }
.ptfr-2027 #module-forum #forum-top { margin: 0 0 14px; padding: 0; }
.ptfr-2027 #module-forum #forum-top:not(:has(.forum-shortcuts)) { display: none; }
.ptfr-2027 #module-forum #forum-top .forum-links { display: flex; justify-content: end; float: none; margin: 0; }
.ptfr-2027 .forum-shortcuts ul { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; list-style: none; margin: 0; padding: 0; }
.ptfr-2027 .forum-shortcuts li { margin: 0; padding: 0; }
.ptfr-2027 .forum-shortcuts :is(#nbr_unread_topics_top, #nbr_unread_topics_bottom) { padding: 3px 5px; color: var(--brand); background: var(--tint); border-radius: 20px; font-size: .73rem; }
.ptfr-2027 #module-forum article > .forum-topic-header { margin: 0; }
.ptfr-2027 .forum-topic-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: clamp(14px, 2.2vw, 28px);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--heading-fill);
  box-shadow: var(--shadow);
}
.ptfr-2027 .forum-topic-toolbar h1 { min-width: 0; margin: 0; color: var(--ink); font-size: clamp(1.35rem, 2.25vw, 2.15rem); overflow-wrap: anywhere; }
.ptfr-2027 .forum-topic-toolbar h1 a { color: inherit; text-decoration: none; }
.ptfr-2027 .forum-topic-toolbar h1 a:hover { color: var(--brand); }
.ptfr-2027 .forum-topic-commands { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.ptfr-2027 .forum-topic-commands > .basic-button { min-height: 42px; }
.ptfr-2027 .forum-topic-header .pagination-forum-forum { margin-top: 12px; }
.ptfr-2027 #module-forum .msg-position { margin-top: var(--panel-gap); }
.ptfr-2027 #module-forum .msg-contents-info.ptfr-message-header { align-items: center; padding: 11px clamp(13px, 2vw, 22px); }
.ptfr-2027 #module-forum .msg-contents-info .ptfr-message-author { padding: 0; }
.ptfr-2027 #module-forum .msg-contents-info .color-date-info-message { min-height: 0; padding: 0; color: var(--brand); }
.ptfr-2027 #module-forum .msg-contents-info .color-date-info-message:hover { color: var(--ink); }
/* Lien d'edition du message : bouton d'action, pas icone flottante. */
body.ptfr-2027 #module-forum .msg-contents-info a.ptfr-message-edit-link {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #7acc9e;
  border-radius: 8px;
  background: #b6eccb;
  color: #17613f;
  text-decoration: none;
  line-height: 1;
  transition: background-color .12s ease, border-color .12s ease;
}
body.ptfr-2027 #module-forum .msg-contents-info a.ptfr-message-edit-link:is(:hover,:focus-visible) {
  border-color: #59b585;
  background: #94dfb4;
  color: #104c30;
}
body.ptfr-2027 #module-forum .msg-contents-info a.ptfr-message-edit-link i { color: inherit; font-size: 15px; }

.ptfr-2027 .forum-page-title { margin: 0; }
.ptfr-2027 .progressbar-container .progressbar { background: #9fbad7; }
.ptfr-2027 .progressbar-infos { color: var(--ink); font-weight: 650; }
.ptfr-2027 .bbcode-block { padding: 12px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--surface); box-shadow: 0 12px 32px #18253222; }
.ptfr-2027 .site-info-popup { border: 1px solid var(--line); box-shadow: 0 16px 50px #18253233; }
.ptfr-2027 .site-info-popup-close { background: var(--tint); color: var(--ink); }
.ptfr-2027 .site-info-popup-close:hover { background: var(--line); color: var(--ink); }
.ptfr-2027 #module-mini-notifications.module-mini-container { margin: 0; float: none; }
.ptfr-2027 :is(.list-type-icon, .background-nbr-notifs, .nbr-notif) { border-radius: 8px; background: var(--tint); color: var(--brand); text-align: center; }
.ptfr-2027 .ptfr-message-header .msg-avatar-mbr img { border-radius: 50%; }
.ptfr-2027 .footer-forum { display: flow-root; }
.ptfr-2027 #message-maintain.admin-maintenance-notice { position: relative; background: var(--warning-bg); color: var(--warning); }
.ptfr-2027 #message-maintain:not(.admin-maintenance-notice) { background: var(--warning-bg); color: var(--warning); }
@media (max-width: 720px) {
  .ptfr-2027 .site-tools summary { padding-inline: 9px; }
  .ptfr-2027 .site-tools > .base-menu-panel { max-width: calc(100vw - 24px); }
  .ptfr-2027 .modal { width: calc(100vw - 24px); min-width: 0; }
}

/* Vues additionnelles présentes dans la référence. */
.ptfr-2027 :is(.carburator-panel, .carburator-stat-card, .carburator-vehicle-card, .driverpay-panel, .driverpay-stats-panel, .driverpay-stat-card, .rse-category-card, .rse-lesson, .rse-question, .rse-admin-card, .base2020-search-result-item, .ptfr-comments-filter, .ptfr-comments-empty) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ptfr-2027 :is(.carburator-stat-card, .driverpay-stat-card, .rse-lesson-summary, .rse-lesson-panel, .rse-case-study, .rse-explanation) { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.ptfr-2027 :is(.carburator-page-header, .driverpay-page-header, .ptfr-user-hero) { margin-bottom: var(--space); padding: clamp(15px, 2.4vw, 28px); background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); }
.ptfr-2027 :is(.carburator-button, .driverpay-button, .rse-button, .ptfr-access-button) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 12px; background: var(--brand); color: #fff; border-radius: var(--control-radius); font-weight: 620; text-decoration: none; }
.ptfr-2027 :is(.carburator-button, .driverpay-button, .rse-button, .ptfr-access-button):hover { background: var(--brand-hover); color: #fff; }
.ptfr-2027 :is(.carburator-notice, .carburator-field-warning, .driverpay-notice) { padding: 12px 15px; border: 1px solid #ebc9aa; border-radius: var(--control-radius); background: var(--warning-bg); color: var(--warning); }
.ptfr-2027 :is(.carburator-muted, .carburator-field-help, .driverpay-help) { color: var(--muted); }
.ptfr-2027 :is(.carburator-table-wrap, .driverpay-table-wrap) { max-width: 100%; overflow-x: auto; }
.ptfr-2027 :is(.rse-category-icon, .calendar-week) { background: var(--tint); color: var(--brand); }
.ptfr-2027 .base2020-search-result-item { margin-block: 10px; padding: 12px 15px; }
.ptfr-2027 .site-nav a:is([aria-current="page"], [aria-current="location"]) { background: var(--tint); color: var(--brand); }

/* Compatibilité avec le menu historique des installations PHPBoost personnalisées. */
.ptfr-2027 .site-context > .cssmenu-actionslinks {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  float: none;
  margin: 0 0 0 auto;
}
.ptfr-2027 .site-context > .cssmenu-actionslinks > .menu-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  float: none;
  padding: 0;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--brand);
  color: #fff;
  font-size: 0;
  cursor: pointer;
}
.ptfr-2027 .site-context > .cssmenu-actionslinks > .menu-button::before {
  position: static;
  width: 20px;
  height: 16px;
  background: radial-gradient(circle, currentColor 2px, transparent 2.5px) left center / 33.333% 100% repeat-x;
  content: '';
}
.ptfr-2027 .site-context > .cssmenu-actionslinks > .menu-button::after { content: none; }
.ptfr-2027 .site-context > .cssmenu-actionslinks > .menu-button:is(:hover, :focus-visible, .menu-opened) { background: var(--brand-hover); }
.ptfr-2027 .site-context > .cssmenu-actionslinks > .menu-button.menu-opened + ul {
  left: auto;
  right: 0;
}

/* Navigation Planet Truck — logo officiel et rubriques restaurées. */
.ptfr-2027 .site-brand .site-mark-logo { width: 44px; height: 44px; padding: 0; background: #fff; border-radius: 50%; overflow: hidden; }
.ptfr-2027 .site-brand .site-mark-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ptfr-2027 .site-tools > summary { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.ptfr-2027 .site-tools > summary > i { color: var(--brand); }
.ptfr-2027 .site-tools .base-menu-panel { min-width: 230px; }
.ptfr-2027 .site-tools .base-menu-panel a { justify-content: flex-start; white-space: normal; line-height: 1.4; }
.ptfr-2027 .site-nav > a:is(:hover, :focus-visible), .ptfr-2027 .site-tools summary:is(:hover,:focus-visible) { background: var(--tint); color: var(--brand); }
.ptfr-2027 .site-nav :is(a, summary, button) { transition: background-color .12s ease, color .12s ease; }
@media (max-width: 1190px) {
  .ptfr-2027 .site-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .ptfr-2027 .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ptfr-2027 .site-nav { gap: 2px 5px; }
  .ptfr-2027 .site-nav > a, .ptfr-2027 .site-nav > .site-tools > summary { min-height: 38px; padding: 6px 9px; font-size: .83rem; }
  .ptfr-2027 .site-tools .base-menu-panel { min-width: min(270px, calc(100vw - 28px)); }
}


.ptfr-2027 .site-tools .site-menu-section { padding: 8px 11px 3px; list-style: none; color: var(--muted); font-weight: 750; font-size: .72rem; text-transform: uppercase; letter-spacing: .045em; }
.ptfr-2027 .site-tools .base-menu-panel > .site-menu-section + li { margin-top: 0; }


/* Mobile/tablette : navigation compacte et sous-menus dans le flux, sans volet flottant. */
@media (max-width: 979px) {
  .ptfr-2027 .site-bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
    padding-block: 9px;
    align-items: center;
  }
  .ptfr-2027 .site-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    gap: 8px;
    font-size: 1rem;
    line-height: 1.25;
  }
  .ptfr-2027 .site-brand > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .ptfr-2027 .site-brand .site-mark-logo { width: 38px; height: 38px; }
  .ptfr-2027 .site-account { grid-row: 1; grid-column: 2; justify-self: end; }
  .ptfr-2027 .site-account > a {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .9rem;
  }
  .ptfr-2027 .site-mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 44px;
    min-width: 83px;
    padding: 8px 12px;
    border: 1px solid #b7c9db;
    border-radius: 10px;
    color: var(--brand);
    background: #e8f0f9;
    font-size: .87rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
  }
  .ptfr-2027 .site-mobile-menu-toggle:is(:hover,:focus-visible),
  .ptfr-2027 .site-mobile-menu-toggle[aria-expanded="true"] { background: #d7e6f6; border-color: #94afca; color: #193e66; }
  .ptfr-2027 .site-mobile-menu-toggle i { font-size: 1rem; }
  .ptfr-2027 .site-bar.has-mobile-navigation:not(.mobile-navigation-open) > .site-nav { display: none; }
  .ptfr-2027 .site-bar > .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 2px 0 0;
    padding: 12px;
    border: 1px solid #cbd9e7;
    border-radius: 13px;
    background: #f5f8fc;
    box-shadow: 0 5px 15px #17283c0d;
  }
  .ptfr-2027 .site-bar > .site-nav > a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 66px;
    gap: 5px;
    padding: 8px 3px;
    border: 1px solid #d3dfeb;
    border-radius: 10px;
    background: #fff;
    color: #23486f;
    font-size: .8rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
  }
  .ptfr-2027 .site-bar > .site-nav > a > i { font-size: 1.15rem; color: #3470a6; }
  .ptfr-2027 .site-bar > .site-nav > a:is(:hover,:focus-visible),
  .ptfr-2027 .site-bar > .site-nav > a[aria-current] {
    border-color: #23486f;
    background: #23486f;
    color: #fff;
  }
  .ptfr-2027 .site-bar > .site-nav > a:is(:hover,:focus-visible,[aria-current]) > i { color: #fff; }
  .ptfr-2027 .site-bar > .site-nav > .site-tools { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .ptfr-2027 .site-bar > .site-nav > .site-tools > summary {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #d0ddea;
    border-radius: 10px;
    background: #fff;
    color: #23486f;
    font-size: .9rem;
    line-height: 1.3;
    font-weight: 680;
  }
  .ptfr-2027 .site-bar > .site-nav > .site-tools > summary > i { color: #3572a5; font-size: 1.05rem; }
  .ptfr-2027 .site-bar > .site-nav > .site-tools > summary::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }
  .ptfr-2027 .site-bar > .site-nav > .site-tools[open] > summary {
    border-color: #9dbad4;
    background: #e6f0fa;
  }
  .ptfr-2027 .site-bar > .site-nav > .site-tools[open] > summary::after { transform: rotate(225deg); }
  .ptfr-2027 .site-bar > .site-nav > .site-tools > .base-menu-panel {
    position: static;
    inset: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    padding: 8px;
    margin: 5px 0 0;
    border: 1px solid #d4e0ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
  }
  .ptfr-2027 .site-bar > .site-nav > .site-tools .site-menu-section {
    margin: 6px 0 4px;
    padding: 6px 9px 3px;
    color: #56728e;
  }
  .ptfr-2027 .site-bar > .site-nav > .site-tools .base-menu-panel li a {
    min-height: 43px;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #23486f;
    font-size: .88rem;
    font-weight: 570;
  }
  .ptfr-2027 .site-bar > .site-nav > .site-tools .base-menu-panel li a:is(:hover,:focus-visible) {
    background: #eaf2fa;
    color: #193b60;
  }
  .ptfr-2027 .site-bar > .site-nav > .site-tools .base-menu-panel li a i {
    width: 18px;
    text-align: center;
    color: #3174a7;
  }
}
@media (max-width: 560px) {
  .ptfr-2027 .site-bar { gap: 7px; }
  .ptfr-2027 .site-account > a { width: 44px; padding: 7px; }
  .ptfr-2027 .site-account > a > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .ptfr-2027 .site-mobile-menu-toggle { min-width: 77px; padding-inline: 10px; }
  .ptfr-2027 .site-bar > .site-nav { padding: 10px; gap: 7px; }
}

/* PTFR-2027 V55 — page active visible sur TOUTES les paginations.
   Couvre le rendu natif PHPBoost (current-page), les variantes des modules
   (current/page-current/aria-current) et la recherche AJAX (pagination_current_page).
   La regle est volontairement limitee aux CONTENEURS de pagination :
   aucune incidence sur les onglets et autres boutons du site. */
body.ptfr-2027 :is(
  .pagination, .pagination-block, .pagination-container,
  .pagination-forum-forum, .pagin-forum, .pages-pagination,
  .PaginationResults, .base2020-search-pagination,
  .ptfr-membermsg-pagination, .ptfr-track-pagination,
  .ptfr-comments-pagination, .media-pagination, .news-feed-pagination
) :is(
  a.current-page, a.page-current, a.current, a[aria-current="page"],
  span.current-page, span.page-current, span.current,
  .pagination_current_page,
  li.current-page, li.page-current, li.current,
  li.active > a, li.active > span,
  li.current-page > a, li.page-current > a, li.current > a,
  .pagination_current_page > a
) {
  background: var(--brand, #23486f) !important;
  color: #fff !important;
  border: 1px solid var(--brand, #23486f) !important;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none !important;
}
/* Les liens internes aux elements actifs restent lisibles, meme apres survol. */
body.ptfr-2027 :is(
  .pagination, .pagination-block, .pagination-container,
  .pagination-forum-forum, .pagin-forum, .pages-pagination,
  .PaginationResults, .base2020-search-pagination
) :is(
  .pagination_current_page, li.current-page, li.page-current,
  li.current, li.active, span.current-page, span.page-current, span.current
) > a:is(:hover, :focus-visible) {
  background: var(--brand, #23486f) !important;
  color: #fff !important;
  border-color: var(--brand, #23486f) !important;
}

/* V57 — Actualités : 3 fonctions distinctes, 3 fonds clairs et contrastés. */
body.ptfr-2027 #module-news .news-entry-meta > :is(.news-meta-author, .more-element-author) {
  background: #e2eefb; border: 1px solid #b8d2eb; color: #174a79;
}
body.ptfr-2027 #module-news .news-entry-meta > :is(.news-meta-date, .more-element-date) {
  background: #f0f3f6; border: 1px solid #d4dce4; color: #40566c;
}
body.ptfr-2027 #module-news .news-entry-meta > :is(.news-meta-category, .more-element-category) {
  background: #fff0da; border: 1px solid #efcda0; color: #7d461d;
}
body.ptfr-2027 #module-news .news-entry-meta > :is(.news-meta-author, .news-meta-date, .news-meta-category, .more-element-author, .more-element-date, .more-element-category) {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px;
  padding: 5px 11px; border-radius: 9px; font-size: .85rem;
  font-weight: 570; line-height: 1.3;
}
body.ptfr-2027 #module-news .news-entry-meta > :is(.news-meta-author, .more-element-author):has(a):hover { background: #d0e4f8; }
body.ptfr-2027 #module-news .news-entry-meta > :is(.news-meta-category, .more-element-category):hover { background: #ffe5c2; }
body.ptfr-2027 #module-news .news-entry-meta > :is(.news-meta-author, .news-meta-date, .news-meta-category, .more-element-author, .more-element-date, .more-element-category) :is(a, a:visited, time, i) {
  color: inherit; background: transparent; border: 0; text-decoration: none;
}
body.ptfr-2027 #module-news .news-entry-meta > :is(.news-meta-author, .news-meta-category, .more-element-author, .more-element-category) a:is(:hover, :focus-visible) {
  color: inherit; text-decoration: underline;
}
@media (max-width: 560px) {
  body.ptfr-2027 #module-news .news-entry-meta { gap: 7px; }
  body.ptfr-2027 #module-news .news-entry-meta > :is(.news-meta-author, .news-meta-date, .news-meta-category, .more-element-author, .more-element-date, .more-element-category) {
    font-size: .8rem; padding: 5px 9px; min-height: 30px; max-width: 100%;
  }
}


/* V58 — Messagerie privée : composants dédiés, accessibles et sans conflit
   avec les actions des commentaires ou des messages du forum. */
body.ptfr-2027 :is(#module-user-convers,#module-user-pm,#module-user-edit-pm,#module-user-post-convers) .ptfr-user-hero h1 {
  display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; row-gap: 6px;
  min-width: 0; overflow-wrap: anywhere;
}
body.ptfr-2027 :is(#module-user-convers,#module-user-pm,#module-user-edit-pm,#module-user-post-convers) .ptfr-pm-inbox-entry {
  display: inline-flex; align-items: center; max-width: 100%;
  font-size: 15px; font-weight: 700; line-height: 1.35;
}
body.ptfr-2027 :is(#module-user-convers,#module-user-pm,#module-user-edit-pm,#module-user-post-convers) .ptfr-pm-inbox-entry > a,
body.ptfr-2027 :is(#module-user-convers,#module-user-pm,#module-user-edit-pm,#module-user-post-convers) .ptfr-pm-inbox-entry > a:visited {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 100%; min-height: 39px; padding: 8px 13px;
  border: 1px solid #23486f; border-radius: 9px;
  background: #23486f; color: #fff; font-size: 15px;
  font-weight: 700; line-height: 1.2; text-decoration: none;
}
body.ptfr-2027 :is(#module-user-convers,#module-user-pm,#module-user-edit-pm,#module-user-post-convers) .ptfr-pm-inbox-entry > a:is(:hover,:focus-visible) {
  background: #34628f; border-color: #34628f; color: #fff;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-title-separator { color: #70849a; font-weight: 450; }
body.ptfr-2027 #module-user-pm .ptfr-pm-thread-title { color: #173652; font-size: clamp(1.15rem,2vw,1.5rem); font-weight: 730; }

/* La date reste une information, pas un gros bouton primaire. */
body.ptfr-2027 #module-user-pm .message-date.ptfr-pm-date-row {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-start;
  width: auto; max-width: 100%; min-width: 0;
  margin: 0; padding: 13px 15px 6px;
  background: transparent; border: 0; box-shadow: none;
  text-align: left;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-date-badge {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content; max-width: 100%; min-height: 35px;
  margin: 0; padding: 7px 12px; border: 1px solid #d2dce7;
  border-radius: 9px; background: #eef3f8; color: #3d5872;
  font-size: 14px; font-weight: 570; line-height: 1.35;
  white-space: normal; overflow-wrap: anywhere; box-shadow: none;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-date-badge i {
  flex: 0 0 auto; color: #527594; font-size: 15px; margin: 0;
}

/* ID, modification et suppression : mêmes dimensions, couleurs par fonction. */
body.ptfr-2027 #module-user-pm .ptfr-pm-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 18px 0 0; padding: 0; width: auto; max-width: 100%;
  float: none; text-align: left;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-actions .ptfr-pm-action,
body.ptfr-2027 #module-user-pm .ptfr-pm-actions .ptfr-pm-action:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; min-width: 0; min-height: 38px; padding: 8px 12px;
  border: 1px solid transparent; border-radius: 9px;
  font-size: 14px; font-weight: 680; line-height: 1.2;
  text-decoration: none; box-shadow: none; transform: none;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-action i { margin: 0; font-size: 15px; color: inherit; }
body.ptfr-2027 #module-user-pm .ptfr-pm-action--id,
body.ptfr-2027 #module-user-pm .ptfr-pm-action--id:visited {
  background: #e8f0f9; border-color: #c8d9ea; color: #214c77;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-action--id:is(:hover,:focus-visible) {
  background: #d4e6f7; border-color: #b4cce4; color: #173e66;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-action--edit,
body.ptfr-2027 #module-user-pm .ptfr-pm-action--edit:visited {
  background: #23486f; border-color: #23486f; color: #fff;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-action--edit:is(:hover,:focus-visible) {
  background: #34628f; border-color: #34628f; color: #fff;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-action--delete,
body.ptfr-2027 #module-user-pm .ptfr-pm-action--delete:visited {
  background: #a12b45; border-color: #a12b45; color: #fff;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-action--delete:is(:hover,:focus-visible) {
  background: #b7465f; border-color: #b7465f; color: #fff;
}

/* Formulaires de rédaction / réponse / édition : boutons uniformes. */
body.ptfr-2027 :is(#module-user-post-convers,#module-user-edit-pm,.post-pm) .ptfr-pm-form-actions {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  gap: 9px; margin: 15px 0; padding: 0; text-align: right;
}
body.ptfr-2027 :is(#module-user-post-convers,#module-user-edit-pm,.post-pm) .ptfr-pm-form-actions > button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 41px; min-width: 0; margin: 0; padding: 9px 16px;
  border: 1px solid transparent; border-radius: 9px;
  font-size: 14px; font-weight: 700; line-height: 1.2;
  text-decoration: none; box-shadow: none; transform: none;
}
body.ptfr-2027 :is(#module-user-post-convers,#module-user-edit-pm,.post-pm) .ptfr-pm-submit {
  background: #27664e; border-color: #27664e; color: #fff;
}
body.ptfr-2027 :is(#module-user-post-convers,#module-user-edit-pm,.post-pm) .ptfr-pm-submit:is(:hover,:focus-visible) {
  background: #348569; border-color: #348569; color: #fff;
}
body.ptfr-2027 :is(#module-user-post-convers,#module-user-edit-pm,.post-pm) .ptfr-pm-preview {
  background: #23486f; border-color: #23486f; color: #fff;
}
body.ptfr-2027 :is(#module-user-post-convers,#module-user-edit-pm,.post-pm) .ptfr-pm-preview:is(:hover,:focus-visible) {
  background: #34628f; border-color: #34628f; color: #fff;
}
body.ptfr-2027 :is(#module-user-post-convers,#module-user-edit-pm,.post-pm) .ptfr-pm-reset {
  background: #e7edf4; border-color: #c9d5e1; color: #314c66;
}
body.ptfr-2027 :is(#module-user-post-convers,#module-user-edit-pm,.post-pm) .ptfr-pm-reset:is(:hover,:focus-visible) {
  background: #d6e2ef; border-color: #b8ccdf; color: #213d59;
}
body.ptfr-2027 #module-user-post-convers .ptfr-pm-search {
  min-height: 39px; padding: 7px 13px; border: 1px solid #23486f;
  border-radius: 9px; background: #23486f; color: #fff;
  font-size: 14px; font-weight: 680;
}
body.ptfr-2027 #module-user-post-convers .ptfr-pm-search:is(:hover,:focus-visible) {
  background: #34628f; border-color: #34628f; color: #fff;
}
@media (max-width: 640px) {
  body.ptfr-2027 #module-user-pm .message-date.ptfr-pm-date-row {
    grid-column: 1; grid-row: 2; padding: 9px 12px 5px; width: 100%;
  }
  body.ptfr-2027 #module-user-pm .ptfr-pm-actions { gap: 7px; }
  body.ptfr-2027 #module-user-pm .ptfr-pm-actions .ptfr-pm-action { min-height: 38px; padding: 8px 10px; }
  body.ptfr-2027 #module-user-pm .ptfr-pm-date-badge { font-size: 13px; }
  body.ptfr-2027 :is(#module-user-post-convers,#module-user-edit-pm,.post-pm) .ptfr-pm-form-actions { justify-content: stretch; }
  body.ptfr-2027 :is(#module-user-post-convers,#module-user-edit-pm,.post-pm) .ptfr-pm-form-actions > button { flex: 1 1 auto; }
}

/* V58 : neutraliser le bandeau h1 historique dans la création d'un MP. */
body.ptfr-2027 #module-user-post-convers header.ptfr-user-hero h1 {
  display: block; width: auto; min-width: 0; max-width: 100%; margin: 0; padding: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  color: #173652; font-size: clamp(1.25rem,2.5vw,1.75rem);
  line-height: 1.25; text-shadow: none; text-align: left;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-title-separator {
  display: inline-block; margin-inline: 7px;
}
body.ptfr-2027 #module-user-pm .message-message .message-content {
  text-align: left; overflow-wrap: anywhere;
}


/* V61 — Messagerie : augmenter le contraste des informations date et numéro. */
body.ptfr-2027 #module-user-pm .message-date.ptfr-pm-date-row .ptfr-pm-date-badge {
  background: #d9e7f5;
  border: 1px solid #91b3d1;
  color: #153b5d;
  font-weight: 750;
}
body.ptfr-2027 #module-user-pm .message-date.ptfr-pm-date-row .ptfr-pm-date-badge i {
  color: #153b5d;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-actions a.ptfr-pm-action--id,
body.ptfr-2027 #module-user-pm .ptfr-pm-actions a.ptfr-pm-action--id:visited {
  background: #23486f;
  border-color: #23486f;
  color: #fff;
  font-weight: 750;
}
body.ptfr-2027 #module-user-pm .ptfr-pm-actions a.ptfr-pm-action--id:is(:hover,:focus-visible) {
  background: #34628f;
  border-color: #34628f;
  color: #fff;
}

/* V62 — contributions : fiches mobiles à la place du tableau 7 colonnes.
   Aucun JavaScript, aucune modification de la pagination ni des liens. */
body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table .ptfr-contrib-field-label {
  display: none;
}
body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table .ptfr-contrib-title {
  font-weight: 700;
  color: #214c72;
}
@media (max-width: 760px) {
  body.ptfr-2027 #module-user-contribution-list > .content {
    min-width: 0;
    padding-inline: clamp(10px, 3vw, 18px);
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table,
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border: 0 !important;
    background: transparent !important;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table thead {
    display: none !important;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tbody tr {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px !important;
    padding: 13px 14px !important;
    border: 1px solid #d5e1ed !important;
    border-radius: 12px;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tbody tr > td {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border: 0 !important;
    float: none !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    background: transparent !important;
    color: #203d57;
    font-size: 14px;
    line-height: 1.4;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tbody tr > td::before,
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tbody tr > td::after {
    content: none !important;
    display: none !important;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table .ptfr-contrib-field-label {
    display: block !important;
    color: #526c85;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .035em;
    line-height: 1.35;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tbody tr > td:first-child {
    grid-column: 1 / -1;
    padding: 2px 0 11px !important;
    margin-bottom: 5px !important;
    border-bottom: 1px solid #e2ebf3 !important;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table .ptfr-contrib-title {
    font-size: 16px;
    line-height: 1.38;
    text-decoration: none;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table .ptfr-contrib-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 7px;
    border: 1px solid #c4dcd2;
    color: #215e49;
    background: #e8f5ee;
    font-weight: 700;
    line-height: 1.25;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table .bkgd-color-processing .ptfr-contrib-status {
    color: #875217;
    border-color: #ead3a2;
    background: #fff3db;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table .bkgd-color-unknown .ptfr-contrib-status {
    color: #435f7e;
    border-color: #d2e0ed;
    background: #edf3f9;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tbody td a {
    color: #245581;
    text-decoration: none;
    max-width: 100%;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tbody td a:hover {
    color: #163e66;
    text-decoration: underline;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tfoot,
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tfoot tr,
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tfoot th {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tfoot {
    padding-top: 6px;
  }
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table .pagination {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
  }
}
@media (max-width: 340px) {
  body.ptfr-2027 #module-user-contribution-list .ptfr-contributions-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* V63 — Fiche de contribution : actions lisibles sur l'en-tête bleu nuit.
   Les liens et permissions restent gérés par PHPBoost. */
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 20px;
  row-gap: 12px;
  min-width: 0;
}
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-heading-title {
  flex: 1 1 250px;
  min-width: 0;
  overflow-wrap: anywhere;
  color: inherit;
}
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-heading-actions {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
}
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-action,
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-action:visited {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  transition: background-color .12s ease, border-color .12s ease;
}
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-action i {
  display: inline-block;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  margin: 0;
}
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-action-edit,
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-action-edit:visited {
  background: #e0efff;
  border-color: #b5d3ef;
  color: #173f66;
}
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-action-edit:is(:hover,:focus-visible) {
  background: #c8e2fb;
  border-color: #8bb9df;
  color: #123655;
}
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-action-delete,
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-action-delete:visited {
  background: #af2f4b;
  border-color: #af2f4b;
  color: #fff;
}
body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-action-delete:is(:hover,:focus-visible) {
  background: #ce4260;
  border-color: #ce4260;
  color: #fff;
}
@media (max-width: 600px) {
  body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-heading {
    gap: 12px;
  }
  body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-heading-title {
    flex-basis: 100%;
  }
  body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-heading-actions {
    width: 100%;
  }
  body.ptfr-2027 #module-user-consult-contribution header.ptfr-user-hero .ptfr-contrib-action {
    min-height: 42px;
  }
}

/* ==========================================================================
   V65 - Bandeau de cookies PHPBoost 5.2 : bas de l'écran
   Uniquement presentation : les choix et leur sauvegarde restent natifs.
   ========================================================================== */
#cookiebar-container.cookiebar-container {
  position: fixed !important;
  top: auto !important;
  bottom: 16px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 1040px !important;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 10000 !important;
  /* Ne pas utiliser !important : PHPBoost/jQuery doit pouvoir masquer le bandeau. */
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 20px !important;
  margin: 0 !important;
  background: #f5f8fc !important;
  border: 1px solid #bbd0e5 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: #1d4268 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-align: left !important;
}
#cookiebar-container .cookiebar-content {
  flex: 1 1 420px;
  min-width: 0;
  max-width: none;
  padding: 0 !important;
  margin: 0 !important;
  color: #1d4268 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
#cookiebar-container .cookiebar-actions {
  flex: 0 1 auto;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  margin: 0 !important;
  padding: 0 !important;
}
#cookiebar-container .cookiebar-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px !important;
  margin: 0 !important;
  border: 1px solid #23486f !important;
  border-radius: 8px !important;
  background: #23486f !important;
  color: #ffffff !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: normal;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .12s ease, border-color .12s ease !important;
  cursor: pointer;
}
#cookiebar-container .cookiebar-button:hover,
#cookiebar-container .cookiebar-button:focus-visible {
  background: #35618c !important;
  border-color: #35618c !important;
  color: #ffffff !important;
}
#cookiebar-container .cookiebar-button-declined {
  background: #e4ebf2 !important;
  color: #23486f !important;
  border-color: #c4d4e3 !important;
}
#cookiebar-container .cookiebar-button-declined:hover,
#cookiebar-container .cookiebar-button-declined:focus-visible {
  background: #d5e2ee !important;
  color: #173a5d !important;
  border-color: #a9bfd6 !important;
}
#cookiebar-container .cookiebar-more {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}
#cookiebar-container .cookiebar-more a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #1d4268 !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
#cookiebar-container .cookiebar-more a:hover,
#cookiebar-container .cookiebar-more a:focus-visible {
  background: #e1ebf5 !important;
  color: #123456 !important;
}
#cookiebar-container button:focus-visible,
#cookiebar-container a:focus-visible {
  outline: 2px solid #163e68;
  outline-offset: 2px;
}
@media (max-width: 680px) {
  #cookiebar-container.cookiebar-container {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100% - 20px) !important;
    max-height: calc(100dvh - 20px);
    padding: 14px 15px !important;
    gap: 12px;
    flex-direction: column !important;
    align-items: stretch;
    border-radius: 12px !important;
  }
  #cookiebar-container .cookiebar-content {
    flex: 0 1 auto;
    width: 100%;
  }
  #cookiebar-container .cookiebar-actions {
    width: 100%;
    flex: 0 0 auto;
  }
  #cookiebar-container .cookiebar-button {
    flex: 1 1 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #cookiebar-container .cookiebar-button { transition: none !important; }
}
@media print {
  #cookiebar-container.cookiebar-container { display: none !important; }
}


/* V66 — fermer reellement le bandeau une fois le choix enregistre.
   Le style inline display:none de PHPBoost doit primer sur l'affichage flex. */
#cookiebar-container.cookiebar-container[style*="display: none"] {
  display: none !important;
}

/* V67 — Bandeau des actualités unifié : accueil, liste et page détaillée.
   Une même valeur d'écart sépare Actualité / titre / informations. */
body.ptfr-2027 #module-news .news-entry-head {
  --ptfr-news-gap: 12px;
  display: grid;
  row-gap: var(--ptfr-news-gap);
  padding-block: 12px;
}
body.ptfr-2027 #module-news .news-entry-title-row > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ptfr-news-gap);
}
body.ptfr-2027 #module-news .news-entry-head .news-entry-kicker,
body.ptfr-2027 #module-news .news-entry-head .news-entry-meta {
  margin: 0;
}
body.ptfr-2027 #module-news .news-entry-head :is(h1, h2) {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #193d61;
  font-size: clamp(1.17rem, 1.65vw, 1.65rem) !important;
  font-weight: 690;
  line-height: 1.3;
}
@media (max-width: 600px) {
  body.ptfr-2027 #module-news .news-entry-head {
    --ptfr-news-gap: 10px;
    padding-block: 10px;
  }
}

/* PTFR V84 — cadenas uniquement pour les sujets réellement verrouillés.
   PHPBoost 5.2 fournit la classe de statut fa-announce[-new][-post|-top][-lock].
   Pas de <i> ou de cadenas par défaut dans le template : les sujets ouverts
   restent sans icône, y compris si un ancien forum.css est encore en cache. */
body.ptfr-2027 #module-forum .ptfr-topic-lock {
  display: none;
}
body.ptfr-2027 #module-forum .ptfr-topic-lock[data-lock-status$="-lock"] {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  padding: 0;
  margin: 0;
  border: 1px solid #e8a3ab;
  border-radius: 8px;
  background: #ffebed;
  color: #b51d32;
  vertical-align: middle;
}
/* V116 : le cadenas est un SVG HTML, plus un masque CSS ajouté après rendu. */
