/* ExploTerre-Terra 6.3 — corrections ciblées, après les CSS noyau et modules.
   L'interface et les modules partagent les couleurs roche / terre / eau. */
:root {
  --terra-62-wood: var(--brand);
  --terra-62-wood-hover: var(--brand-hover);
  --terra-62-stone: var(--stone);
  --terra-62-stone-dark: var(--stone-hover);
  --terra-62-slate: #425661;
  --terra-62-border: var(--panel-line);
  --terra-62-gap: clamp(12px, 1.5vw, 20px);
}
/* Do not show an obsolete, empty secondary bar after transferring the menu. */
body.exploterre-ptfr :is(#sub-header,#top-header)[hidden],
.terra-navigation-pending body:has(#site-account-links) #module-connect.connected,
.terra-navigation-pending body:has(#site-account-links) :is(#top-header,#sub-header):has(> div > #module-connect.connected:only-child) {
  display:none !important;
}

/* ACCOUNT — one working button in the top navigation; its items still come
   from the PHPBoost connect mini-menu (with real auth/notification state). */
body.exploterre-ptfr .site-account { position: relative; z-index: 1000; }
body.exploterre-ptfr .site-account-dropdown { position: relative; }
body.exploterre-ptfr .site-account-trigger {
  position: relative;
  display: inline-flex; align-items: center; gap: .65rem;
  min-height: 44px; margin: 0; padding: .7rem 1rem;
  border: 1px solid var(--terra-62-wood); border-radius: 10px;
  background: var(--terra-62-wood); color: #fff;
  font: inherit; font-size: .93rem; font-weight: 700; line-height: 1.3;
  list-style: none; cursor: pointer;
}
body.exploterre-ptfr .site-account-trigger::-webkit-details-marker { display:none; }
body.exploterre-ptfr .site-account-trigger:is(:hover,:focus-visible),
body.exploterre-ptfr .site-account-dropdown[open] > .site-account-trigger { background:var(--terra-62-wood-hover);color:#fff; }
body.exploterre-ptfr .site-account-chevron { font-size:.72rem; opacity:.84; }
body.exploterre-ptfr .site-account-dropdown[open] .site-account-chevron { transform:rotate(180deg); }
body.exploterre-ptfr .site-account-panel.base-menu-panel {
  position: absolute; top:calc(100% + 8px); right:0; left:auto;
  display: grid; gap:8px; width:min(350px,calc(100vw - 24px));
  max-height:min(75dvh,650px); overflow: auto;
  padding:12px; border:1px solid var(--terra-62-border);
  border-radius:13px; background:#fff; box-shadow:0 15px 30px rgba(41,35,29,.15);
  color:var(--ink); z-index:2000;
}
body.exploterre-ptfr .site-account-panel .site-account-profile {
  display:flex; align-items:center; gap:10px; min-height:43px;
  padding:10px 13px; border-radius:8px;
  background:var(--terra-62-wood); color:white; font-weight:700; text-decoration:none;
}
body.exploterre-ptfr .site-account-panel .site-account-profile:hover { background:var(--terra-62-wood-hover); color:white; }
body.exploterre-ptfr .site-account-panel .site-account-links { min-width:0; }
body.exploterre-ptfr .site-account-panel #module-connect { display:block; width:100%; max-width:100%; margin:0; }
body.exploterre-ptfr .site-account-panel #module-connect .connect-elements-container {
  display:grid; grid-template-columns:minmax(0,1fr); gap:6px;
  margin:0; padding:0; list-style:none;
}
body.exploterre-ptfr .site-account-panel #module-connect .connect-element { display:block; width:100%; margin:0; padding:0; list-style:none; }
body.exploterre-ptfr .site-account-panel #module-connect :is(.connect-element>a,.connect-group-toggle) {
  display:flex; align-items:center; gap:9px; width:100%; min-height:42px;
  padding:9px 12px; border:1px solid #e0d8d0; border-radius:8px;
  background:var(--soft); color:var(--ink); font-size:.9rem; font-weight:600;
  line-height:1.35; text-decoration:none; cursor:pointer;
}
body.exploterre-ptfr .site-account-panel #module-connect :is(.connect-element>a,.connect-group-toggle):is(:hover,:focus-visible) {
  background:var(--stone); border-color:var(--panel-line); color:var(--ink);
}
body.exploterre-ptfr .site-account-panel #module-connect .connect-menu-label { display:inline-flex;align-items:center;gap:9px; }
body.exploterre-ptfr .site-account-panel #module-connect .connect-menu-label i { color:#674936; }
body.exploterre-ptfr .site-account-panel #module-connect .connect-disconnect>a { background:#f7e8e9; color:#852f35; }
body.exploterre-ptfr .site-account-panel #module-connect .connect-disconnect .connect-menu-label i { color:#852f35; }
body.exploterre-ptfr .site-account-panel #module-connect .connect-disconnect>a:hover { background:#ebd1d3; color:#70272d; }
body.exploterre-ptfr .site-account-panel #module-connect details { position:relative; }
body.exploterre-ptfr .site-account-panel #module-connect .connect-group-toggle { list-style:none; }
body.exploterre-ptfr .site-account-panel #module-connect .connect-group-toggle::-webkit-details-marker { display:none; }
body.exploterre-ptfr .site-account-panel #module-connect .connect-group-menu.base-menu-panel {
  position:static; width:100%; min-width:0; max-width:none; max-height:none;
  margin:5px 0 7px; padding:6px 8px; border:1px solid #ded6ce;
  border-radius:8px; background:var(--surface); box-shadow:none;
  transform:none;
}
body.exploterre-ptfr .site-account-panel #module-connect .connect-group-menu li { padding:0; list-style:none; }
body.exploterre-ptfr .site-account-panel #module-connect .connect-group-menu a {
  display:flex; align-items:center; gap:8px; min-height:38px;
  padding:8px 10px; color:#42352c; border-radius:7px; text-decoration:none;
}
body.exploterre-ptfr .site-account-panel #module-connect .connect-group-menu a:hover { background:var(--soft); }
body.exploterre-ptfr .site-account-panel #module-connect .connect-notification-badge {
  margin-left:auto; padding:2px 8px; border-radius:100px; background:#983d40; color:#fff;
}
body.exploterre-ptfr :is(.site-account-trigger,.site-account-panel a,.site-account-panel summary):focus-visible {
  outline:2px solid #986742; outline-offset:3px;
}

/* Actualités : un bandeau commun à la liste et à la fiche. */
body.exploterre-ptfr #module-news .news-entry-head {
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:8px 12px;
  box-sizing:border-box;width:100%;max-width:none;margin:0!important;
  padding:clamp(12px,1.4vw,18px)!important;
  border:0;border-radius:0!important;
  background:var(--news-band);color:var(--brand);
}
body.exploterre-ptfr #module-news .news-entry-head > :is(h1,h2) {
  grid-column:1;grid-row:1;min-width:0;width:100%;
  margin:0!important;padding:0!important;
  color:var(--brand);font-size:clamp(1.17rem,1.55vw,1.48rem);
  line-height:1.28;font-weight:760;
}
body.exploterre-ptfr #module-news .news-entry-head :is(h1,h2) > a {
  color:inherit;text-decoration:none;
}
body.exploterre-ptfr #module-news .news-entry-head > .actions {
  display:flex;align-items:center;justify-self:end;align-self:start;
  grid-column:2;grid-row:1;gap:8px;margin:0;padding:0;
}
body.exploterre-ptfr #module-news .news-entry-head .news-entry-meta {
  display:flex;flex-wrap:wrap;align-items:center;
  grid-column:1/-1;grid-row:2;gap:7px;
  margin:0!important;padding:0;border:0;background:transparent;
}
body.exploterre-ptfr #module-news .news-entry-meta > :is(.news-meta-pill,.more-element) {
  display:inline-flex;align-items:center;gap:7px;min-height:31px;
  padding:5px 10px;border:1px solid #b89b82;border-radius:7px;
  background:#f5ece4;color:#443327;font-size:.81rem;line-height:1.35;
}
body.exploterre-ptfr #module-news .news-entry-meta > :is(.news-meta-pill,.more-element) :is(a,time,i) {
  color:inherit;font-size:inherit;
}
body.exploterre-ptfr #module-news .news-entry-meta a:is(:hover,:focus-visible) {
  color:var(--brand-hover);text-decoration:underline;text-underline-offset:.15em;
}
body.exploterre-ptfr #module-news.news-list-page .news-entry { overflow:hidden; }
body.exploterre-ptfr #module-news.news-list-page .news-entry + .news-entry { margin-top:var(--terra-62-gap); }
body.exploterre-ptfr #module-news.news-list-page .news-entry-body { padding:var(--terra-62-gap); }

/* CONTROLS — clickable actions have a real hit area rather than highlighted text. */
body.exploterre-ptfr :is(#module-calendar,#module-calendar-events,.terra-calendar-day-dialog,#module-media,#module-news,#module-user-convers,#module-user-pm,#module-forum)
:is(a.basic-button,a.button,a.terra-calendar-day-dialog-action,a.terra-calendar-card-open,a.terra-calendar-hero-action,a.terra-icon-control,a.terra-action,a.ptfr-message-action,button.submit,button.button,button.terra-calendar-day-dialog-action) {
  display:inline-flex; justify-content:center; align-items:center; gap:8px;
  min-height:40px; padding:9px 14px; border-radius:9px;
  line-height:1.25; font-weight:650; text-decoration:none;
  vertical-align:middle;
}
body.exploterre-ptfr :is(#module-calendar,#module-calendar-events,.terra-calendar-day-dialog,#module-media,#module-news,#module-user-convers,#module-user-pm,#module-forum)
:is(a.terra-icon-control,a.terra-action,a.ptfr-message-action,a.terra-calendar-hero-action) {
  width:42px; min-width:42px; min-height:42px; padding:9px;
}
body.exploterre-ptfr :is(.terra-calendar-day-dialog-footer,.terra-calendar-card-footer,.actions,.terra-pm-actions) { gap:10px; }

/* CALENDAR — the heading is anchored to its own section, not floating over the page. */
body.exploterre-ptfr #module-calendar-events > .terra-calendar-section-header {
  display:flex; align-items:center; min-height:65px; padding:14px 18px;
  border:1px solid var(--terra-62-border); border-radius:12px;
  background:var(--terra-62-stone-dark)!important; color:#382c24;
  margin:0!important; padding:14px 18px!important;
}
body.exploterre-ptfr #module-calendar-events > .terra-calendar-section-header h2 {
  margin:0; font-size:clamp(1.2rem,1.5vw,1.45rem); font-weight:760; color:#3f3025;
}
body.exploterre-ptfr #module-calendar-events .terra-calendar-empty {
  min-height:150px; margin-top:12px; padding:26px 18px;
  border:1px solid var(--panel-line); border-radius:12px; background:#fff;
}
body.exploterre-ptfr #module-calendar-events .fond-evenements { padding:0; margin-top:14px; background:transparent; gap:var(--terra-62-gap); }
body.exploterre-ptfr #module-calendar-events .terra-calendar-event-card { margin:0; background:#fff; }
/* Event detail: individual sections are the surfaces; the outer article isn't. */
body.exploterre-ptfr #module-calendar.terra-calendar-detail-page,
body.exploterre-ptfr #module-calendar .terra-calendar-event-detail,
body.exploterre-ptfr #module-calendar .terra-calendar-event-detail > .terra-calendar-event-content {
  border:0; padding:0; margin:0; border-radius:0;
  box-shadow:none; background:transparent;
}
body.exploterre-ptfr #module-calendar .terra-calendar-event-detail > .terra-calendar-event-content { display:grid; gap:var(--terra-62-gap); }
body.exploterre-ptfr #module-calendar .terra-calendar-detail-section {
  overflow:hidden; border:1px solid var(--panel-line); background:#fff; border-radius:12px;
}
body.exploterre-ptfr #module-calendar .terra-calendar-detail-section-heading {
  padding:14px 20px; background:#ded7d0; color:#453326;
}
body.exploterre-ptfr #module-calendar .terra-calendar-detail-section-heading :is(h2,i) { color:#513a2a; }
body.exploterre-ptfr #module-calendar .terra-calendar-detail-meta { padding:18px; gap:12px; }
body.exploterre-ptfr #module-calendar .terra-calendar-meta-item { padding:12px; background:#f2f0ed; border:1px solid #e4dfda; }

/* Calendar modal: preserve scroll position (JS locks body at its current offset),
   keep two fully usable cards above the fold on desktop. */
html:has(body.terra-calendar-dialog-open) { overflow:visible!important; }
body.terra-calendar-dialog-open {
  position:fixed!important; top:var(--terra-calendar-lock-top,0px)!important;
  left:0; width:100%; overflow:visible!important;
}
body.exploterre-ptfr .terra-calendar-day-dialog {
  position:fixed; inset:0; display:flex; justify-content:center; align-items:center;
  padding:clamp(10px,2vw,30px); z-index:10000;
}
body.exploterre-ptfr .terra-calendar-day-dialog-panel {
  display:flex; flex-direction:column; width:min(100%,1020px);
  max-width:1020px; height:auto; max-height:min(92dvh,900px);
  overflow:hidden; border:1px solid #b9aea4; border-radius:15px;
  --calendar-popup-surface:#eee9e4;
  margin:0; padding:0; background:var(--calendar-popup-surface);
  box-shadow:0 24px 68px rgba(20,21,22,.28);
}
body.exploterre-ptfr .terra-calendar-day-dialog-header {
  flex:none; display:flex; align-items:center; justify-content:space-between;
  padding:15px 22px; background:#d9cabe;
}
body.exploterre-ptfr .terra-calendar-day-dialog-header h2 { margin:3px 0 0; font-size:clamp(1.25rem,2vw,1.6rem); color:#352720; }
body.exploterre-ptfr .terra-calendar-day-dialog-header button[data-calendar-dialog-close] {
  display:grid;place-items:center; flex:none; width:42px; height:42px;
  padding:0; border:1px solid #b49e8b; border-radius:9px;
  background:#f8f5f2; color:#4b3729; font-size:1.5rem; cursor:pointer;
}
body.exploterre-ptfr .terra-calendar-day-dialog-body {
  flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain;
  padding:18px 22px;
}
body.exploterre-ptfr .terra-calendar-day-dialog-body #terra-calendar-day-dialog-status {
  margin:0 0 10px; color:#5a5047; font-size:.88rem;
}
body.exploterre-ptfr .terra-calendar-day-dialog-body #terra-calendar-day-dialog-status:empty { display:none; }
body.exploterre-ptfr .terra-calendar-day-dialog-events { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.exploterre-ptfr .terra-calendar-popup-event {
  display:flex; flex-direction:column; gap:6px; min-width:0; padding:15px 17px;
  border:1px solid #d4c9bf; border-radius:11px; background:#f6f3ef;
}
body.exploterre-ptfr .terra-calendar-popup-event h3 { margin:0; font-size:1.15rem; line-height:1.3; }
body.exploterre-ptfr .terra-calendar-popup-event h3 a { color:#513927; text-decoration:none; }
body.exploterre-ptfr .terra-calendar-popup-event p { margin:0; line-height:1.4; font-size:.89rem; }
body.exploterre-ptfr .terra-calendar-popup-event .terra-calendar-day-dialog-action { align-self:start; margin-top:auto; }
body.exploterre-ptfr .terra-calendar-day-dialog-footer {
  flex:none; display:flex; gap:12px; flex-wrap:wrap;
  margin:0; padding:14px 22px; background:var(--calendar-popup-surface);
}
body.exploterre-ptfr .terra-calendar-day-dialog-footer > a {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:10px 17px; border-radius:9px; text-decoration:none;
  background:#4e5960; border:1px solid #4e5960; color:#fff; font-weight:700;
}
body.exploterre-ptfr .terra-calendar-day-dialog-footer > a[data-calendar-add] { background:#765039; border-color:#765039; }
body.exploterre-ptfr .terra-calendar-day-dialog-footer > a:hover { filter:brightness(.88); color:#fff; }

/* MEDIA — compact category cards, clear separation between video previews. */
body.exploterre-ptfr #module-media.media-catalogue .media-categories {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));
  gap:14px; padding:0; margin:0 0 24px; background:transparent; border:0;
}
body.exploterre-ptfr #module-media.media-catalogue .media-category-card {
  display:grid; grid-template-columns:46px minmax(0,1fr) 16px;
  align-items:center; gap:12px; min-height:78px; margin:0; padding:13px 15px;
  border:1px solid #cdbfb0; border-radius:11px;
  background: var(--terra-panel-rock); color:#342b25; text-align:left; text-decoration:none;
  transition:background-color .12s ease,border-color .12s ease;
}
body.exploterre-ptfr #module-media.media-catalogue .media-category-card:hover,
body.exploterre-ptfr #module-media.media-catalogue .media-category-card:focus-visible { background:#dfd0c1; border-color:#ab9079; }
body.exploterre-ptfr #module-media .media-category-icon {
  display:grid;place-items:center;width:46px;height:46px;
  border-radius:9px; background:#f9f6f2; color:#634831; font-size:1.15rem;
}
body.exploterre-ptfr #module-media .media-category-copy { display:grid; gap:3px; min-width:0; }
body.exploterre-ptfr #module-media .media-category-copy strong { font-size:1rem; line-height:1.35; color:#33281f; }
body.exploterre-ptfr #module-media .media-category-copy small { font-size:.82rem; color:#5f554e; }
body.exploterre-ptfr #module-media.media-catalogue .media-gallery {
  display:grid; grid-template-columns:minmax(0,1fr); gap:18px;
  padding:0; margin:0; border:0; background:transparent;
}
body.exploterre-ptfr #module-media .media-tile {
  display:grid; grid-template-columns:clamp(190px,24vw,265px) minmax(0,1fr);
  gap:18px; align-items:start; min-width:0; margin:0; padding:16px;
  border:1px solid #d5ccc3; border-radius:12px; background:#fff;
}
body.exploterre-ptfr #module-media .media-tile-cover {
  display:block; width:100%; height:auto; min-height:130px; aspect-ratio:16/10;
  border:1px solid #ded7d0; border-radius:9px;
  overflow:hidden; background:#eae6e1; color:#544b43;
}
body.exploterre-ptfr #module-media .media-tile-cover img { display:block;width:100%;height:100%;object-fit:cover; }
body.exploterre-ptfr #module-media .media-tile-copy { display:grid; align-content:start; gap:12px; min-width:0; }
body.exploterre-ptfr #module-media .media-tile-copy h2 {
  display:block; margin:0; padding:12px 16px;
  border-radius:8px; background:#ded5cb;
  color:#473124; font-size:clamp(1.15rem,1.45vw,1.45rem);
  font-weight:750; line-height:1.3;
}
body.exploterre-ptfr #module-media .media-tile-copy h2 a { color:inherit; text-decoration:none; }
body.exploterre-ptfr #module-media .media-tile-copy h2 a:hover { color:#754b2f; }
body.exploterre-ptfr #module-media .media-tile .media-metadata {
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;
  margin:0; padding:0; color:#4d4740;
}
body.exploterre-ptfr #module-media .media-tile .media-metadata > span {
  display:inline-flex;align-items:center;gap:7px;min-height:31px;
  padding:6px 10px;border-radius:7px;
  background:#f2eee9;border:1px solid #e2d9d0;font-size:.85rem;
}
body.exploterre-ptfr #module-media .media-tile .media-description { padding:3px 1px;line-height:1.58; }
body.exploterre-ptfr #module-media.media-detail .media-record-footer {
  display:flex; align-items:flex-start; flex-wrap:wrap; gap:16px; padding:18px;
  background:#efebe7;
}
body.exploterre-ptfr #module-media.media-detail .media-record-footer .media-metadata {
  display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;
}
body.exploterre-ptfr #module-media.media-detail .media-record-footer .media-metadata > div {
  display:grid;gap:3px;min-width:110px;padding:11px 15px;
  background:#fff;border:1px solid #cfc3b9;border-radius:9px;
}
body.exploterre-ptfr #module-media.media-detail .media-metadata dt { font-size:.79rem; font-weight:760; color:#594b41; }
body.exploterre-ptfr #module-media.media-detail .media-metadata dd { margin:0; color:#312b27;font-weight:650; }
body.exploterre-ptfr #module-media.media-detail .media-record-footer > .basic-button { margin:0; }

/* FORUM — restrained colour differentiation, without coloured row hover. */
body.exploterre-ptfr #module-forum .forum-shortcuts ul {
  display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:0;margin:0;list-style:none;
}
body.exploterre-ptfr #module-forum .forum-shortcuts li { margin:0;padding:0;list-style:none; }
body.exploterre-ptfr #module-forum .forum-shortcuts a.action-icon {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-width:43px;min-height:43px;padding:10px;
  border:1px solid transparent;border-radius:9px;
  background:#465a65;color:#fff;text-decoration:none;
}
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-favorites { background:#806044!important;color:#fff!important; }
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-history { background:#546a77!important;color:#fff!important; }
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-unread { background:#6c5547!important;color:#fff!important; }
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-markread { background:#466a58!important;color:#fff!important; }
body.exploterre-ptfr #module-forum .forum-shortcuts :is(.forum-action-disconnect,.action-icon-danger) { background:#953e42!important;color:#fff!important; }
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-messages { background:#41545f!important;color:#fff!important; }
body.exploterre-ptfr #module-forum .forum-shortcuts a.action-icon:hover { filter:brightness(.85); }
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-unread strong {
  display:inline-grid;place-items:center;min-width:19px;min-height:19px;
  padding:2px 4px;border-radius:99px;background:#fff;color:#5b4235;font-size:.72rem;
}
body.exploterre-ptfr #module-forum .ptfr-message-header {
  background:#d8cec3;
  padding:12px 17px;
}
body.exploterre-ptfr #module-forum .ptfr-message-header-main {
  display:flex;flex-direction:column;gap:10px;align-items:flex-start;min-width:0;
}
body.exploterre-ptfr #module-forum .ptfr-message-header-main .ptfr-message-author {
  display:flex;align-items:center;gap:11px;float:none;min-width:0;
  margin:0;padding:0;
}
body.exploterre-ptfr #module-forum .ptfr-message-header .msg-avatar-mbr {
  flex:none;display:grid;place-items:center;width:47px;height:47px;
  margin:0;padding:4px;border:1px solid #ae9b87;border-radius:10px;
  background:#f8f5f1;overflow:hidden;cursor:pointer;
}
body.exploterre-ptfr #module-forum .ptfr-message-header .msg-avatar-mbr img {
  display:block;width:100%;height:100%;max-width:100%;border-radius:7px;
  object-fit:cover;
}
body.exploterre-ptfr #module-forum .ptfr-message-header .pseudoforum { font-size:1rem;font-weight:760;color:#483122; }
body.exploterre-ptfr #module-forum .ptfr-message-meta {
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-left:0;
}
body.exploterre-ptfr #module-forum .ptfr-message-meta > .color-date-info-message {
  display:inline-flex;align-items:center;gap:7px;
  min-height:36px;padding:7px 11px;border:1px solid #b6a595;border-radius:8px;
  color:#42392e;text-decoration:none;background:#f4efe9;font-size:.85rem;
}
body.exploterre-ptfr #module-forum .ptfr-message-meta .forum-message-edit-action {
  min-height:36px;min-width:36px;width:38px;padding:7px;color:#fff;
}
body.exploterre-ptfr #module-forum .ptfr-message-footer {
  margin:0; padding:12px 16px;
  background:#e1d8ce; color:#3c352c;
}
body.exploterre-ptfr #module-forum .ptfr-message-actions { display:flex;flex-wrap:wrap;gap:8px; }
body.exploterre-ptfr #module-forum .forum-message { margin-bottom:var(--terra-62-gap); }

/* PRIVATE MESSAGES — row states and breathing room for destructive action. */
#module-user-convers .terra-pm-conversation[data-state="message-announce-new"] > td {background-color:#fcf1e6;}
#module-user-convers .terra-pm-conversation[data-state="message-announce-new"] .terra-pm-subject a {font-weight:800;color:#58351f;}
body.exploterre-ptfr #module-user-convers .terra-pm-footer-actions {
  display:flex;gap:12px;align-items:center;flex-wrap:wrap;
  margin-top:18px;padding:16px; border:1px solid #d5c9bd;border-radius:11px;
  background:#f2eee9;
}
body.exploterre-ptfr #module-user-convers .terra-pm-delete {
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0;padding:0;
}
body.exploterre-ptfr #module-user-convers .terra-pm-delete button {
  display:inline-flex;align-items:center;gap:8px;min-height:42px;
  padding:10px 16px;border-radius:9px;
  background:#913b40;color:white;
}
body.exploterre-ptfr #module-user-convers .terra-pm-legend {
  display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 0;
  padding:12px;border:1px solid #ded5cd;border-radius:10px;background:#f8f6f3;
}
#module-user-convers .pm-read-status {
  display:inline-flex;align-items:center;gap:.45rem;max-width:100%;width:fit-content;
  padding:.32rem .6rem;border-radius:.45rem;font-size:.875rem;line-height:1.35;text-align:start;
}
#module-user-convers .pm-read-status i {flex:none;color:inherit;}
#module-user-convers .pm-read {background:#e6e4e0;color:#44423f;}
#module-user-convers .pm-awaiting-read {background:#f3d8af;color:#593812;}
#module-user-convers .pm-unread {background:#754126;color:#fff;font-weight:750;}

/* Harmonisation avec la couche de commandes PHPBoost (fond / texte définis
   par variables, sans masquer les états réels ni détourner les clics). */
body.exploterre-ptfr .site-account-panel #module-connect :is(.connect-element>a,.connect-group-toggle) {
  --control-bg:#f4f0eb; --control-hover:#e4d8cc; --control-ink:#302a25;
}
body.exploterre-ptfr .site-account-panel #module-connect .connect-disconnect>a {
  --control-bg:#f7e8e9; --control-hover:#ebd1d3; --control-ink:#852f35;
}
body.exploterre-ptfr .terra-calendar-day-dialog :is(.terra-calendar-day-dialog-action,a[data-calendar-day-page]) {
  --control-bg:#4e5960; --control-hover:#3e484f; --control-ink:#fff;
}
body.exploterre-ptfr .terra-calendar-day-dialog .terra-calendar-day-dialog-action-primary {
  --control-bg:#765039; --control-hover:#5c3825; --control-ink:#fff;
}
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-messages { --control-bg:#41545f;--control-hover:#30434d;--control-ink:#fff; }
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-favorites { --control-bg:#806044;--control-hover:#694a31;--control-ink:#fff; }
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-history { --control-bg:#546a77;--control-hover:#3c5260;--control-ink:#fff; }
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-unread { --control-bg:#6c5547;--control-hover:#554032;--control-ink:#fff; }
body.exploterre-ptfr #module-forum .forum-shortcuts .forum-action-markread { --control-bg:#466a58;--control-hover:#345442;--control-ink:#fff; }
body.exploterre-ptfr #module-forum .forum-shortcuts :is(.forum-action-disconnect,.action-icon-danger) { --control-bg:#953e42;--control-hover:#7e3033;--control-ink:#fff; }
body.exploterre-ptfr #module-forum .msg-contents-info.ptfr-message-header .ptfr-message-author .msg-avatar-mbr {
  --control-bg:#f8f5f1;--control-hover:#f8f5f1;--control-ink:#483122;
  width:47px;height:47px; min-width:47px; padding:4px; border:1px solid #ae9b87;
  border-radius:10px; background:#f8f5f1;
}
body.exploterre-ptfr #module-forum .msg-contents-info.ptfr-message-header .ptfr-message-author .msg-avatar-mbr img {
  width:100%; height:100%; max-width:100%; min-width:0; min-height:0;
  border-radius:6px; object-fit:cover;
}
body.exploterre-ptfr #module-forum .msg-contents-info.ptfr-message-header .ptfr-message-author .pseudoforum {
  --control-bg:transparent;--control-hover:transparent;--control-ink:#483122;
  background:transparent; border:0; padding:0; text-align:left;
}
body.exploterre-ptfr #module-forum .forum-message .msg-contents-info.ptfr-message-header {
  padding:12px 17px; border:0;
  background:#d8cec3; color:#35291f;
}
body.exploterre-ptfr #module-forum .forum-message .ptfr-message-footer,
body.exploterre-ptfr #module-forum :is(.msg-container,.msg-container2) .ptfr-message-footer {
  margin:0; padding:12px 16px; border:0;
  background:#e1d8ce; color:#3c352c;
}

@media (max-width:700px) {
  body.exploterre-ptfr .site-account-panel.base-menu-panel { right:-7px; width:min(330px,calc(100vw - 20px)); }
  body.exploterre-ptfr .site-account-trigger { gap:7px; padding:10px 12px; }
  body.exploterre-ptfr #module-media .media-tile { grid-template-columns:minmax(0,1fr); padding:12px; gap:12px; }
  body.exploterre-ptfr #module-media .media-tile-cover { max-height:240px; }
  body.exploterre-ptfr #module-media .media-tile-copy h2 { font-size:1.15rem;padding:10px 13px; }
  body.exploterre-ptfr .terra-calendar-day-dialog-events { grid-template-columns:minmax(0,1fr); }
  body.exploterre-ptfr .terra-calendar-day-dialog-panel { max-height:calc(100dvh - 16px); }
  body.exploterre-ptfr .terra-calendar-day-dialog-header { padding:12px 14px; }
  body.exploterre-ptfr .terra-calendar-day-dialog-body { padding:12px 14px; }
  body.exploterre-ptfr .terra-calendar-day-dialog-footer { padding:12px 14px; }
  body.exploterre-ptfr .terra-calendar-day-dialog-footer>a { flex:1 1 100%; }
  body.exploterre-ptfr #module-forum .ptfr-message-header { padding:11px; }
  body.exploterre-ptfr #module-calendar .terra-calendar-detail-meta { padding:12px; }
  body.exploterre-ptfr #module-news .news-entry-meta { gap:6px; }
}
@media (max-width:360px) {
  body.exploterre-ptfr .site-account-trigger { width:44px;justify-content:center;padding:9px; }
  body.exploterre-ptfr .site-account-trigger > span:not(.site-account-unread-count) {
    position:absolute; width:1px; height:1px; overflow:hidden;
    clip-path:inset(50%); white-space:nowrap;
  }
  body.exploterre-ptfr .site-account-chevron { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  body.exploterre-ptfr #module-media .media-category-card { transition:none; }
}

/* =============================================================
   6.3 — Adhésion: EN-TÊTES CLAIRS = TEXTES SOMBRES (aucun blanc/blanc).
   Conserve la structure PHPBoost et ses états, comme Accès rapides,
   sans répéter l'ancien bandeau noir. Les sélecteurs précèdent
   expressément les anciennes règles du module.
   ============================================================= */
body.exploterre-ptfr #adhesion-module {
  --adh-63-heading: var(--heading-fill);
  --adh-63-heading-soft: var(--tint);
  --adh-63-text: #312920;
  --adh-63-muted: #51483f;
  --adh-63-line: #d2c5b9;
  --adh-63-paper: #fff;
  --adh-63-inset: #f1ebe5;
  color:var(--adh-63-text);
  font-size:1rem;
  line-height:1.55;
}
body.exploterre-ptfr #adhesion-module.terra-adhesion-page > :is(.adhesion-hero,.adhesion-page-header),
body.exploterre-ptfr #adhesion-module.terra-adhesion-page .adhesion-admin-config-header {
  background:var(--adh-63-heading-soft);
  border:1px solid var(--adh-63-line);
  border-radius:12px;
  padding:clamp(16px,2.2vw,26px);
  color:var(--adh-63-text);
  gap:16px;
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-hero,.adhesion-page-header,.adhesion-admin-config-header) :is(h1,h2,h3),
body.exploterre-ptfr #adhesion-module :is(.adhesion-hero,.adhesion-page-header,.adhesion-admin-config-header) .adhesion-eyebrow {
  color:var(--adh-63-text);
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-hero,.adhesion-page-header,.adhesion-admin-config-header) :is(p,.adhesion-back),
body.exploterre-ptfr #adhesion-module :is(.adhesion-hero,.adhesion-page-header) p,
body.exploterre-ptfr #adhesion-module .adhesion-hero-price small {
  color:var(--adh-63-muted);
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-hero,.adhesion-page-header) h1 {
  font-size:clamp(1.55rem,2.6vw,2.15rem);
  line-height:1.2;
  font-weight:800;
  margin:4px 0 10px;
  overflow-wrap:anywhere;
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-hero,.adhesion-page-header) .adhesion-eyebrow,
body.exploterre-ptfr #adhesion-module .adhesion-current-membership > header .adhesion-eyebrow {
  font-size:.85rem;
  line-height:1.35;
  letter-spacing:.055em;
  text-transform:uppercase;
  font-weight:800;
  color:#634733;
}
body.exploterre-ptfr #adhesion-module .adhesion-hero-price {
  background:var(--surface);
  color:var(--ink);
  min-height:110px;
  padding:14px 20px;
  border:1px solid var(--panel-line);
  border-radius:10px;
}
body.exploterre-ptfr #adhesion-module .adhesion-hero-price :is(strong,span) {color:var(--ink);}
body.exploterre-ptfr #adhesion-module .adhesion-hero-price small {color:var(--muted);}
body.exploterre-ptfr #adhesion-module .adhesion-hero-price strong {font-size:clamp(1.7rem,2.2vw,2rem);}
body.exploterre-ptfr #adhesion-module .adhesion-hero-actions :is(a,button) {
  min-height:44px;
  padding:10px 15px;
  border-radius:9px;
  background:#fff;
  border:1px solid #bba48f;
  color:#423125!important;
  font-weight:700;
}
body.exploterre-ptfr #adhesion-module .adhesion-hero-actions :is(a,button):is(:hover,:focus-visible) {
  background:#d7c4b2;
  border-color:#997c62;
  color:#2d241e!important;
}
body.exploterre-ptfr #adhesion-module.terra-adhesion-page :is(.adhesion-current-membership,.adhesion-card,.adhesion-info-card) {
  background:var(--adh-63-paper);
  color:var(--adh-63-text);
  border:1px solid var(--adh-63-line);
  border-radius:12px;
  overflow:hidden;
  margin-bottom:var(--terra-62-gap);
}
body.exploterre-ptfr #adhesion-module .adhesion-current-membership > header {
  align-items:center;
  padding:clamp(15px,2vw,22px);
  background:var(--adh-63-heading-soft);

  border-radius:11px 11px 0 0;
  color:var(--adh-63-text);
}
body.exploterre-ptfr #adhesion-module .adhesion-current-membership > header :is(h2,h3,strong) {
  color:var(--adh-63-text);
}
body.exploterre-ptfr #adhesion-module .adhesion-current-membership > header h2 {
  font-size:clamp(1.18rem,2vw,1.5rem);
  font-weight:780;
  line-height:1.3;
  margin:.15rem 0 .4rem;
}
body.exploterre-ptfr #adhesion-module .adhesion-current-membership > header p {
  margin:0;
  color:var(--adh-63-muted);
  line-height:1.5;
  font-size:.93rem;
}
body.exploterre-ptfr #adhesion-module .adhesion-current-request:not(.adhesion-signature-valid) > header {
  background:#f4e8d6;
}
body.exploterre-ptfr #adhesion-module .adhesion-current-membership > header > i {
  flex:0 0 44px;
  width:44px;
  height:44px;
  font-size:1.2rem;
  background:#276142;
  color:#fff;
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-section-heading,.adhesion-subsection-heading,.adhesion-info-card-header),
body.exploterre-ptfr #adhesion-module .adhesion-offers-details > summary {
  padding:13px 18px;
  background:var(--adh-63-heading);

  color:#3d2c21;
  align-items:center;
  gap:11px;
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-section-heading,.adhesion-subsection-heading,.adhesion-info-card-header) :is(h2,h3,span,strong,i) {
  color:#3d2c21;
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-section-heading,.adhesion-subsection-heading) :is(h2,h3) {
  margin:0;
  font-size:clamp(1.08rem,1.5vw,1.28rem);
  font-weight:770;
  line-height:1.35;
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-section-heading,.adhesion-subsection-heading,.adhesion-info-card-header) > i {
  color:#715039;
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-section-content,.adhesion-current-membership-body,.adhesion-subsection-content,.adhesion-info-card-body) {
  background:#fff;
  color:var(--adh-63-text);
  padding:clamp(13px,1.6vw,20px);
}
body.exploterre-ptfr #adhesion-module .adhesion-current-membership-grid {
  gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));
  background:transparent;
  border:0;
}
body.exploterre-ptfr #adhesion-module .adhesion-current-membership-grid article {
  background:var(--adh-63-inset);
  border:1px solid #ded2c7;
  border-radius:9px;
  padding:13px 15px;
  align-items:center;
  min-width:0;
}
body.exploterre-ptfr #adhesion-module .adhesion-current-membership-grid article > i {
  color:#73503a;
}
body.exploterre-ptfr #adhesion-module .adhesion-current-membership-grid article :is(strong,span) {color:var(--adh-63-text);}
body.exploterre-ptfr #adhesion-module .adhesion-current-membership-grid article small {color:var(--adh-63-muted);}
body.exploterre-ptfr #adhesion-module .adhesion-subsection {
  border:1px solid var(--adh-63-line);
  border-radius:10px;
  overflow:hidden;
  margin-top:14px;
  background:#fff;
}
body.exploterre-ptfr #adhesion-module .adhesion-subsection-heading {background:#e9ded4;}
body.exploterre-ptfr #adhesion-module :is(.adhesion-main-actions,.adhesion-document-links) {gap:10px;}
body.exploterre-ptfr #adhesion-module .adhesion-main-actions > :is(a.button,button,.button) {
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:10px 15px;
  background:#ddc9b6;
  border:1px solid #c1a78f;
  border-radius:9px;
  color:#322720!important;
  line-height:1.3;
  text-decoration:none;
  font-weight:700;
}
body.exploterre-ptfr #adhesion-module .adhesion-main-actions > :is(a.button,button,.button):is(:hover,:focus-visible) {
  background:#cbb198;
  border-color:#967859;
  color:#211d19!important;
}
body.exploterre-ptfr #adhesion-module .adhesion-main-actions > :is(a.button,button,.button).adhesion-primary-action {
  background:#604836;
  border-color:#604836;
  color:#fff!important;
}
body.exploterre-ptfr #adhesion-module .adhesion-main-actions > :is(a.button,button,.button).adhesion-primary-action:is(:hover,:focus-visible) {
  background:#473224;
  color:#fff!important;
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-section-content,.adhesion-current-membership-body) :is(p,small) {color:var(--adh-63-muted);}
body.exploterre-ptfr #adhesion-module :is(a,button,input,select,summary):focus-visible {
  outline:2px solid #7d4924;
  outline-offset:3px;
}

/* 6.3 — vraie suppression du panneau enveloppe du détail calendrier.
   Le template n'emploie plus ni article-calendar ni content ici. */
body.exploterre-ptfr #module-calendar.terra-calendar-detail-page {
  background:transparent;
  border:0;
  padding:0;
}
body.exploterre-ptfr #module-calendar .terra-calendar-detail-sections {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:var(--terra-62-gap);
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
body.exploterre-ptfr #module-calendar .terra-calendar-detail-sections > .terra-calendar-detail-section {
  width:100%;
  max-width:none;
  min-width:0;
  margin:0;
  border:1px solid #cfc4b9;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
body.exploterre-ptfr #module-calendar .terra-calendar-detail-sections .terra-calendar-detail-section-heading {
  background:#d9c9ba;
  color:#3d2e23;
}
body.exploterre-ptfr #module-calendar .terra-calendar-detail-sections .terra-calendar-detail-section-heading > span i,
body.exploterre-ptfr #module-calendar .terra-calendar-detail-sections .terra-calendar-meta-icon i {
  color:#775039;
}
body.exploterre-ptfr #module-calendar .terra-calendar-detail-sections .terra-calendar-meta-item {
  background:#f0ebe6;
  border:1px solid #ddd3ca;
  border-radius:9px;
}

/* 6.3 — popup: contrast net entre fond beige et cartes blanches. */
body.exploterre-ptfr .terra-calendar-day-dialog-body {
  background:var(--calendar-popup-surface);
}
body.exploterre-ptfr .terra-calendar-popup-event {
  background:#fff;
  border:1px solid #cbb9a8;
  box-shadow:0 2px 6px rgba(55,41,30,.07);
  gap:9px;
}
body.exploterre-ptfr .terra-calendar-popup-event h3 {color:#3a291e;}
body.exploterre-ptfr .terra-calendar-popup-event :is(p,time) {color:#453d35;}
body.exploterre-ptfr .terra-calendar-popup-event .terra-calendar-day-dialog-action {
  min-height:44px;
  padding:10px 15px;
  background:#544e49;
  color:#fff;
  border:1px solid #544e49;
  border-radius:9px;
}
body.exploterre-ptfr .terra-calendar-popup-event .terra-calendar-day-dialog-action:hover {
  background:#3f3833;
  color:#fff;
}

/* 6.3 — location: même hauteur entre quantité et ajout panier. */
body.exploterre-ptfr #location-module .location-add-form {
  display:flex;
  align-items:flex-end;
  gap:8px;
  min-width:0;
}
body.exploterre-ptfr #location-module .location-add-form > label {
  display:flex;
  flex:0 0 76px;
  min-width:0;
  flex-direction:column;
  gap:6px;
  margin:0;
}
body.exploterre-ptfr #location-module .location-add-form > label > span {font-size:.92rem;font-weight:650;line-height:1.2;}
body.exploterre-ptfr #location-module .location-add-form :is(input[type=number],input[type=text],select) {
  display:block;
  width:100%;
  min-width:0;
  height:44px;
  min-height:44px;
  max-height:44px;
  padding:8px 10px;
  margin:0;
  font-size:1rem;
  line-height:1.2;
  box-sizing:border-box;
  border:1px solid #b9aea4;
  border-radius:9px;
  background:#fff;
  color:#2f2b26;
}
body.exploterre-ptfr #location-module .location-add-form > :is(.button,button) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:1 1 auto;
  width:auto;
  min-width:0;
  height:44px;
  min-height:44px;
  max-height:none;
  margin:0;
  padding:8px 12px;
  box-sizing:border-box;
  font-size:.94rem;
  line-height:1.2;
  white-space:normal;
  text-align:center;
}

/* Les contrôles PHPBoost sont gérés par variables dans la couche
   de composants : préserver l'action verte d'origine dans location. */
body.exploterre-ptfr #location-module .location-add-form .location-add-button {
  --control-bg:#286346;
  --control-hover:#1e5038;
  --control-ink:#fff;
  color:#fff;
}

/* 6.3 — responsivité, contraste et accès clavier/tactile. */
@media(max-width:900px) {
  body.exploterre-ptfr #adhesion-module .adhesion-hero {align-items:stretch;}
  body.exploterre-ptfr #adhesion-module .adhesion-hero-price {flex:1 1 180px;min-width:min(100%,220px);}
  body.exploterre-ptfr #module-calendar .terra-calendar-detail-sections {gap:12px;}
  body.exploterre-ptfr .terra-calendar-day-dialog-panel {width:min(100%,900px);}
}
@media(max-width:700px) {
  body.exploterre-ptfr #adhesion-module > :is(.adhesion-hero,.adhesion-page-header) {padding:16px;}
  body.exploterre-ptfr #adhesion-module :is(.adhesion-hero,.adhesion-page-header) h1 {font-size:1.65rem;}
  body.exploterre-ptfr #adhesion-module .adhesion-hero-price {flex:1 1 100%;min-height:96px;}
  body.exploterre-ptfr #adhesion-module .adhesion-current-membership > header {align-items:flex-start;gap:12px;}
  body.exploterre-ptfr #adhesion-module .adhesion-current-membership > header > i {flex-basis:40px;width:40px;height:40px;}
  body.exploterre-ptfr #adhesion-module .adhesion-current-membership-grid {grid-template-columns:minmax(0,1fr);}
  body.exploterre-ptfr #adhesion-module .adhesion-main-actions > :is(a.button,button,.button) {flex:1 1 180px;}
  body.exploterre-ptfr #adhesion-module :is(.adhesion-section-heading,.adhesion-subsection-heading) {padding:12px 14px;}
  body.exploterre-ptfr #module-calendar .terra-calendar-detail-sections > .terra-calendar-detail-section {border-radius:10px;}
  body.exploterre-ptfr #module-calendar .terra-calendar-detail-sections .terra-calendar-detail-section-heading {padding:12px 14px;}
  body.exploterre-ptfr .terra-calendar-day-dialog-events {grid-template-columns:minmax(0,1fr);}
  body.exploterre-ptfr .terra-calendar-day-dialog-body {padding:12px;}
  body.exploterre-ptfr .terra-calendar-popup-event {padding:14px;}
  body.exploterre-ptfr #location-module .location-add-form {gap:8px;}
  body.exploterre-ptfr #location-module .location-add-form > label {flex:0 0 68px;}
  body.exploterre-ptfr #location-module .location-add-form > :is(.button,button) {font-size:.9rem;padding:8px 9px;}
}
@media(max-width:420px) {
  body.exploterre-ptfr #adhesion-module .adhesion-current-membership > header h2 {font-size:1.2rem;}
  body.exploterre-ptfr #adhesion-module .adhesion-current-membership > header p {font-size:.88rem;}
  body.exploterre-ptfr #adhesion-module .adhesion-main-actions > :is(a.button,button,.button) {flex:1 1 100%;}
  body.exploterre-ptfr #location-module .location-add-form > label {flex-basis:68px;}
  body.exploterre-ptfr .terra-calendar-day-dialog-footer>a {width:100%;}
  body.exploterre-ptfr .terra-calendar-day-dialog {padding:8px;}
  body.exploterre-ptfr #module-news .news-entry-meta > :is(.news-meta-pill,.more-element) {min-height:30px;}
}

/* ===== ExploTerre-Terra v6.4 : corrections visuelles et structurelles ===== */
/* Adhésion — gris roche sur les boutons usuels, marron conservé dans les titres.
   Réserve l'orange/marron aux actions expressément signalées. */
body.exploterre-ptfr #adhesion-module :is(.adhesion-main-actions,.adhesion-hero-actions,.adhesion-document-links) :is(a.button,a.basic-button,button),
body.exploterre-ptfr #adhesion-module :is(.adhesion-main-actions,.adhesion-hero-actions) > :is(a.button,button,.button).adhesion-primary-action,
body.exploterre-ptfr #adhesion-module :is(.adhesion-tabs a,.adhesion-document-admin-tab) {
  --control-bg:#52616b; --control-hover:#3c4c56; --control-ink:#fff;
  background:#52616b!important; border-color:#52616b!important;
  color:#fff!important; min-height:43px; padding:10px 15px;
}
body.exploterre-ptfr #adhesion-module :is(.adhesion-main-actions,.adhesion-hero-actions,.adhesion-document-links) :is(a.button,a.basic-button,button):is(:hover,:focus-visible),
body.exploterre-ptfr #adhesion-module :is(.adhesion-main-actions,.adhesion-hero-actions) > :is(a.button,button,.button).adhesion-primary-action:is(:hover,:focus-visible),
body.exploterre-ptfr #adhesion-module :is(.adhesion-tabs a,.adhesion-document-admin-tab):is(:hover,:focus-visible) {
  background:#3c4c56!important; border-color:#3c4c56!important; color:#fff!important;
}
/* Les boutons de danger conservent leur signification et leur rouge. */
body.exploterre-ptfr #adhesion-module :is(.adhesion-danger-button,.adhesion-danger-actions button) {
  --control-bg:#973d43;--control-hover:#7b2e33;--control-ink:#fff;
  background:#973d43!important;border-color:#973d43!important;color:#fff!important;
}

/* Médias — jamais de découpe des miniatures : le titre inclus dans l'image reste entier. */
body.exploterre-ptfr #module-media.media-catalogue .media-tile-cover {
  display:grid;place-items:center;aspect-ratio:16/10;overflow:hidden;background:#fff;
  border:1px solid #d4c9c1;
}
body.exploterre-ptfr #module-media.media-catalogue .media-tile-cover img {
  display:block; width:100%;height:100%;max-height:100%;max-width:100%;
  object-fit:contain!important;object-position:center center;
}
/* Détail média : statistiques sur une ligne, commentaire clairement au-dessous. */
body.exploterre-ptfr #module-media.media-detail .media-record-footer {
  display:flex;flex-direction:column;align-items:stretch;gap:14px;
  background:#d0cac4; color:#252525;
  border-top:1px solid #b7ada3;
}
body.exploterre-ptfr #module-media.media-detail .media-entry-body {
  background:#fff; color:#252525;
}
body.exploterre-ptfr #module-media.media-detail .media-record-footer .media-metadata {
  width:100%; display:flex;flex-wrap:wrap;gap:12px;
}
body.exploterre-ptfr #module-media.media-detail .media-record-footer .media-metadata > div {
  flex:0 1 155px;min-width:130px;
}
body.exploterre-ptfr #module-media.media-detail .media-record-actions {
  display:flex;flex-wrap:wrap;align-items:center;gap:12px;
  margin:0;padding-top:14px;
}
body.exploterre-ptfr #module-media.media-detail .media-record-actions .media-comment-link {
  margin:0;min-height:42px;padding:10px 16px;
}

/* Mon espace — chaque menu et sous-menu est aligné à gauche. */
body.exploterre-ptfr .site-account-panel,
body.exploterre-ptfr .site-account-panel .site-account-links,
body.exploterre-ptfr .site-account-panel #module-connect,
body.exploterre-ptfr .site-account-panel #module-connect .connect-elements-container {
  text-align:left!important;
}
body.exploterre-ptfr .site-account-panel .site-account-profile,
body.exploterre-ptfr .site-account-panel #module-connect :is(.connect-element>a,.connect-group-toggle,.connect-group-menu a) {
  display:flex!important;justify-content:flex-start!important;align-items:center;
  text-align:left!important;gap:10px;
}
body.exploterre-ptfr .site-account-panel #module-connect :is(.connect-menu-label,.connect-group-toggle>span) {
  text-align:left!important;justify-content:flex-start!important;flex:1;min-width:0;
}
body.exploterre-ptfr .site-account-panel #module-connect .connect-group-toggle > :is(.fa-chevron-down,.fa-angle-down,.connect-chevron) {
  margin-left:auto;flex:0 0 auto;
}

/* Sondages — nouvelle hiérarchie : titre, introduction, cartes séparées. */
body.exploterre-ptfr :is(#module-poll-main,#module-poll,#module-poll-archives).terra-poll-page {
  width:100%;min-width:0;max-width:100%;margin:0;display:grid;gap:14px;
  font-size:1rem;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-heading {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
  margin:0;padding:17px 20px;background:#e1d9d1;
  border:1px solid #cfc2b7;border-radius:12px;color:#3a3028;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-heading h1 {
  margin:4px 0 0;color:#3f2f24;font-size:clamp(1.25rem,2vw,1.65rem);line-height:1.28;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-eyebrow {
  display:inline-flex;align-items:center;gap:9px;color:#5c6971;
  font-size:.8rem;font-weight:750;letter-spacing:.06em;text-transform:uppercase;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-header-actions {display:flex;align-items:center;gap:9px;}
body.exploterre-ptfr .terra-poll-page .terra-poll-header-actions .terra-icon-control {
  display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;
  padding:10px;border-radius:9px;background:#52616b;color:#fff;text-decoration:none;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-header-actions .terra-action-delete {background:#973d43;color:#fff;}
body.exploterre-ptfr .terra-poll-page .terra-poll-content {
  margin:0!important;padding:clamp(13px,2vw,22px)!important;
  border:1px solid #d7ccc1;border-radius:12px;background:#fff;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-intro {margin-bottom:18px;color:#3d3935;line-height:1.55;}
body.exploterre-ptfr .terra-poll-page .terra-poll-list {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:13px;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-list-card {
  display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;
  width:100%;min-height:78px;padding:14px 15px;
  border:1px solid #d5cbc1;border-radius:11px;background: var(--terra-panel-rock);
  color:#342d27;font-size:1rem;text-decoration:none;overflow-wrap:anywhere;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-list-card:is(:hover,:focus-visible) {background:#e5dbd1;border-color:#b9a796;color:#342d27;}
body.exploterre-ptfr .terra-poll-page .terra-poll-list-icon {
  display:grid;place-items:center;width:44px;height:44px;border-radius:9px;
  background:#fff;color:#52616b;font-size:1.1rem;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-archive-link {margin-top:18px;}
body.exploterre-ptfr .terra-poll-page .terra-poll-archive-link a,
body.exploterre-ptfr .terra-poll-page .terra-poll-return,
body.exploterre-ptfr .terra-poll-page .terra-poll-vote-actions :is(a,button) {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;
  padding:10px 15px;border:1px solid #52616b;border-radius:9px;
  background:#52616b;color:#fff;text-decoration:none;font-weight:650;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-archive-link a:is(:hover,:focus-visible),
body.exploterre-ptfr .terra-poll-page .terra-poll-return:is(:hover,:focus-visible),
body.exploterre-ptfr .terra-poll-page .terra-poll-vote-actions :is(a,button):is(:hover,:focus-visible) {background:#3c4c56;color:#fff;}
body.exploterre-ptfr .terra-poll-page .terra-poll-choices {display:grid;gap:10px;margin:0;padding:0;border:0;}
body.exploterre-ptfr .terra-poll-page .terra-poll-choice {
  display:flex;align-items:center;gap:12px;margin:0;padding:13px 15px;
  border:1px solid #ddd2c8;border-radius:9px;background:#f6f3ef;
  cursor:pointer;line-height:1.45;
}
body.exploterre-ptfr .terra-poll-page .terra-poll-choice:has(input:checked) {background:#e7edf0;border-color:#9eabb4;}
body.exploterre-ptfr .terra-poll-page .terra-poll-choice input {flex:0 0 auto;width:19px;height:19px;margin:0;accent-color:#52616b;}
body.exploterre-ptfr .terra-poll-page .terra-poll-vote-actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px;}
body.exploterre-ptfr .terra-poll-page .terra-poll-result {margin:0 0 15px;}
body.exploterre-ptfr .terra-poll-page .terra-poll-result-label {display:flex;gap:10px;flex-wrap:wrap;align-items:baseline;justify-content:space-between;margin-bottom:5px;}
body.exploterre-ptfr .terra-poll-page .terra-poll-result-label strong {color:#374e5c;}
body.exploterre-ptfr .terra-poll-page .terra-poll-result-label small {color:#66615b;}
body.exploterre-ptfr .terra-poll-page .progressbar-container {width:100%;height:11px;overflow:hidden;border-radius:99px;background:#e4e0da;}
body.exploterre-ptfr .terra-poll-page .progressbar {height:100%;background:#526e7b;border-radius:99px;}
body.exploterre-ptfr .terra-poll-page .terra-poll-results-caption {margin:12px 0 0;color:#5e5b57;font-size:.85rem;}
body.exploterre-ptfr .terra-poll-page .terra-poll-archives {display:grid;gap:14px;margin-top:15px;}
body.exploterre-ptfr .terra-poll-page .terra-poll-archive-card {overflow:hidden;margin:0;padding:0;border:1px solid #d5c8bc;border-radius:11px;background:#fff;}
body.exploterre-ptfr .terra-poll-page .terra-poll-archive-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 17px;background:var(--stone);}
body.exploterre-ptfr .terra-poll-page .terra-poll-archive-header h2 {margin:0;font-size:1.15rem;color:var(--brand);}
body.exploterre-ptfr .terra-poll-page .terra-poll-archive-results {padding:15px 17px;}
body.exploterre-ptfr .terra-poll-page .terra-poll-pagination {display:flex;justify-content:center;gap:10px;margin-top:15px;}

/* Calendrier — contrôles de date rassemblés dans une même barre moderne. */
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar {
  display:grid;grid-template-columns:44px minmax(0,1fr) 44px;
  gap:12px;align-items:center;margin:0 0 16px;padding:13px 15px;
  border:1px solid var(--panel-line);border-radius:12px;background:var(--stone);
}
body.exploterre-ptfr #module-calendar .terra-calendar-heading-main {
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;min-width:0;
}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-period {
  display:flex;align-items:center;gap:10px;min-width:0;margin:0;
}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-period h5 {
  margin:0;font-size:clamp(1.02rem,1.5vw,1.32rem);font-weight:760;color:var(--brand);
}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-period-icon {
  display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;
  border-radius:9px;background:#fff;color:#52616b;
}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-date-selector {
  flex:0 1 auto;min-width:0;margin:0;padding:0;
}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-row {
  justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;margin:0;
}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-row .form-element {
  width:auto;min-width:0;flex:0 1 auto;margin:0;
}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-row .form-field {gap:2px;}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-label {
  font-size:.71rem;font-weight:750;text-transform:capitalize;color:#5d5149;
}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-row select {
  width:auto;min-width:112px;max-width:180px;height:40px;min-height:40px;
  margin:0;padding:7px 30px 7px 11px;border-radius:8px;background:#fff;border:1px solid #c6b9ac;color:#312c29;
}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-nav {
  display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;
  height:44px;min-height:44px;margin:0;padding:8px;border-radius:9px;
  background:#52616b;color:#fff;
}
body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-nav:is(:hover,:focus-visible) {background:#3c4c56;}

@media (max-width:850px) {
  body.exploterre-ptfr #module-calendar .terra-calendar-heading-main {justify-content:center;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-date-selector {flex:1 1 100%;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-row {justify-content:center;}
}
@media (max-width:600px) {
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar {grid-template-columns:42px minmax(0,1fr) 42px;gap:6px;padding:10px 8px;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-heading-main {gap:7px;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-period {justify-content:center;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-period h5 {font-size:1rem;text-align:center;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-period-icon {display:none;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-row {gap:7px;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-row .form-element {flex:1 1 92px;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-row select {min-width:0;max-width:100%;width:100%;padding:7px 21px 7px 6px;font-size:.87rem;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-nav {width:42px;min-width:42px;height:42px;min-height:42px;}
  body.exploterre-ptfr .terra-poll-page .terra-poll-list {grid-template-columns:minmax(0,1fr);}
  body.exploterre-ptfr .terra-poll-page .terra-poll-content {padding:13px!important;}
  body.exploterre-ptfr .terra-poll-page .terra-poll-list-card {gap:10px;min-height:66px;padding:11px;}
  body.exploterre-ptfr #module-media.media-detail .media-record-footer .media-metadata > div {flex:1 1 110px;min-width:0;}
}

/* Petit écran : libérer toute la largeur pour mois et année. */
@media (max-width:600px) {
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar {
    grid-template-areas:"previous period next" "dates dates dates";
    grid-template-columns:42px minmax(0,1fr) 42px;
    row-gap:9px;
  }
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-nav-previous {grid-area:previous;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-nav-next {grid-area:next;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-heading-main {display:contents;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-period {grid-area:period;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .terra-calendar-date-selector {
    grid-area:dates;width:100%;max-width:100%;margin:0!important;
  }
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-form {width:100%;}
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-row {
    display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:9px;
  }
  body.exploterre-ptfr #module-calendar .terra-calendar-toolbar .calendar-date-row .form-element {width:100%;min-width:0;}
}
/* Mini calendrier: l'ancien bloc latéral conserve sa sélection sur une ligne en dessous. */
body.exploterre-ptfr #module-mini-calendar .terra-calendar-toolbar {
  display:grid;grid-template-columns:36px minmax(0,1fr) 36px;
  grid-template-areas:"previous period next" "dates dates dates";
  align-items:center;gap:7px;margin-bottom:12px;
}
body.exploterre-ptfr #module-mini-calendar .terra-calendar-toolbar .terra-calendar-heading-main {display:contents;}
body.exploterre-ptfr #module-mini-calendar .terra-calendar-toolbar .terra-calendar-nav-previous {grid-area:previous;}
body.exploterre-ptfr #module-mini-calendar .terra-calendar-toolbar .terra-calendar-nav-next {grid-area:next;}
body.exploterre-ptfr #module-mini-calendar .terra-calendar-toolbar .terra-calendar-period {grid-area:period;justify-content:center;text-align:center;}
body.exploterre-ptfr #module-mini-calendar .terra-calendar-toolbar .terra-calendar-date-selector {grid-area:dates;width:100%;margin:0;}
body.exploterre-ptfr #module-mini-calendar .terra-calendar-toolbar .calendar-date-form {width:100%;}
body.exploterre-ptfr #module-mini-calendar .terra-calendar-toolbar .calendar-date-row {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr);gap:7px;}
body.exploterre-ptfr #module-mini-calendar .terra-calendar-toolbar .calendar-date-row .form-element {width:100%;min-width:0;}
body.exploterre-ptfr #module-mini-calendar .terra-calendar-toolbar .calendar-date-row select {width:100%;max-width:100%;min-width:0;}

/* =========================================================
   Terra v6.5 — correctifs d'accueil, actualités, profil et forum
   ========================================================= */

/* Accueil — section avant les news. Photo remplaçable dans theme/images/. */
body.exploterre-ptfr .terra-home-hero {
  position:relative; isolation:isolate; display:flex; align-items:flex-end;
  min-width:0; min-height:clamp(400px,36vw,540px);
  margin:0 0 16px; overflow:hidden; border-radius:20px;
  background:#293632; color:#fff8ef;
}
body.exploterre-ptfr .terra-home-hero-photo {position:absolute; inset:0; z-index:-2;}
body.exploterre-ptfr .terra-home-hero-photo img {width:100%; height:100%; display:block; object-fit:cover; object-position:center 55%;}
body.exploterre-ptfr .terra-home-hero::after {content:""; position:absolute; z-index:-1; inset:0; pointer-events:none;
  background:linear-gradient(90deg,#293632 0%,#293632 26%,#293632ee 35%,#2936328a 54%,transparent 88%),linear-gradient(0deg,#1d2825a3,transparent 38%);}
body.exploterre-ptfr .terra-home-hero-content {width:min(100%,625px); padding:clamp(28px,4.5vw,68px);}
body.exploterre-ptfr .terra-home-hero-kicker {display:flex;align-items:center;gap:9px;margin:0 0 18px;color:#eac0a7;font-size:.77rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;}
body.exploterre-ptfr .terra-home-hero h1 {margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-shadow:none;color:#fff9ef!important;font-family:Georgia,serif;font-size:clamp(3.9rem,6.5vw,6.7rem)!important;line-height:.96;letter-spacing:-.055em;overflow-wrap:anywhere;}
body.exploterre-ptfr .terra-home-hero-description {max-width:410px;margin:21px 0 0;color:#f6f0e6!important;font-size:1rem;line-height:1.6;}
body.exploterre-ptfr .terra-home-hero-actions {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:24px 0 0;}
body.exploterre-ptfr .terra-home-btn {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 15px;border:1px solid transparent;border-radius:9px;font-size:.9rem;font-weight:750;line-height:1.3;text-decoration:none!important;}
body.exploterre-ptfr .terra-home-photo-credit {position:absolute;right:13px;bottom:12px;padding:5px 9px;border-radius:7px;background:#1c2926f5;color:#f8f8f8!important;font-size:.72rem;font-weight:650;text-decoration:none!important;}
body.exploterre-ptfr .terra-home-photo-credit:is(:hover,:focus-visible) {
  background:#344238; text-decoration:underline!important;
  outline-offset:2px;
}
body.exploterre-ptfr .terra-home-hero :focus-visible {outline-color:#f4bd9c;}
body.exploterre-ptfr .terra-home-shortcuts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:0 0 clamp(24px,3vw,38px);}
body.exploterre-ptfr .terra-home-shortcuts > a {display:grid;grid-template-columns:40px minmax(0,1fr) 14px;align-items:center;gap:12px;min-width:0;min-height:80px;padding:13px;border:1px solid var(--terra-panel-line);border-radius:12px;background:var(--surface);color:#2a3436!important;text-decoration:none!important;}
body.exploterre-ptfr .terra-home-shortcuts > a:hover {border-color:#8c7561;background:var(--terra-panel-earth);color:#2a3436!important;}
body.exploterre-ptfr .terra-home-shortcuts > a > i:first-child {display:grid;place-items:center;width:40px;height:40px;border-radius:9px;background:#f5e4d7;color:#a34e2d;font-size:1.05rem;}
body.exploterre-ptfr .terra-home-shortcuts > a:nth-child(even) > i:first-child {background:#e3edf0;color:#315966;}
body.exploterre-ptfr .terra-home-shortcuts > a > i:last-child {color:#635447;transform:rotate(-35deg);}
body.exploterre-ptfr .terra-home-shortcuts strong {display:block;font-size:.91rem;line-height:1.25;color:var(--brand);}
body.exploterre-ptfr .terra-home-shortcuts small {display:block;margin-top:4px;font-size:var(--body-copy-size);line-height:1.4;color:var(--muted);}

/* Actualités — la bande de titre touche les bords du détail comme dans les cartes du flux. */
body.exploterre-ptfr .site-page-content:has(> #module-news.news-detail-page) {padding:0!important;border:0!important;background:transparent!important;}
body.exploterre-ptfr #module-news.news-detail-page {display:block;padding:0!important;overflow:hidden;background:#fff;border:1px solid #d8cdc2;border-radius:14px;}
body.exploterre-ptfr #module-news.news-detail-page > .article-news {margin:0!important;padding:clamp(14px,2vw,24px)!important;border:0!important;background:#fff;box-shadow:none;}
body.exploterre-ptfr #module-news.news-detail-page > .article-news > .content {min-width:0;max-width:100%;margin:0;padding:0!important;}
body.exploterre-ptfr #module-news.news-detail-page .article-news > aside {clear:both;margin-top:18px;padding:0;border:0;background:transparent;}
body.exploterre-ptfr #module-news.news-detail-page .terra-news-comments {clear:both;margin-top:24px;padding:clamp(15px,2vw,22px);border:1px solid #c9b9aa;border-radius:11px;background:#e1d6ca;}
body.exploterre-ptfr #module-news.news-detail-page .terra-news-comments > :is(#comments-list, .comments-list, #comments, fieldset, form) {margin-top:0;}
body.exploterre-ptfr #module-news.news-detail-page .terra-news-comments :is(fieldset,.fieldset-inset,form .form-element) {min-width:0;}
body.exploterre-ptfr #module-news.news-detail-page .terra-news-comments :is(fieldset,.fieldset-inset) {background:#fff;border-color:#baa99a;}
body.exploterre-ptfr #module-news.news-detail-page .terra-news-comments :is(textarea, .bbcode-editor) {max-width:100%;}
body.exploterre-ptfr #module-news.news-detail-page .terra-news-comments :is(button.submit,button[type="submit"],input[type="submit"],.basic-button) {min-height:42px;padding:9px 16px;background:#45545e;border-color:#45545e;color:#fff;font-weight:750;border-radius:9px;}
body.exploterre-ptfr #module-news.news-detail-page .terra-news-comments :is(button.submit,button[type="submit"],input[type="submit"],.basic-button):hover {background:#33434f;border-color:#33434f;color:#fff;}
body.exploterre-ptfr #module-news.news-detail-page .news-entry-meta .news-meta-pill:has(a[href="#comments-list"]) {border-color:#38515c;background:#445963;color:#fff;}
body.exploterre-ptfr #module-news.news-detail-page .news-entry-meta .news-meta-pill:has(a[href="#comments-list"]) :is(a,i) {color:#fff!important;font-weight:700;}
body.exploterre-ptfr #module-news.news-detail-page .news-entry-meta .news-meta-pill:has(a[href="#comments-list"]):hover {background:#31444e;}

/* Edition du profil : véritable surface roche distincte du fond de page,
   champs blancs et titres lisibles ; pas de gris clair sur gris clair. */
body.exploterre-ptfr .site-page-content :is(#module-user, [id^="module-user-"]:not(#module-user-login,#module-user-users-list)) fieldset:not(.fieldset-submit),
body.exploterre-ptfr .site-page-content form[action*="profile"] fieldset:not(.fieldset-submit) {padding:18px clamp(14px,2vw,24px);margin:14px 0 22px;background:var(--terra-panel-rock)!important;border:1px solid var(--terra-panel-line)!important;border-radius:12px;}
body.exploterre-ptfr .site-page-content :is(#module-user, [id^="module-user-"]:not(#module-user-login,#module-user-users-list)) fieldset:not(.fieldset-submit) > legend,
body.exploterre-ptfr .site-page-content form[action*="profile"] fieldset:not(.fieldset-submit) > legend {display:table;width:auto;max-width:100%;padding:9px 15px;border-radius:9px;background:#4c5a61!important;color:#fff!important;border:1px solid #3c4c54;font-weight:750;}
body.exploterre-ptfr .site-page-content :is(#module-user, [id^="module-user-"]:not(#module-user-login,#module-user-users-list)) fieldset:not(.fieldset-submit) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
body.exploterre-ptfr .site-page-content form[action*="profile"] fieldset:not(.fieldset-submit) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {background:#fff;color:#28292a;border-color:#968678;}
body.exploterre-ptfr .site-page-content :is(#module-user, [id^="module-user-"]:not(#module-user-login,#module-user-users-list)) fieldset:not(.fieldset-submit) :is(label,.form-element-description,.form-element-info) {color:#2b2c2d;}

/* Tableau de bord membre — l'association doit ressortir et rester contrastée. */
body.exploterre-ptfr #module-user-home .terra-user-association {align-items:center;gap:16px;margin:18px 0;padding:clamp(17px,2.1vw,27px);border:1px solid #3b4b52;border-radius:14px;background:#42545d!important;color:#fff;}
body.exploterre-ptfr #module-user-home .terra-user-association :is(h2,p,.terra-user-eyebrow) {color:#fff!important;}
body.exploterre-ptfr #module-user-home .terra-user-association .terra-user-eyebrow {color:#f3d2b8!important;letter-spacing:.08em;}
body.exploterre-ptfr #module-user-home .terra-user-association h2 {margin:5px 0;font-size:clamp(1.28rem,1.6vw,1.7rem);line-height:1.22;}
body.exploterre-ptfr #module-user-home .terra-user-association .terra-user-association-icon {display:grid;place-items:center;flex:0 0 49px;width:49px;height:49px;border-radius:11px;background:#fff2e3;color:#634839;font-size:1.2rem;}
body.exploterre-ptfr #module-user-home .terra-user-association a.terra-user-association-action {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;margin:0;padding:10px 14px;border:1px solid #eecbae;border-radius:9px;background:#f2d4ba!important;color:#362a22!important;font-weight:760;text-decoration:none!important;}
body.exploterre-ptfr #module-user-home .terra-user-association a.terra-user-association-action:hover {background:#ffe4cc!important;color:#362a22!important;}
body.exploterre-ptfr #module-user-home .terra-user-association a.terra-user-association-action i {color:inherit!important;}

/* Forum — statuts en pictogrammes depuis la police d'icônes locale déjà en cache. */
body.exploterre-ptfr #module-forum .color-type-message.forum-type-icon {display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;min-width:31px;padding:0;margin:0;border:1px solid #baaea2;border-radius:8px;background:#e2d5c7;color:#674632;font-size:.88rem;}
body.exploterre-ptfr #module-forum .color-type-message.forum-type-icon:has(.fa-bullhorn) {background:#f7e3cf;color:#905019;border-color:#d1ad83;}
body.exploterre-ptfr #module-forum .color-type-message.forum-type-icon:has(.fa-thumbtack) {background:#e1e8eb;color:#365564;border-color:#afc1c9;}
body.exploterre-ptfr #module-forum :is(.color-type-message.forum-type-icon--locked,.forum-topic-status i[class*="lock"],.forum-topic-status [class*="lock"]) {color:#ae2734!important;}
body.exploterre-ptfr #module-forum .color-type-message.forum-type-icon--locked {border-color:#d89da3;background:#fbe9eb;}

/* Responsivité 320 / 390 / 768 — accueil, commentaires, profil, forum. */
@media(max-width:1100px) {
  body.exploterre-ptfr .terra-home-shortcuts {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px) {
  body.exploterre-ptfr .terra-home-hero {min-height:490px;border-radius:15px;}
  body.exploterre-ptfr .terra-home-hero-photo img {object-position:center 22%;}
  body.exploterre-ptfr .terra-home-hero::after {background:linear-gradient(0deg,#293632 16%,#293632 38%,#293632aa 63%,#29363226 100%);}
  body.exploterre-ptfr .terra-home-hero-content {width:100%;padding:clamp(19px,5vw,30px);padding-top:100px;padding-bottom:72px;}
  body.exploterre-ptfr .terra-home-hero h1 {font-size:clamp(3.1rem,11vw,5.1rem)!important;}
  body.exploterre-ptfr .terra-home-hero-description {margin-top:14px;}
  body.exploterre-ptfr .terra-home-hero-actions {gap:8px;margin-top:17px;}
  body.exploterre-ptfr .terra-home-btn {font-size:.82rem;padding:9px 10px;}
  body.exploterre-ptfr .terra-home-shortcuts {gap:9px;}
  body.exploterre-ptfr .terra-home-shortcuts > a {grid-template-columns:34px minmax(0,1fr);gap:9px;min-height:81px;padding:9px;}
  body.exploterre-ptfr .terra-home-shortcuts > a > i:first-child {width:34px;height:34px;}
  body.exploterre-ptfr .terra-home-shortcuts > a > i:last-child {display:none;}
  body.exploterre-ptfr #module-user-home .terra-user-association {flex-wrap:wrap;}
  body.exploterre-ptfr #module-user-home .terra-user-association .terra-user-association-copy {flex:1 1 calc(100% - 78px);min-width:0;}
  body.exploterre-ptfr #module-user-home .terra-user-association a.terra-user-association-action {width:100%;}
  body.exploterre-ptfr #module-news.news-detail-page .terra-news-comments {padding:12px;}
}
@media(max-width:360px) {
  body.exploterre-ptfr .terra-home-shortcuts {grid-template-columns:1fr;}
  body.exploterre-ptfr .terra-home-hero-actions > a {flex:1 1 auto;}
  body.exploterre-ptfr .terra-home-photo-credit {right:8px;bottom:7px;}
}
@media(prefers-reduced-motion:reduce) {body.exploterre-ptfr .terra-home-hero *,body.exploterre-ptfr .terra-home-shortcuts * {transition:none!important;}}

/* ===== ExploTerre-Terra v6.6 : commentaires / inscription / forum / administration ===== */
/* Commentaires réels hors du conteneur de l'actualité (structure HTML dédiée). */
body.exploterre-ptfr .site-page-content:has(> #module-news.news-detail-page) {overflow:visible;}
body.exploterre-ptfr .terra-news-comments-panel {
  display:block;clear:both;margin:24px 0 0;padding:0;border:1px solid #bdb0a5;
  border-radius:14px;background:#f1ede8;overflow:hidden;box-shadow:0 2px 8px #2c211508;
}
body.exploterre-ptfr .terra-news-comments-panel-heading {display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 20px;background:var(--heading-fill);color:var(--ink);}
body.exploterre-ptfr .terra-news-comments-panel-heading > i {display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--surface);color:var(--brand);}
body.exploterre-ptfr .terra-news-comments-panel-heading h2 {margin:0!important;padding:0!important;border:0!important;background:none!important;color:var(--ink)!important;font-size:1.19rem!important;line-height:1.3;}
body.exploterre-ptfr .terra-news-comments-panel-body {padding:clamp(14px,2vw,25px);background:#f1ede8;}
body.exploterre-ptfr .terra-news-comments-panel-body :is(form,fieldset,textarea,.bbcode-editor) {max-width:100%;min-width:0;}
body.exploterre-ptfr .terra-news-comments-panel-body :is(fieldset,.fieldset-inset) {padding:clamp(13px,1.6vw,22px);margin:14px 0;border:1px solid #cabdb3;border-radius:11px;background:#fff;}
body.exploterre-ptfr .terra-news-comments-panel-body .message {margin:0 0 16px;padding:14px;border:1px solid #d6c9bf;border-radius:11px;background:#fff;}
body.exploterre-ptfr .terra-news-comments-panel-body .form-element {margin-bottom:14px;}
body.exploterre-ptfr .terra-news-comments-panel-body :is(button,input[type="submit"],.basic-button) {min-height:42px;padding:9px 16px;border-radius:9px;}
body.exploterre-ptfr .terra-news-comments-panel-body :is(textarea,.bbcode-editor textarea) {background:#fff;}
body.exploterre-ptfr #module-news.news-detail-page .article-news > aside {margin-bottom:0;}
/* Déplacer le compteur de places et le délai sous le bouton : deux repères autonomes. */
body.exploterre-ptfr .terra-calendar-registration-primary {display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;max-width:100%;}
body.exploterre-ptfr .terra-calendar-registration-hints {display:flex;align-items:flex-start;flex-wrap:wrap;gap:9px 10px;width:100%;}
body.exploterre-ptfr .terra-calendar-registration-hint {display:inline-flex;align-items:center;gap:8px;padding:9px 12px;min-height:39px;border:1px solid #b6c3c7;border-radius:9px;background:#e7eef0;color:#29434f;font-size:.89rem;font-weight:650;line-height:1.3;}
body.exploterre-ptfr .terra-calendar-registration-hint i {flex:none;color:#376379;}
body.exploterre-ptfr .terra-calendar-registration-actions {align-items:flex-start;row-gap:15px;}
body.exploterre-ptfr #module-calendar.terra-calendar-detail-page .terra-calendar-notify-form {
  display:flex; max-width:100%; min-width:0; align-self:flex-start;
  margin:0; padding:0; border:0; background:transparent;
}
body.exploterre-ptfr #module-calendar.terra-calendar-detail-page .terra-calendar-registration-actions
  :is(.terra-calendar-primary-action,.terra-calendar-secondary-action,.terra-calendar-notify-action) {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  min-block-size:44px; max-inline-size:100%; margin:0; padding:.58rem .9rem;
  font-size:.94rem; font-weight:700; line-height:1.3; text-align:center;
}
@media(max-width:560px) {
  body.exploterre-ptfr #module-calendar.terra-calendar-detail-page .terra-calendar-notify-form {
    flex:1 1 100%;
  }
  body.exploterre-ptfr #module-calendar.terra-calendar-detail-page .terra-calendar-notify-action {width:100%;}
}
body.exploterre-ptfr #module-calendar.terra-calendar-detail-page
  :is(.terra-calendar-location-restricted > i,.terra-calendar-gpx-access-note) {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  max-width:100%; min-height:36px; padding:.35rem .6rem;
  border:1px solid var(--panel-line); border-radius:var(--control-radius);
  background:var(--module-band-slate); color:var(--brand);
  font-weight:650; line-height:1.3;
}
body.exploterre-ptfr #module-calendar.terra-calendar-detail-page .terra-calendar-location-restricted > i {min-width:36px;}
body.exploterre-ptfr #module-calendar.terra-calendar-detail-page a.terra-calendar-gpx-access-note:is(:hover,:focus-visible) {
  background:var(--stone-hover); color:var(--brand-hover); text-decoration:underline;
}
/* Sujet sans colonne de pseudo-statut : clochette violette uniquement si non lu. */
body.exploterre-ptfr #module-forum .forum-table td.forum-topic {padding-left:9px!important;}
body.exploterre-ptfr #module-forum .forum-title-row {gap:6px;align-items:center;}
body.exploterre-ptfr #module-forum .forum-title-row .terra-forum-new-bell {
  display:inline-grid;place-items:center;flex:0 0 29px;width:29px;height:29px;
  border:1px solid #b7a2dc;border-radius:9px;background:#eae1ff;color:#7545b5;font-size:.86rem;
}
body.exploterre-ptfr #module-forum .forum-title-row .terra-forum-new-bell i {color:inherit;}
body.exploterre-ptfr #module-forum .forum-table#table2 .forum-topic-status {display:none!important;}
body.exploterre-ptfr #module-forum .forum-table#table2 td.forum-topic {padding-left:8px!important;}
body.exploterre-ptfr #module-forum .forum-table#table2 td.forum-last-topic {vertical-align:middle;padding:8px 11px;min-width:0;}
body.exploterre-ptfr #module-forum .forum-table#table2 .terra-forum-last-message-compact {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;margin:0;min-height:52px;}
body.exploterre-ptfr #module-forum .forum-table#table2 .terra-forum-last-message-compact :is(.last-topic-date,.last-topic-user) {display:block;width:100%;margin:0!important;padding:0!important;line-height:1.25;}
body.exploterre-ptfr #module-forum .forum-table#table2 .terra-forum-last-message-compact :is(a,em) {font-size:.89rem;line-height:1.25;}
body.exploterre-ptfr #module-forum .forum-table#table2 td.forum-view {width:80px;min-width:0;padding:8px;}
@media(min-width:980px) {body.exploterre-ptfr #module-forum .forum-table#table2 td.forum-author {width:clamp(120px,13vw,172px);padding:8px 10px;}}
body.exploterre-ptfr .site-account-panel .terra-admin-home-link {display:flex;align-items:center;gap:10px;min-height:42px;margin:8px 0 5px;padding:10px 13px;border:1px solid #b9c3c9;border-radius:9px;background:#e0e8ec;color:#263a44!important;text-align:left;font-weight:720;text-decoration:none!important;}
body.exploterre-ptfr .site-account-panel .terra-admin-home-link:hover {background:#ccd9e0;color:#20323a!important;}
@media(max-width:700px){
  body.exploterre-ptfr .terra-news-comments-panel {margin-top:16px;}
  body.exploterre-ptfr .terra-news-comments-panel-heading {padding:11px 13px;}
  body.exploterre-ptfr .terra-news-comments-panel-body {padding:12px;}
  body.exploterre-ptfr .terra-calendar-registration-primary {width:100%;}
  body.exploterre-ptfr .terra-calendar-registration-hint {width:100%;}
  body.exploterre-ptfr #module-forum .forum-table#table2 .terra-forum-last-message-compact {min-height:0;}
}

/* ===== v6.7 — alignement forum, messages non lus et accessibilité ===== */
/* Une seule indentation des titres sur l'index et dans chaque sous-forum. */
body.exploterre-ptfr #module-forum .forum-table td.forum-topic,
body.exploterre-ptfr #module-forum .forum-table#table2 td.forum-topic,
body.exploterre-ptfr #module-forum .forum-table .td-accueil-forum.forum-topic {padding-inline-start:17px!important;}
body.exploterre-ptfr #module-forum .forum-title-row {display:flex;align-items:center;gap:8px;min-width:0;}
/* Uniquement le total des sujets du forum non lus fourni par PHPBoost. */
body.exploterre-ptfr .site-account-trigger .site-account-unread-count:not([hidden]) {position:absolute;inset-block-start:-.35rem;inset-inline-end:-.35rem;display:inline-grid;place-items:center;min-width:24px;height:24px;padding:1px 7px;border-radius:20px;background:#7e4db1;color:#fff;border:1px solid #a180c7;font-size:.76rem;line-height:1.1;font-weight:800;flex:0 0 auto;}
body.exploterre-ptfr .site-account-panel .terra-forum-unread-shortcut:not([hidden]) {display:block;margin:8px 0;}
body.exploterre-ptfr .site-account-panel .terra-forum-unread-link {display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:47px;width:100%;margin:0;padding:11px 13px;border:1px solid #bdabd4;border-radius:10px;background:#eee7f6;color:#422b5c!important;text-align:left;text-decoration:none!important;font-weight:730;}
body.exploterre-ptfr .site-account-panel .terra-forum-unread-link:is(:hover,:focus-visible) {background:#dfd1f1;border-color:#9a7abf;color:#39214e!important;}
body.exploterre-ptfr .site-account-panel .terra-forum-unread-link .connect-menu-label {display:inline-flex;align-items:center;gap:10px;min-width:0;flex:1;text-align:left;}
body.exploterre-ptfr .site-account-panel .terra-forum-unread-link .connect-menu-label i {color:#7a49aa!important;}
body.exploterre-ptfr .site-account-panel .terra-forum-unread-link .connect-notification-badge {display:inline-grid;place-items:center;margin-left:auto;padding:3px 9px;min-width:25px;min-height:25px;border:0;border-radius:20px;background:#7e4db1;color:#fff;font-size:.79rem;font-weight:800;}
@media (max-width:979px) {
 body.exploterre-ptfr #module-forum .forum-table td.forum-topic,
 body.exploterre-ptfr #module-forum .forum-table#table2 td.forum-topic,
 body.exploterre-ptfr #module-forum .forum-table .td-accueil-forum.forum-topic {padding-inline-start:14px!important;}
}
@media (max-width:360px) {
 body.exploterre-ptfr .site-account-trigger {width:auto;min-width:60px;padding:9px 8px;}
 body.exploterre-ptfr .site-account-trigger > .site-account-unread-count:not([hidden]) {position:absolute!important;width:auto!important;height:24px!important;overflow:visible!important;clip-path:none!important;white-space:nowrap!important;}
}

/* ===== ExploTerre-Terra 6.8 — Planet-Truck BBCode adapté : 2 rangées, popups lisibles ===== */
body.exploterre-ptfr .bbcode.terra-bbcode-v68 {
  position:relative;display:block!important;width:100%;min-width:0;max-width:100%;
  padding:10px 12px!important;margin:9px 0 13px!important;
  border:1px solid #b8aaa0!important;border-radius:12px;
  background:#e1d8d0!important;color:#302c29;overflow:visible!important;
  box-sizing:border-box;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-containers {
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;align-content:start;
  width:100%;min-width:0;gap:6px 8px!important;overflow:visible!important;
}
body.exploterre-ptfr .terra-bbcode-v68 .terra-bbcode-row-break {
  display:block!important;flex:0 0 100%;width:100%;height:0;
  border:0;margin:0!important;padding:0!important;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-container,
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-container-more {
  display:flex!important;flex:0 1 auto;flex-wrap:wrap!important;align-items:center;gap:4px!important;max-width:100%;
  min-width:0;margin:0!important;padding:0 8px 0 0!important;
  border:0;list-style:none;
  position:static!important;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-container:has(.bbcode-forbidden):not(:has(> .bbcode-elements > a:not(.bbcode-forbidden))) {display:none!important;}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements {display:inline-flex;position:relative!important;margin:0!important;padding:0!important;}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements > a {
  display:inline-grid!important;place-items:center;
  width:39px!important;min-width:39px!important;height:39px!important;min-height:39px!important;
  padding:0!important;margin:0!important;
  border:1px solid #c4b7ab!important;border-radius:8px!important;
  background:#fff!important;color:#4d514f!important;
  font-size:1rem!important;line-height:1!important;text-decoration:none!important;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements > a:is(:hover,:focus-visible) {
  background:#4d626c!important;color:#fff!important;border-color:#415660!important;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements > a:focus-visible {outline:3px solid #b88357;outline-offset:2px;}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements > a i {color:inherit!important;}
/* Forbid tool = hidden, not an inert decorative button. */
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements:has(> a.bbcode-forbidden),
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements:has(> a i.bbcode-forbidden) {display:none!important;}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements > .bbcode-block-container {
  display:block;position:absolute!important;inset:calc(100% + 8px) auto auto 0!important;
  z-index:3000!important;width:max-content!important;min-width:0!important;
  max-width:min(440px,calc(100vw - 24px))!important;
  max-height:min(67vh,600px)!important;margin:0!important;padding:8px!important;
  overflow:auto!important;overscroll-behavior:contain;
  border:1px solid #9a8878!important;border-radius:12px!important;
  background:#fffaf5!important;color:#2d3337!important;
  box-shadow:0 15px 40px #251e173b!important;
  box-sizing:border-box;
}
/* The reference script changes top/bottom/transform at viewport edges. */
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements > .bbcode-block-container[style*="display: none"] {display:none!important;}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements > .bbcode-block-container[style*="bottom: calc"] {
  top:auto!important;bottom:calc(100% + 8px)!important;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block {
  box-sizing:border-box;width:min(380px,calc(100vw - 44px))!important;
  min-width:0!important;max-width:100%!important;margin:0!important;
  padding:8px!important;border:0!important;background:#fffaf5!important;
  overflow-x:hidden;overflow-y:auto;color:#2d3337!important;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-list li a,
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-list .bbcode-code-title span {
  display:block;min-height:35px;margin:1px 0;padding:9px 12px!important;
  border:0;border-radius:7px;color:#34302d;line-height:1.4;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-list li a:hover {background:#e2d3c4!important;color:#2d2724!important;}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-list li a:focus-visible {outline:2px solid #4b6571;outline-offset:1px;}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block .form-element {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(70px,108px);
  gap:9px;padding:10px!important;align-items:center;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block .form-element :is(input,select) {max-width:100%;min-width:0;}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-smileys,
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-fa {
  width:min(370px,calc(100vw - 45px))!important;max-width:100%!important;
  max-height:min(50vh,360px)!important;
  display:flex;flex-wrap:wrap;align-content:flex-start;gap:5px;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-smileys li,
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-fa li {margin:0!important;}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-smileys li a,
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-fa li a {
  display:grid;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;
  padding:3px!important;border:1px solid #e0d6ce;border-radius:7px;background:#fff;
}
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block-container.color-picker :is(table,tbody,tr) {max-width:100%;}
@media (max-width:768px) {
  body.exploterre-ptfr .bbcode.terra-bbcode-v68 {padding:8px!important;}
  body.exploterre-ptfr .terra-bbcode-v68 .bbcode-containers {gap:5px!important;}
  body.exploterre-ptfr .terra-bbcode-v68 .bbcode-container {gap:3px!important;padding-right:6px!important;}
  body.exploterre-ptfr .terra-bbcode-v68 .bbcode-elements > a {width:37px!important;min-width:37px!important;height:39px!important;min-height:39px!important;}
  body.exploterre-ptfr .terra-bbcode-v68 > .bbcode-block-container.bbcode-mobile-open {
    display:block!important;position:relative!important;inset:auto!important;transform:none!important;
    width:100%!important;max-width:100%!important;max-height:60vh!important;
    margin:10px 0 0!important;padding:8px!important;flex-basis:100%;
  }
  body.exploterre-ptfr .terra-bbcode-v68 > .bbcode-block-container.bbcode-mobile-open .bbcode-block {width:100%!important;max-width:100%!important;}
  body.exploterre-ptfr .terra-bbcode-v68 .bbcode-block .form-element {grid-template-columns:1fr;gap:5px;}
}
/* Profiles, including the administration editing screens that use .fieldset rather than native fieldset. */
body.exploterre-ptfr .site-page-content :is(#module-user,[id^="module-user-"]:not(#module-user-login,#module-user-users-list),form[action*="profile"],form[action*="edit-profile"])
  :is(fieldset:not(.fieldset-submit),.fieldset:not(.fieldset-submit),.form-fieldset,.fieldset-inset) {
  background:var(--surface)!important;border:1px solid var(--panel-line)!important;border-radius:12px!important;
  padding:clamp(16px,1.8vw,24px)!important;margin:16px 0 23px!important;
  color:#242b30!important;box-shadow:none!important;
}
body.exploterre-ptfr .site-page-content :is(#module-user,[id^="module-user-"]:not(#module-user-login,#module-user-users-list),form[action*="profile"],form[action*="edit-profile"])
  :is(fieldset:not(.fieldset-submit),.fieldset:not(.fieldset-submit),.form-fieldset,.fieldset-inset) > :is(legend,.fieldset-legend,.form-legend) {
  display:table;padding:9px 14px!important;border:1px solid var(--panel-line)!important;
  border-radius:8px!important;background:var(--stone)!important;color:var(--brand)!important;
  font-weight:750!important;
}
body.exploterre-ptfr .site-page-content :is(#module-user,[id^="module-user-"]:not(#module-user-login,#module-user-users-list))
 :is(fieldset,.fieldset,.fieldset-inset) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
 background:#fff!important;color:#252c30!important;border:1px solid #786c60!important;
}
body.exploterre-ptfr .site-page-content :is(#module-user,[id^="module-user-"]:not(#module-user-login,#module-user-users-list))
 :is(fieldset,.fieldset,.fieldset-inset) :is(label,.form-element-description,.form-element-info) {color:#252c30!important;}

/* Deux groupes de commandes BBCode, avec retour a la ligne si necessaire. */
body.exploterre-ptfr .terra-bbcode-v68 .bbcode-containers {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;
}
body.exploterre-ptfr .terra-bbcode-v68 .terra-bbcode-line {
  display:flex!important;flex-direction:row;flex-wrap:wrap!important;align-items:center;
  gap:6px;width:100%;max-width:100%;min-width:0;overflow:visible;
}
body.exploterre-ptfr .terra-bbcode-v68 .terra-bbcode-line-one {
  padding:0 0 7px;
}
body.exploterre-ptfr .terra-bbcode-v68 .terra-bbcode-line-two {padding:2px 0 0;}
body.exploterre-ptfr .terra-bbcode-v68 .terra-bbcode-line > .bbcode-container {
  flex:0 1 auto!important;flex-wrap:wrap!important;max-width:100%;min-width:0;
}
@media (max-width:1100px) {
  body.exploterre-ptfr .terra-bbcode-v68 > .bbcode-block-container.bbcode-mobile-open {
    position:relative!important;display:block!important;inset:auto!important;transform:none!important;
    width:100%!important;max-width:100%!important;margin:10px 0 0!important;flex-basis:100%;
  }
}

/* ===== ExploTerre Terra v6.9 — barre BBCode : icônes plates, gris roche, zéro séparateur ===== */
body.exploterre-ptfr .bbcode.terra-bbcode-v69 {
    position:relative!important;
    background:#e2e5e7!important; color:#344e60!important;
    border:1px solid #a7b3bc!important; border-radius:12px!important;
    box-shadow:none!important;
    padding:10px 12px!important;
    margin:9px 0 13px!important;
    overflow:visible!important;
}
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-containers {
    width:100%!important;max-width:100%!important;min-width:0!important;
    display:flex!important;flex-flow:column nowrap!important;
    gap:6px!important;padding:0!important;margin:0!important;
    border:0!important;background:transparent!important;
}
body.exploterre-ptfr .terra-bbcode-v69 .terra-bbcode-line {
    border:0!important;outline:0!important;
    background:transparent!important;box-shadow:none!important;
    margin:0!important;
    padding:0!important;
    gap:3px!important;
}
body.exploterre-ptfr .terra-bbcode-v69 .terra-bbcode-line-one {
    width:calc(100% - 50px)!important;
    max-width:calc(100% - 50px)!important;
    padding:0!important;
}
body.exploterre-ptfr .terra-bbcode-v69 .terra-bbcode-line-two {
    padding:0!important;
    width:100%!important;
    max-width:100%!important;
}
body.exploterre-ptfr .terra-bbcode-v69[data-terra-bbcode-ready="true"]:not(.is-expanded) .terra-bbcode-line-two {
    display:none!important;
}
body.exploterre-ptfr .terra-bbcode-v69 .terra-bbcode-line > .bbcode-container,
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-container,
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-container-more {
    display:flex!important;align-items:center!important;
    border:0!important;
    background:transparent!important;box-shadow:none!important;
    padding:0!important;margin:0!important;gap:1px!important;
}
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-container::before,
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-container::after,
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-container-more::before,
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-container-more::after,
body.exploterre-ptfr .terra-bbcode-v69 .terra-bbcode-line::before,
body.exploterre-ptfr .terra-bbcode-v69 .terra-bbcode-line::after {
    display:none!important; content:none!important;
}
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-elements > a {
    display:inline-grid!important;place-items:center!important;
    width:39px!important;min-width:39px!important;
    height:40px!important;min-height:40px!important;
    margin:0!important;padding:0!important;
    border:0!important;outline:0;
    border-radius:8px!important;
    box-shadow:none!important;
    background:transparent!important;color:#3f5b6e!important;
    text-decoration:none!important;
    line-height:1!important;font-size:1.08rem!important;
    transition:background-color .15s ease,color .15s ease;
}
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-elements > a i {color:inherit!important;}
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-elements > a:is(:hover,:focus-visible) {
    background:#c6d0d5!important;color:#213e4d!important;
    box-shadow:none!important;border:0!important;
}
body.exploterre-ptfr .terra-bbcode-v69 .bbcode-elements > a:focus-visible {
    outline:2px solid #577587!important;outline-offset:1px!important;
}
body.exploterre-ptfr .terra-bbcode-v69 .terra-bbcode-more-toggle {
    position:absolute;right:11px;top:10px;z-index:2;
    width:40px;height:40px;display:grid;place-items:center;
    border:0!important;border-radius:8px;
    background:transparent!important;color:#3f5b6e!important;
    box-shadow:none!important;cursor:pointer;
    font:inherit;font-size:1.15rem;
}
body.exploterre-ptfr .terra-bbcode-v69 .terra-bbcode-more-toggle:is(:hover,:focus-visible) {
    background:#c6d0d5!important;color:#213e4d!important;
}
body.exploterre-ptfr .terra-bbcode-v69 .terra-bbcode-more-toggle:focus-visible {
    outline:2px solid #577587!important;outline-offset:1px;
}
@media (max-width:1100px) {
    body.exploterre-ptfr .bbcode.terra-bbcode-v69 {padding:8px!important;}
    body.exploterre-ptfr .terra-bbcode-v69 .terra-bbcode-more-toggle {right:8px;top:8px;}
}

/* === Terra 6.10 : fenêtre lien — isolation totale des styles globalement hérités === */
body.exploterre-ptfr .terra-link-overlay[hidden] {display:none!important;}
body.exploterre-ptfr .terra-link-overlay {
  position:fixed!important;inset:0!important;z-index:2147483000!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;width:100vw!important;height:100dvh!important;
  padding:clamp(10px,3vw,24px)!important;margin:0!important;
  background:rgba(24,31,35,.66)!important;overflow-y:auto!important;
}
body.exploterre-ptfr .terra-link-overlay *,body.exploterre-ptfr .terra-link-overlay *::before,body.exploterre-ptfr .terra-link-overlay *::after {box-sizing:border-box;}
body.exploterre-ptfr .terra-link-panel {
  width:min(100%,560px)!important;max-width:560px!important;max-height:calc(100dvh - 20px)!important;
  margin:auto!important;padding:0!important;min-width:0!important;
  border:1px solid #acb6bb!important;border-radius:15px!important;
  background: var(--terra-panel-rock) !important;color:#29343c!important;box-shadow:0 24px 65px rgba(20,28,34,.33)!important;
  overflow-y:auto!important;overscroll-behavior:contain;
}
body.exploterre-ptfr .terra-link-heading {
  display:flex!important;align-items:center!important;gap:12px!important;
  margin:0!important;padding:16px 20px!important;background:#d8dee1!important;
  color:#283a44!important;border:0!important;
  border-radius:14px 14px 0 0!important;
}
body.exploterre-ptfr .terra-link-heading-icon {
  display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;
  border-radius:10px;background:#536773;color:#fff!important;font-size:1.1rem;
}
body.exploterre-ptfr .terra-link-heading > div {flex:1 1 auto;min-width:0;}
body.exploterre-ptfr .terra-link-heading h2 {
  margin:0 0 3px!important;padding:0!important;border:0!important;background:transparent!important;
  color:#243943!important;font-size:1.25rem!important;line-height:1.25!important;letter-spacing:0!important;
}
body.exploterre-ptfr .terra-link-heading p {margin:0!important;color:#43555e!important;font-size:.9rem!important;}
body.exploterre-ptfr .terra-link-heading .terra-link-close {
  flex:0 0 38px;display:grid;place-items:center;width:38px;height:38px;min-height:38px;
  padding:0!important;border:1px solid #b1bec4!important;border-radius:8px!important;
  background:#f9fafb!important;color:#2e404b!important;cursor:pointer;
}
body.exploterre-ptfr .terra-link-form {display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
body.exploterre-ptfr .terra-link-body {display:grid!important;gap:14px!important;padding:20px!important;background:#fff!important;}
body.exploterre-ptfr .terra-link-field {display:grid!important;gap:6px!important;margin:0!important;color:#30434f!important;font-weight:700!important;}
body.exploterre-ptfr .terra-link-field>span {color:#ad3f30!important;}
body.exploterre-ptfr .terra-link-field>input {
  display:block!important;width:100%!important;max-width:100%!important;min-height:44px!important;
  padding:9px 11px!important;border:1px solid #a7b3ba!important;border-radius:9px!important;
  background:#fff!important;color:#233943!important;box-shadow:none!important;font:inherit!important;font-weight:400!important;
}
body.exploterre-ptfr .terra-link-options {
  display:flex!important;flex-wrap:wrap!important;gap:10px 18px!important;align-items:center;
  min-width:0!important;margin:2px 0!important;padding:14px!important;
  border:1px solid #cbd3d7!important;border-radius:10px!important;background:#eef1f3!important;
}
body.exploterre-ptfr .terra-link-options legend {padding:0 6px!important;margin:0 0 3px!important;color:#283d49!important;font-weight:750!important;font-size:.94rem!important;}
body.exploterre-ptfr .terra-link-options label {
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  margin:0!important;min-height:30px!important;color:#293d49!important;font-size:.93rem!important;line-height:1.4!important;
}
body.exploterre-ptfr .terra-link-options :is(input[type=checkbox],input[type=color]) {flex:none;margin:0!important;accent-color:#466373;}
body.exploterre-ptfr .terra-link-options input[type=color] {width:34px!important;height:31px!important;padding:2px!important;border:1px solid #a7b3ba!important;border-radius:6px;}
body.exploterre-ptfr .terra-link-preview {display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0;margin:0!important;padding:11px 13px;background:#f1eee9;border:1px solid #d8cfc6;border-radius:10px;}
body.exploterre-ptfr .terra-link-preview span {color:#47525a!important;font-weight:700!important;}
body.exploterre-ptfr .terra-link-preview a {max-width:100%;overflow-wrap:anywhere;color:#265b76!important;text-decoration:none;}
body.exploterre-ptfr .terra-link-error:not([hidden]) {margin:0!important;color:#912c32!important;font-weight:700!important;}
body.exploterre-ptfr .terra-link-actions {display:flex!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:10px!important;margin:0!important;padding:14px 20px!important;background:#eff1f2!important;}
body.exploterre-ptfr .terra-link-actions button {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  min-height:42px!important;margin:0!important;padding:10px 16px!important;
  border:1px solid #9ca9af!important;border-radius:9px!important;background:#e2d2c3!important;
  color:#29343a!important;font:inherit!important;font-weight:700!important;cursor:pointer;
}
body.exploterre-ptfr .terra-link-actions .terra-link-submit {background:#286044!important;color:#fff!important;border-color:#286044!important;}
body.exploterre-ptfr .terra-link-actions .terra-link-submit:hover {background:#1e4a34!important;color:#fff!important;}
body.exploterre-ptfr .terra-link-overlay :is(button,input,a):focus-visible {outline:3px solid #b27046!important;outline-offset:2px!important;}
@media(max-width:500px){
  body.exploterre-ptfr .terra-link-overlay {padding:9px!important;}
  body.exploterre-ptfr .terra-link-heading {padding:12px!important;}
  body.exploterre-ptfr .terra-link-heading p {font-size:.82rem!important;}
  body.exploterre-ptfr .terra-link-body {padding:14px!important;gap:10px!important;}
  body.exploterre-ptfr .terra-link-actions {padding:12px!important;}
  body.exploterre-ptfr .terra-link-actions button {flex:1 1 calc(50% - 6px);}
}

/* Les cinq niveaux de titre BBCode ont leur propre teinte. */
body.ptfr-2027 .site-page-content :is(h1,h2,h3,h4,h5,h6).formatter-title {
  display:block!important;clear:both!important;box-sizing:border-box!important;
  max-width:100%!important;min-width:0!important;width:auto!important;
  margin:15px 0 12px!important;padding:10px 15px!important;
  border:1px solid transparent!important;border-radius:10px!important;
  box-shadow:none!important;text-transform:none!important;
  font-style:normal!important;line-height:1.32!important;letter-spacing:normal!important;
  overflow-wrap:anywhere!important;
}
/* PHPBoost rend [title=1] par un h2. */
body.ptfr-2027 .site-page-content :is(h1,h2).formatter-title {
  background:#344b55!important;border-color:#344b55!important;color:#fff9ef!important;
  font-size:clamp(1.32rem,2vw,1.67rem)!important;font-weight:800!important;
}
body.ptfr-2027 .site-page-content h3.formatter-title {
  background:#dbc7b4!important;border-color:#bba187!important;color:var(--brand)!important;
  font-size:clamp(1.18rem,1.8vw,1.4rem)!important;font-weight:760!important;
}
body.ptfr-2027 .site-page-content h4.formatter-title {
  background:#d3dfe4!important;border-color:#a8bdc6!important;color:#2d4652!important;
  font-size:1.17rem!important;font-weight:730!important;
}
body.ptfr-2027 .site-page-content h5.formatter-title {
  background:#e8d7bf!important;border-color:#c9b08c!important;color:#65452d!important;
  font-size:1.075rem!important;font-weight:710!important;
}
body.ptfr-2027 .site-page-content h6.formatter-title {
  background:#dedbd6!important;border-color:#bab4ab!important;color:#49423a!important;
  font-size:1rem!important;font-weight:700!important;
}
body.ptfr-2027 .site-page-content :is(h1,h2,h3,h4,h5,h6).formatter-title a {color:inherit!important;text-decoration:none!important;}
body.ptfr-2027 .site-page-content :is(h1,h2,h3,h4,h5,h6).formatter-title a:is(:hover,:focus-visible) {
  text-decoration:underline!important;text-underline-offset:.15em;
}
@media(max-width:540px){body.ptfr-2027 .site-page-content :is(h1,h2,h3,h4,h5,h6).formatter-title {padding:9px 12px!important;margin:12px 0 10px!important;}}

/* ==========================================================================
   Terra v6.15 — styles BBCode dans les contenus PHPBoost
   Correction structurelle : les liens successifs contenant [style] sont
   réunis par links.js dans .terra-style-strip, même si PHPBoost a inséré des
   <p> / <div> individuels autour de chacun. Aucun BR/texte enregistré n'est
   modifié. Les styles isolés restent des encarts autonomes.
   ========================================================================== */
body.exploterre-ptfr .site-page-content .terra-style-strip {
  display:flex!important;
  flex-flow:row wrap!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:10px 12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:12px 0 16px!important;
  padding:0!important;
  clear:both;
  box-sizing:border-box;
}
/* Le parseur PHPBoost peut entourer chaque lien par un paragraphe. */
body.exploterre-ptfr .site-page-content .terra-style-strip > :is(p,div,span) {
  display:block!important;
  flex:0 1 auto!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  clear:none!important;
  background:transparent!important;
  box-sizing:border-box;
}
/* Un lien enrobant un [style] n'est pas une alerte pleine largeur. */
body.exploterre-ptfr .site-page-content a.terra-style-card-link,
body.exploterre-ptfr .site-page-content a.terra-style-card-link.ptfr-text-link[href],
body.exploterre-ptfr .site-page-content a.terra-style-card-link.ptfr-text-link[href]:visited,
body.exploterre-ptfr .site-page-content .terra-style-strip a:has(.message-helper) {
  display:inline-flex!important;
  flex:0 1 auto!important;
  float:none!important;
  clear:none!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 10px 10px 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:inherit;
  text-decoration:none!important;
  vertical-align:top!important;
  box-sizing:border-box!important;
}
body.exploterre-ptfr .site-page-content .terra-style-strip a.terra-style-card-link,
body.exploterre-ptfr .site-page-content .terra-style-strip a.terra-style-card-link.ptfr-text-link[href] {
  margin:0!important;
}
/* Icônes et texte ont chacun leur place dans l'encart. */
body.exploterre-ptfr .site-page-content .message-helper:not(.ptfr-inline-link-only) {
  display:inline-flex!important;
  position:relative!important;
  align-items:center!important;
  flex:0 1 auto;
  float:none!important;
  clear:none!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  height:auto!important;
  margin:8px 12px 10px 0!important;
  padding:10px 15px 10px 49px!important;
  line-height:1.45!important;
  text-align:left!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  vertical-align:top!important;
  box-sizing:border-box!important;
}
body.exploterre-ptfr .site-page-content a.terra-style-card-link > .message-helper:not(.ptfr-inline-link-only),
body.exploterre-ptfr .site-page-content .terra-style-strip .message-helper:not(.ptfr-inline-link-only) {
  margin:0!important;
}
body.exploterre-ptfr .site-page-content .message-helper:not(.ptfr-inline-link-only)::before {
  position:absolute!important;
  inset:auto!important;
  left:12px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  display:grid!important;
  place-items:center!important;
  flex-shrink:0!important;
  width:26px!important;
  height:26px!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}
body.exploterre-ptfr .site-page-content .terra-style-strip .ptfr-external-link-affix {
  display:inline!important;
  flex:0 0 auto;
}
@media (max-width:580px) {
  body.exploterre-ptfr .site-page-content .terra-style-strip {gap:9px!important;}
  body.exploterre-ptfr .site-page-content .terra-style-strip > :is(p,div,span),
  body.exploterre-ptfr .site-page-content .terra-style-strip a.terra-style-card-link {
    max-width:100%!important;
  }
  body.exploterre-ptfr .site-page-content .message-helper:not(.ptfr-inline-link-only) {
    padding:9px 12px 9px 46px!important;
  }
}

/* v6.16 — BBCode [style] inline dans contenu et blocs HTML.
   Un conteneur inline-flex transformait les fragments de texte en colonnes.
   Les alertes systeme (formulaires, popups) ne sont pas touchees. */
body.exploterre-ptfr :is(.site-page-content, .module-mini-contents, .block-content, .custom-html-content)
  a:has(> .message-helper),
body.exploterre-ptfr :is(.site-page-content, .module-mini-contents, .block-content, .custom-html-content)
  a.terra-style-card-link {
  display:inline-block!important; width:auto!important; max-width:100%!important;
  margin:0 10px 10px 0!important; padding:0!important; border:0!important;
  float:none!important; clear:none!important; background:transparent!important;
  text-align:left!important; vertical-align:top!important;
  white-space:normal!important; text-decoration:none!important;
}
body.exploterre-ptfr :is(.site-page-content, .module-mini-contents, .block-content, .custom-html-content)
  :is(a > .message-helper, .terra-style-strip .message-helper),
body.exploterre-ptfr :is(.article-news .content, .article-pages .content, .news-entry-prose, .message-content)
  > .message-helper {
  display:inline-block!important; position:relative!important;
  width:auto!important; max-width:100%!important; min-width:0!important;
  margin:0!important; min-height:40px; height:auto!important;
  padding:10px 14px 10px 48px!important; box-sizing:border-box!important;
  white-space:normal!important; overflow-wrap:anywhere!important; word-break:normal!important;
  line-height:1.48!important; vertical-align:middle!important;
  float:none!important; clear:none!important; text-align:left!important;
}
body.exploterre-ptfr :is(.site-page-content,.module-mini-contents,.block-content,.custom-html-content)
  a > .message-helper::before,
body.exploterre-ptfr :is(.article-news .content,.article-pages .content,.news-entry-prose,.message-content)
  > .message-helper::before {
  position:absolute!important; left:11px!important; top:50%!important;
  transform:translateY(-50%)!important; display:grid!important;
  place-items:center!important; width:26px!important; height:26px!important;
  margin:0!important; padding:0!important;
}
body.exploterre-ptfr :is(.site-page-content,.module-mini-contents,.block-content,.custom-html-content)
  .terra-style-strip {display:flex!important; flex-flow:row wrap!important; align-items:flex-start!important;
   gap:10px 12px!important; margin:12px 0 16px!important; padding:0!important; min-width:0!important;
   max-width:100%!important;}
body.exploterre-ptfr :is(.site-page-content,.module-mini-contents,.block-content,.custom-html-content)
  .terra-style-strip > a:has(.message-helper) {margin:0!important; flex:0 1 auto!important;}
/* Prevenir le cas classique de [style=success] comportant plusieurs paragraphs/strong. */
body.exploterre-ptfr :is(.article-news,.article-pages,.news-entry-prose,.message-content,.block-content)
  .message-helper:not(.ptfr-inline-link-only) {display:inline-block!important;max-width:100%!important;overflow-wrap:anywhere; word-break:normal; white-space:normal;}
body.exploterre-ptfr :is(.article-news,.article-pages,.news-entry-prose,.message-content)
  .message-helper :is(p,strong,span,em) {white-space:normal; overflow-wrap:anywhere; max-width:100%;}

/* ================================================================
   v6.18 — Calendrier DE SAISIE natif PHPBoost seulement.
   Important: ne JAMAIS cibler .calendar-container ou .calendar-block seuls :
   ces classes servent aussi au calendrier PUBLIC et aux mini-modules !
   Le calendrier de saisie natif possède .calendar-container > div[id^="calendar"]
   ainsi qu'un a[id$="_link"] frère de ce div (voir mini_calendar.tpl).
   ================================================================ */
body.exploterre-ptfr .input-date + .calendar-container {
  display:inline-flex!important;position:static!important;align-items:center;
  vertical-align:middle;width:auto!important;max-width:none!important;
  padding:0!important;min-width:0;overflow:visible!important;
}
body.exploterre-ptfr .input-date + .calendar-container > a[id$="_link"] {
  min-height:42px;min-width:42px;display:inline-flex;align-items:center;
  justify-content:center;border-radius:9px;background:#dac4b1;color:#483326;
}
/* Dialog fixe et indépendant de la grille du calendrier des sorties. */
body.exploterre-ptfr .input-date + .calendar-container > div[id^="calendar"].terra-native-date-dialog {
  position:fixed!important;inset:50% auto auto 50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:2147483000!important;
  width:min(420px,calc(100vw - 26px))!important;
  max-width:calc(100vw - 26px)!important;
  max-height:calc(100dvh - 28px)!important;
  overflow-y:auto!important;overscroll-behavior:contain;
  box-sizing:border-box!important;
  margin:0!important;padding:0!important;
  border-radius:15px;border:1px solid #9ba9b0;
  background:#fff;color:#283842;
  box-shadow:0 22px 64px #111e2780;
}
body.exploterre-ptfr .terra-native-date-dialog-head {
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:11px 14px;background:#3f535c;color:#fff;
  font-weight:750;font-size:1rem;
}
body.exploterre-ptfr .terra-native-date-dialog-close {
  background:#eef1f2!important;color:#2d404a!important;
  border:1px solid #ced9dd!important;width:38px;height:38px;min-height:38px!important;
  padding:0!important;border-radius:8px!important;font-size:24px;line-height:1;
  display:inline-grid!important;place-items:center;cursor:pointer;
}
body.exploterre-ptfr .terra-native-date-dialog-close:hover {background:#fff!important;color:#273840!important;}
body.exploterre-ptfr .terra-native-date-backdrop {
  position:fixed;inset:0;z-index:2147482000;background:rgba(25,37,44,.56);
}
body.exploterre-ptfr .input-date + .calendar-container > .terra-native-date-dialog > .calendar-block {
  display:block!important;position:static!important;
  width:100%!important;max-width:100%!important;
  margin:0!important;padding:14px!important;
  background:#fff!important;color:#293941!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  box-sizing:border-box!important;
}
body.exploterre-ptfr .terra-native-date-dialog .date-select-container {
  display:flex!important;align-items:center!important;gap:6px!important;
  justify-content:space-between;margin:0 0 12px!important;padding:7px!important;
  background:#e2e8eb!important;border:0!important;border-radius:9px;
}
body.exploterre-ptfr .terra-native-date-dialog .date-select-content {
  display:flex!important;gap:6px!important;align-items:center!important;
  flex:1 1 auto;justify-content:center;min-width:0!important;
}
body.exploterre-ptfr .terra-native-date-dialog .date-select-container select {
  box-sizing:border-box;min-width:0!important;width:auto!important;
  height:39px!important;min-height:39px!important;margin:0!important;
  padding:5px 7px!important;color:#243640!important;background:#fff!important;
  border:1px solid #aebdc4!important;border-radius:7px!important;box-shadow:none!important;
}
body.exploterre-ptfr .terra-native-date-dialog .date-select-month {flex:2 1 100px;max-width:160px;}
body.exploterre-ptfr .terra-native-date-dialog .date-select-year {flex:1 1 65px;max-width:90px;}
body.exploterre-ptfr .terra-native-date-dialog :is(.date-select-previous,.date-select-next) {
  display:inline-flex!important;align-items:center;justify-content:center;
  float:none!important;margin:0!important;flex:0 0 39px;
  min-width:39px;height:39px;min-height:39px;
  padding:0!important;text-decoration:none!important;color:#314b57!important;
  background:#fff!important;border-radius:7px;
}
/* PHPBoost peut utiliser table.date-picker, table.calendar ou un tableau sans classe. */
body.exploterre-ptfr .terra-native-date-dialog .calendar-block table {
  display:table!important;table-layout:fixed!important;border-collapse:separate!important;
  border-spacing:3px!important;width:100%!important;max-width:100%!important;
  min-width:0!important;margin:0!important;padding:0!important;
  overflow:visible!important;background:transparent!important;
}
body.exploterre-ptfr .terra-native-date-dialog .calendar-block :is(thead,tbody,tr) {display:revert!important;}
body.exploterre-ptfr .terra-native-date-dialog .calendar-block :is(th,td) {
  display:table-cell!important;width:auto!important;min-width:0!important;
  height:39px!important;padding:1px!important;text-align:center!important;
  vertical-align:middle!important;white-space:nowrap!important;
  word-break:normal!important;overflow-wrap:normal!important;
  font-size:.91rem!important;line-height:1.2!important;border:0!important;
  border-radius:7px!important;
}
body.exploterre-ptfr .terra-native-date-dialog .calendar-block th {
  background:#e5eaed!important;color:#405763!important;font-weight:750;
}
body.exploterre-ptfr .terra-native-date-dialog .calendar-block td {background:#f4f5f5!important;color:#243840!important;}
body.exploterre-ptfr .terra-native-date-dialog .calendar-block td:is(:hover,:focus-within) {background:#d5e4e9!important;}
body.exploterre-ptfr .terra-native-date-dialog .calendar-block :is(td,th) a {
  display:grid!important;place-items:center;width:100%!important;min-height:36px!important;
  min-width:0!important;margin:0!important;padding:2px!important;
  background:transparent!important;border:0!important;color:inherit!important;
  text-decoration:none!important;border-radius:7px!important;
}
body.exploterre-ptfr .terra-native-date-dialog :is(a,button,select):focus-visible {
  outline:2px solid #b57139!important;outline-offset:2px!important;
}
/* Formulaires seulement : ne modifie jamais l'accueil du calendrier. */
body.exploterre-ptfr #CalendarFormController .form-field-datetime,
body.exploterre-ptfr #CalendarFormController .form-field-date {
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  gap:10px!important;overflow:visible!important;
}
body.exploterre-ptfr #CalendarFormController .terra-calendar-form-panel,
body.exploterre-ptfr #CalendarFormController .terra-calendar-form-panel-body {overflow:visible!important;}
@media(max-width:380px) {
  body.exploterre-ptfr .terra-native-date-dialog .calendar-block {padding:9px!important;}
  body.exploterre-ptfr .terra-native-date-dialog .date-select-content {gap:3px!important;}
  body.exploterre-ptfr .terra-native-date-dialog :is(.date-select-previous,.date-select-next) {flex-basis:34px;min-width:34px;}
  body.exploterre-ptfr .terra-native-date-dialog .calendar-block :is(th,td) {height:35px!important;font-size:.82rem!important;}
}
/* Sur le calendrier PUBLIC, aucune règle du datepicker ne doit réduire sa grille. */
body.exploterre-ptfr #module-calendar .terra-calendar-container,
body.exploterre-ptfr #module-mini-calendar .terra-calendar-container {
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  overflow:visible!important;
}
body.exploterre-ptfr #module-calendar .terra-calendar-grid {
  display:table!important;width:100%!important;table-layout:fixed!important;
}
/* Le bandeau d'introduction doit être contrasté, pas clair sur fond clair. */
body.exploterre-ptfr .calendar-form-help {
  display:flex!important;align-items:center;gap:12px;
  margin:2px 0 18px!important;padding:15px 18px!important;
  background:#40545e!important;color:#fff!important;
  border:1px solid #2c404a!important;
  border-radius:11px!important;line-height:1.55!important;
  box-shadow:0 3px 10px #23343a20!important;
}
body.exploterre-ptfr .calendar-form-help::before {
  content:"i";display:grid;place-items:center;flex:0 0 25px;
  width:25px;height:25px;border-radius:50%;background:#e8cdb7;
  color:#3e2c22;font-size:.88rem;font-weight:800;
}
/* ================================================================
   Ajout d'événement : hiérarchie visuelle et autorisations sur la pleine largeur
   ================================================================ */
body.exploterre-ptfr #CalendarFormController .terra-calendar-form-panel {
  overflow:visible!important;margin:20px 0 26px!important;border:1px solid #c2aea0!important;border-radius:12px!important;background:#fff!important;
  box-shadow:none!important;
}
body.exploterre-ptfr #CalendarFormController .terra-calendar-form-panel > .calendar-form-section-title {
  margin:0!important;padding:15px clamp(16px,2vw,24px)!important;
  border-radius:11px 11px 0 0!important;background:var(--section-band)!important;color:var(--section-ink)!important;
}
body.exploterre-ptfr #CalendarFormController .terra-calendar-form-panel-body {
  display:grid;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;
  padding:clamp(16px,2vw,27px)!important;background:transparent!important;border-radius:0 0 11px 11px;
}
body.exploterre-ptfr #CalendarFormController .terra-calendar-form-panel-body > :is(.form-element,.form-element-textarea) {
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:10px 0 15px!important;
}

body.exploterre-ptfr #CalendarFormController .terra-calendar-form-panel-body :is(.calendar-gpx-section,.calendar-custom-fields-section) {
  background:#e9edf0!important;border:1px solid #c6d0d5!important;
  border-radius:10px!important;padding:clamp(13px,1.7vw,21px)!important;margin:10px 0!important;
}
body.exploterre-ptfr #CalendarFormController .calendar-form-options > summary {
  background:transparent!important;color:inherit!important;margin:0!important;
  border-radius:9px!important;padding:12px 16px!important;
}
body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations {
  grid-column:1/-1!important;width:100%!important;
  max-width:100%!important;min-width:0!important;
  margin:18px 0!important;padding:clamp(14px,2vw,22px)!important;
  border:1px solid #b8c5cc!important;border-radius:12px!important;
  background:#e8edf0!important;
}
/* The native auth-setter is a wrapping flex row. Its direct child owns the column width. */
#CalendarFormController_register_authorizations > .form-element-auth {
  display:block;flex:0 0 100%;align-self:stretch;box-sizing:border-box;
  width:100% !important;max-width:none !important;min-width:0;margin:0 !important;padding:0;
}
body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations :is(.form-field,.advanced-auth-container) {
  box-sizing:border-box;float:none;
  display:block!important;width:100%!important;max-width:100%!important;margin:0!important;min-width:0!important;
}
body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations .calendar-auth-checkbox-panel {
  display:block;box-sizing:border-box;width:100%!important;max-width:100%!important;
  margin:0!important;padding:clamp(12px,1.8vw,20px)!important;
  border:1px solid #c6d2d8!important;background:#fff!important;
}
body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations .calendar-auth-panel-header {
  gap:12px;padding-bottom:12px;margin-bottom:14px;

}
body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations .calendar-auth-sections {gap:14px!important;}
body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations .calendar-auth-section {
  width:100%;min-width:0;padding:clamp(10px,1.4vw,17px);
  background:#edf0f1;border-radius:9px;border:1px solid #d2d9dc;
}
body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations .calendar-auth-grid {gap:9px;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));}
body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations .calendar-auth-choice {background:#fff!important;padding:11px 12px;min-height:44px;border-color:#c4d0d6;}
body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations .calendar-auth-choice.is-selected {background:#eee3d7!important;border-color:#aa9582;}
@media(max-width:650px) {
  body.exploterre-ptfr #CalendarFormController .terra-calendar-form-panel-body {padding:13px!important;gap:12px!important;}
  body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations {margin:10px 0!important;padding:12px!important;}
  body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations .calendar-auth-panel-header {flex-direction:column;align-items:stretch;}
  body.exploterre-ptfr #CalendarFormController #CalendarFormController_register_authorizations .calendar-auth-toolbar {justify-content:flex-start;}
}



/* ========================================================================
   ExploTerre v6.27 : inscription native PHPBoost 5.2
   Le contrôleur produit un formulaire HTML sans modèle TPL à surcharger.
   On personnalise exclusivement #UserRegistrationController.
   Pas de mutation des BBCode dans les contenus du site.
   ======================================================================== */
body.exploterre-ptfr #UserRegistrationController {
  --reg-rock:#d9e1e2;
  --reg-ink:#25292d;
  --reg-sand:#e2d4c7;
  --reg-line:#b9c1c1;
  /* Le formulaire sert uniquement de conteneur technique : aucun bloc géant. */
  display:flow-root; box-sizing:border-box;
  width:100%!important; max-width:none!important; min-width:0;
  margin:0 0 24px!important; padding:0!important;
  border:0!important; border-radius:0!important;
  background:transparent!important; color:inherit;
  box-shadow:none!important;
}
body.exploterre-ptfr #UserRegistrationController,body.exploterre-ptfr #UserRegistrationController * {box-sizing:border-box;}
body.exploterre-ptfr #UserRegistrationController > fieldset:not(.fieldset-submit),
body.exploterre-ptfr #UserRegistrationController > .fieldset:not(.fieldset-submit) {
  display:block!important; width:100%!important; max-width:100%; min-width:0;
  margin:0 0 24px!important; padding:clamp(17px,2.1vw,28px)!important;
  border:1px solid #b6c3c6!important; border-radius:12px!important;
  background:#dce4e5!important; color:#26343a!important;
  box-shadow:none!important; clear:both;
}
body.exploterre-ptfr #UserRegistrationController > fieldset:nth-of-type(even):not(.fieldset-submit) {
  background:#e4d7c9!important; border-color:#c7b29f!important;
}
body.exploterre-ptfr #UserRegistrationController > fieldset:not(.fieldset-submit) > legend,
body.exploterre-ptfr #UserRegistrationController > .fieldset:not(.fieldset-submit) > .fieldset-legend {
  display:table!important; float:none!important; clear:both;
  width:auto!important; max-width:calc(100% - 12px); margin:0 0 16px!important;
  padding:10px 18px!important; border:1px solid #303c43!important;
  border-radius:8px!important; background:#50636a!important;
  color:#fff!important; font-size:1.12rem!important; font-weight:750!important;
  line-height:1.3; text-align:left!important;
}
body.exploterre-ptfr #UserRegistrationController .fieldset-content,
body.exploterre-ptfr #UserRegistrationController .fieldset-inset,
body.exploterre-ptfr #UserRegistrationController .form-element,
body.exploterre-ptfr #UserRegistrationController .form-field {min-width:0; max-width:100%;}
body.exploterre-ptfr #UserRegistrationController .fieldset-content,
body.exploterre-ptfr #UserRegistrationController .fieldset-inset {
  display:block!important; margin:0!important; padding:0!important;
  border:0!important; background:transparent!important;
}
body.exploterre-ptfr #UserRegistrationController .form-element {
  display:grid!important; grid-template-columns:minmax(190px,.36fr) minmax(0,.64fr);
  gap:12px 24px; align-items:center; width:100%; min-height:44px;
  margin:0!important; padding:14px 0!important;
  border:0!important; border-bottom:1px solid rgba(40,53,59,.19)!important;
  background:transparent!important; text-align:left;
}
body.exploterre-ptfr #UserRegistrationController .form-element:last-child {border-bottom:0!important;}
body.exploterre-ptfr #UserRegistrationController > fieldset:not(.fieldset-submit) > .fieldset-description,
body.exploterre-ptfr #UserRegistrationController > fieldset:not(.fieldset-submit) > .fieldset-content > .fieldset-description {
  color:#44545a!important;
}
body.exploterre-ptfr #UserRegistrationController > fieldset:not(.fieldset-submit) a:not(.button) {
  color:#31566a;
}
body.exploterre-ptfr #UserRegistrationController > fieldset:not(.fieldset-submit) a:not(.button):hover {
  color:#203c4d;
}

body.exploterre-ptfr #UserRegistrationController .form-element > label {
  display:block!important; float:none!important; clear:none!important;
  width:auto!important; max-width:100%; margin:0!important; padding:0!important;
  color:#26363d!important; font-weight:675!important;
  line-height:1.5!important; text-align:left!important;
}
body.exploterre-ptfr #UserRegistrationController .form-element > label .field-description,
body.exploterre-ptfr #UserRegistrationController .field-description {
  display:block; font-weight:400; color:#526067!important;
  font-size:.88rem; line-height:1.55;
}
body.exploterre-ptfr #UserRegistrationController .form-element > .form-field,
body.exploterre-ptfr #UserRegistrationController .form-field {
  display:block!important; float:none!important; width:100%!important;
  min-width:0!important; max-width:100%!important; margin:0!important;
  padding:0!important; text-align:left!important;
}
body.exploterre-ptfr #UserRegistrationController :is(input[type="text"],input[type="email"],input[type="password"],input[type="search"],select,textarea) {
  display:block; width:100%; max-width:100%; min-height:46px;
  margin:0!important; padding:11px 14px!important;
  border:1px solid #8f8175!important; border-radius:8px!important;
  background:#fff!important; color:#252b2e!important;
  box-shadow:none!important; font-size:.97rem; line-height:1.45;
}
body.exploterre-ptfr #UserRegistrationController :is(input,select,textarea):focus-visible {
  outline:3px solid #236d88!important; outline-offset:1px!important;
}
body.exploterre-ptfr #UserRegistrationController input[type="checkbox"],
body.exploterre-ptfr #UserRegistrationController input[type="radio"] {
  width:18px!important; height:18px!important; margin:0 9px 0 0!important;
  accent-color:#6a4e3b; vertical-align:middle;
}
body.exploterre-ptfr #UserRegistrationController .form-field label {
  color:#26363d!important; line-height:1.5; overflow-wrap:anywhere;
}
/* Les champs de texte libre ne doivent jamais être coincés dans la colonne libellés. */
body.exploterre-ptfr #UserRegistrationController .form-element:has(.user-agreement),
body.exploterre-ptfr #UserRegistrationController .form-element:has(.message-helper):not(:has(input)),
body.exploterre-ptfr #UserRegistrationController .form-element:has(.formatter-content) {
  grid-template-columns:minmax(0,1fr)!important; gap:0!important;
}
body.exploterre-ptfr #UserRegistrationController .form-element:has(.user-agreement) > :is(label,.form-field) {
  width:100%!important; max-width:100%!important; min-width:0;
}
/* Règlement et consentement : fond roche, texte sur une surface blanche. */
body.exploterre-ptfr #UserRegistrationController fieldset:has(.user-agreement) {
  background:var(--stone)!important; border-color:var(--panel-line)!important;
  color:var(--ink)!important;
}
body.exploterre-ptfr #UserRegistrationController fieldset:has(.user-agreement) > legend {
  background:var(--module-band)!important; border-color:var(--panel-line)!important; color:var(--brand)!important;
}
body.exploterre-ptfr #UserRegistrationController fieldset:has(.user-agreement) :is(.fieldset-description,.form-element > label) {
  color:#333b3e!important;
}
body.exploterre-ptfr #UserRegistrationController #id-message-helper.user-agreement {
  display:block!important; position:relative!important; float:none!important; clear:both!important;
  width:100%!important; max-width:100%!important; min-height:0!important;
  height:auto!important; margin:12px 0 18px!important;
  padding:clamp(16px,2vw,24px)!important;
  border:1px solid var(--panel-line)!important; border-radius:10px!important;
  background:var(--surface)!important; color:var(--ink)!important;
  text-align:left!important; line-height:1.65!important; white-space:normal!important;
  overflow:visible!important; overflow-wrap:anywhere;
}
body.exploterre-ptfr #UserRegistrationController #id-message-helper.user-agreement a {
  color:#31566a!important; text-decoration:underline;
}
body.exploterre-ptfr #UserRegistrationController #id-message-helper.user-agreement :is(.message-helper,.notice,.warning,.info,.success,.error) a {
  color:#204f70!important;
}
body.exploterre-ptfr #UserRegistrationController #id-message-helper.user-agreement::before {
  display:none!important; content:none!important;
}
body.exploterre-ptfr #UserRegistrationController .user-agreement > :is(.message-helper,.notice,.success,.warning,.error,.info),
body.exploterre-ptfr #UserRegistrationController .user-agreement > p > :is(.message-helper,.notice,.success,.warning,.error,.info) {
  display:block!important; float:none!important; clear:both!important;
  width:100%!important; max-width:100%!important; min-height:0;
  margin:0 0 14px!important; box-sizing:border-box;
  white-space:normal!important; overflow-wrap:anywhere;
}
body.exploterre-ptfr #UserRegistrationController .user-agreement > :is(.message-helper,.notice,.success,.warning,.error,.info):last-child {margin-bottom:0!important;}
body.exploterre-ptfr #UserRegistrationController .user-agreement p,
body.exploterre-ptfr #UserRegistrationController .user-agreement li {
  color:inherit; max-width:100%; line-height:1.65; overflow-wrap:anywhere;
}
body.exploterre-ptfr #UserRegistrationController .user-agreement :is(.message-helper,.notice,.success,.warning,.error,.info) {
  color:#173346!important; text-align:left!important;
  border:1px solid #769cad!important; border-radius:8px!important;
  background:#dbe9f2!important; padding:13px 16px 13px 48px!important;
}
body.exploterre-ptfr #UserRegistrationController .user-agreement :is(.message-helper,.notice,.success,.warning,.error,.info).warning {
  border-color:#c48e56!important; background:#f5dfc9!important; color:#653a17!important;
}
body.exploterre-ptfr #UserRegistrationController .user-agreement :is(.message-helper,.notice,.success,.warning,.error,.info).success {
  border-color:#739a7c!important; background:#e0eddf!important; color:#234b31!important;
}
/* Le consentement est un bloc distinct, pas une case perdue à droite. */
body.exploterre-ptfr #UserRegistrationController fieldset:has(.user-agreement) .form-element:has(input[name$="agree"]),
body.exploterre-ptfr #UserRegistrationController fieldset:has(.user-agreement) .form-element:has(input[id$="agree"]) {
  grid-template-columns:minmax(0,1fr)!important;
  margin-top:18px!important; padding:14px 16px!important;
  border:1px solid var(--panel-line)!important; border-radius:8px!important;
  background:var(--surface)!important; color:var(--ink)!important;
}
body.exploterre-ptfr #UserRegistrationController fieldset:has(.user-agreement) .form-element:has(input[id$="agree"]) > label,
body.exploterre-ptfr #UserRegistrationController fieldset:has(.user-agreement) .form-element:has(input[name$="agree"]) > label {
  color:#282b2b!important; font-weight:700!important;
}
body.exploterre-ptfr #UserRegistrationController fieldset:has(.user-agreement) .form-element:has(input[id$="agree"]) .form-field label,
body.exploterre-ptfr #UserRegistrationController fieldset:has(.user-agreement) .form-element:has(input[name$="agree"]) .form-field label {
  color:#272d2f!important;
}
/* Boutons de validation d'inscription. */
body.exploterre-ptfr #UserRegistrationController > fieldset.fieldset-submit {
  display:flex!important; flex-wrap:wrap; align-items:center; justify-content:flex-end;
  gap:12px; width:100%; margin:0!important; padding:18px 0 0!important;
  border:0!important; background:transparent!important;
}
body.exploterre-ptfr #UserRegistrationController > fieldset.fieldset-submit :is(button,input[type="submit"]) {
  min-width:175px; min-height:47px; padding:10px 18px!important;
  border:1px solid #24573d!important; border-radius:8px!important;
  background:#246342!important; color:#fff!important;
  font-weight:750; font-size:1rem;
}
body.exploterre-ptfr #UserRegistrationController > fieldset.fieldset-submit :is(button[type="reset"],input[type="reset"]) {
  border-color:#695345!important; background:#695345!important;
}
@media (max-width:780px) {
  body.exploterre-ptfr #UserRegistrationController {padding:0!important;margin:0 0 20px!important;}
  body.exploterre-ptfr #UserRegistrationController .form-element {
    grid-template-columns:minmax(0,1fr)!important; gap:8px!important;
    padding:14px 0!important;
  }
  body.exploterre-ptfr #UserRegistrationController > fieldset:not(.fieldset-submit) {padding:16px!important;}
  body.exploterre-ptfr #UserRegistrationController > fieldset.fieldset-submit {justify-content:stretch;}
  body.exploterre-ptfr #UserRegistrationController > fieldset.fieldset-submit :is(button,input[type="submit"],input[type="reset"]) {flex:1 1 100%;}
}


/* v6.34 : administration des catégories — UNE surface et des lignes compactes.
   Pas de cartes/alternance de couleurs, pas de fausse barre verticale vide. */
body.exploterre-ptfr .site-page-content #categories {
  /* Le fieldset parent fournit déjà le fond gris, la bordure et les marges. */
  box-sizing:border-box; width:100%; max-width:100%; min-width:0;
  display:block; padding:0!important; margin:0!important;
  border:0!important; border-radius:0!important; box-shadow:none!important;
  background:transparent!important; color:#253139!important;
}
body.exploterre-ptfr .site-page-content #categories li.sortable-element {
  box-sizing:border-box; display:flex; align-items:center; flex-wrap:wrap;
  width:100%; min-height:38px; gap:3px 10px;
  margin:0!important; padding:6px 4px!important;
  background:transparent!important; color:#253139!important;
  border:0!important;
  border-radius:0!important; box-shadow:none!important;
}
body.exploterre-ptfr .site-page-content #categories li.sortable-element :is(.sortable-title,.calendar-category-id) {
  color:#253139!important; line-height:1.4; min-width:0;
}
body.exploterre-ptfr .site-page-content #categories li.sortable-element :is(.sortable-actions,.sortable-selector) {
  display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap;
}
body.exploterre-ptfr .site-page-content #categories li.sortable-element :is(a,button,.fa) {color:#46565f!important;}
body.exploterre-ptfr .site-page-content #categories li.sortable-element :is(a,button):hover {color:#1f313c!important;}
body.exploterre-ptfr .site-page-content #categories li.sortable-element > .sortable-block {
  width:100%; flex-basis:100%; min-height:0!important;
  margin:0!important; padding:0 0 0 12px!important;
  background:transparent!important; border:0!important;
}
body.exploterre-ptfr .site-page-content #categories li.sortable-element > .sortable-block:empty {display:none!important;}
@media(max-width:680px) {
 body.exploterre-ptfr .site-page-content #categories {padding:0!important;}
 body.exploterre-ptfr .site-page-content #categories li.sortable-element {padding:8px 3px!important;}
}

/* Les alertes des écrans de gestion sont des paragraphes pleine largeur :
   surtout pas des inline-flex avec un titre dans une colonne de 80px.
   Ne modifie pas les encadrés BBCode présents dans les contenus publics. */
body.exploterre-ptfr .site-page-content #adhesion-module
  :is(.adhesion-section-content,.adhesion-subsection-content,.adhesion-accounting-form-column,
      .adhesion-payment-instructions) > .message-helper,
body.exploterre-ptfr .site-page-content #adhesion-module .adhesion-config-warning {
  display:block!important; width:100%!important; max-width:100%!important;
  float:none!important; clear:both!important; box-sizing:border-box!important;
  min-width:0!important; min-height:0!important; height:auto!important;
  margin:12px 0!important; padding:15px 18px 15px 55px!important;
  position:relative!important; text-align:left!important;
  white-space:normal!important; overflow-wrap:break-word!important;
  word-break:normal!important; line-height:1.6!important;
}
body.exploterre-ptfr .site-page-content #adhesion-module
  :is(.adhesion-section-content,.adhesion-subsection-content,.adhesion-accounting-form-column,
      .adhesion-payment-instructions) > .message-helper::before,
body.exploterre-ptfr .site-page-content #adhesion-module .adhesion-config-warning::before {
  position:absolute!important; left:14px!important; top:17px!important;
  transform:none!important; float:none!important; margin:0!important;
  display:grid!important; place-items:center!important;
  width:27px!important; height:27px!important;
}
body.exploterre-ptfr .site-page-content #adhesion-module
  :is(.adhesion-section-content,.adhesion-subsection-content,.adhesion-accounting-form-column) > .message-helper > strong,
body.exploterre-ptfr .site-page-content #adhesion-module .adhesion-config-warning > strong {
  display:inline!important; width:auto!important; max-width:none!important;
  min-width:0!important; float:none!important;
  white-space:normal!important; overflow-wrap:normal!important;
}

/* v6.35 : la liste des événements doit prendre toute la largeur normale de page.
   Les filtres PHPBoost sont un seul panneau gris roche contrasté. */
body.exploterre-ptfr .site-page-content #module-calendar-events-list {
  box-sizing:border-box; display:block; width:100%!important; max-width:none!important;
  min-width:0!important; margin-inline:0!important;
}
body.exploterre-ptfr .site-page-content #module-calendar-events-list > *,
body.exploterre-ptfr .site-page-content #module-calendar-events-list form[id^="filters_form_"] {
  box-sizing:border-box; width:100%!important; max-width:none!important;
  min-width:0!important; margin-inline:0!important;
}
body.exploterre-ptfr .site-page-content #module-calendar-events-list form[id^="filters_form_"] {
  background:var(--stone)!important; border:1px solid var(--panel-line)!important; color:var(--ink)!important;
}
body.exploterre-ptfr .site-page-content #module-calendar-events-list form[id^="filters_form_"] :is(fieldset,.fieldset,.fieldset-content,.fieldset-inset) {
  background:transparent!important; border:0!important; box-shadow:none!important;
  max-width:100%!important;
}
body.exploterre-ptfr .site-page-content #module-calendar-events-list .calendar-ag-export-panel {
  background:#d3d8dc!important; border:1px solid #a5afb6!important;
}
