/* ExploTerre Terra — palette et composants partagés */
body.exploterre-ptfr {
  --surface-edge: var(--panel-line);
  --section-fill: var(--heading-fill);
  --nested-fill: var(--soft);
  --accent-teal: var(--brand);
  --accent-teal-hover: var(--brand-hover);
  --terra-brown: var(--brand);
  --terra-accent: var(--info);
  --terra-accent-hover: var(--info-hover);
  --terra-success: var(--positive);
  --terra-danger: var(--danger);
  --terra-info: var(--info);
}
.exploterre-ptfr .site-header { background: var(--surface); }
.exploterre-ptfr .site-brand { color: var(--ink); }
.exploterre-ptfr .site-header :is(.site-nav > a, .site-tools > summary) > i { color: var(--info); }
.exploterre-ptfr .site-header .site-nav a[aria-current] > i { color: inherit; }

.exploterre-ptfr :is(.site-context, .terra-page-heading) {
  min-inline-size: 0;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.exploterre-ptfr .terra-panel {
  min-inline-size: 0;
  border: 1px solid var(--terra-panel-line);
  border-radius: var(--radius);
  background: var(--terra-panel-rock);
  color: var(--terra-panel-text);
}
.exploterre-ptfr .terra-page-heading,
.exploterre-ptfr .site-page-content > :is(section, article) > header.terra-page-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1rem;
  padding: var(--panel-padding);
  margin: 0 0 var(--panel-gap);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--heading-fill);
}
.exploterre-ptfr .terra-page-heading :is(h1,h2) {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  color: var(--ink);
}
.exploterre-ptfr .terra-page-heading h1 i { color: var(--brand); }

.exploterre-ptfr .site-page-content > :is(section,article) > header:not(.ptfr-user-hero):has(> :is(h1,h2)):not(.terra-page-heading) {
  background: var(--heading-fill);
  border-radius: var(--radius);
}
.exploterre-ptfr .site-page-content > :is(section,article) > header:not(.ptfr-user-hero) > :is(h1,h2),
.exploterre-ptfr .site-page-content > :is(section,article) > header:not(.ptfr-user-hero) > :is(h1,h2) a {
  color: var(--ink);
}
.exploterre-ptfr .site-page-content :is(
  .article-download,.article-faq,.article-web,.article-shoutbox,
  .subcat-element,.base2020-search-results-panel,.ptfr-moderation-tracking-item,
  #module-stats .elements-container > .block
) {
  border-color: var(--panel-line);
  border-radius: var(--radius);
  background: var(--surface);
}
.exploterre-ptfr .site-page-content :is(.faq-answer-container,.base2020-search-results-header) {
  border-color: var(--line);
  border-radius: var(--control-radius);
  background: var(--soft);
}
.exploterre-ptfr .site-page-content > :is(
  #module-pages,#module-faq,#module-download,#module-web,#module-search,#module-online,
  #module-stats,#module-sitemap,#module-poll,#module-shoutbox,#module-bugtracker
) > .content:not(.elements-container, :has(> :is(.elements-container, article))) {
  padding: var(--panel-padding);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--surface);
}
.exploterre-ptfr .site-page-content :is(.forum-table,.table,.table-fixed) :is(thead th,tfoot th) {
  background: var(--heading-fill);
  color: var(--ink);
}

/* Les modules peuvent fixer leurs dimensions de mise en page. Les couleurs
   de commande restent communes, même dans les anciens gabarits PHPBoost. */
.exploterre-ptfr {
  --control-bg: var(--sand);
  --control-hover: var(--sand-hover);
  --control-ink: var(--on-sand);
  --control-edge: var(--panel-line);
}
.exploterre-ptfr :where(
  button[type="submit"], input[type="submit"], button.submit, .button-success, .cavites-save-links,
  .calendar-notify-confirmation-submit, .calendar-member-confirm-accept, .adhesion-transfer-done-button,
  .forum-action-markread, a.terra-calendar-primary-action:has(> .fa-check), a:has(> :is(.fa-save,.fa-floppy-disk))
) {
  --control-bg: var(--positive);
  --control-hover: var(--positive-hover);
  --control-ink: white;
  --control-edge: transparent;
}
.exploterre-ptfr :where(
  .button-secondary, .form-element-preview button, .basic-button:has(.fa-search),
  .bugtracker-filter button, form[method="get" i] button, button:has(> .fa-print), button:has(.fa-filter), button:has(.fa-search)
) {
  --control-bg: var(--sand);
  --control-hover: var(--sand-hover);
  --control-ink: var(--on-sand);
}
.exploterre-ptfr :where(
  .button-edit,.button-warning,.button:has(> .fa-cog),.terra-action-edit,.terra-action-warning,.ptfr-message-action-warning,
  .ptfr-message-action-report,.ptfr-message-action-cut,.ptfr-message-action-lock,.location-update-button,
  .adhesion-action-edit,a.fa-edit,a.fa-pen-to-square,.terra-calendar-hero-action-edit,.terra-profile-action-main,
  :is(a,button):has(> :is(.fa-edit,.fa-pencil,.fa-pen,.fa-pen-to-square,.fa-pencil-square-o,.fa-gears,.fa-cogs))
) {
  --control-bg: var(--warning);
  --control-hover: var(--warning-hover);
  --control-ink: white;
  --control-edge: transparent;
}
.exploterre-ptfr :where(
  .connect-disconnect > a,.reset,a.fa-delete,a.fa-trash,#cavites-reset,[type="reset"],.button-danger,.terra-action-delete,.action-icon-danger,.ptfr-pm-reset,
  .terra-calendar-hero-action-delete,.adhesion-danger-button,.location-delete-button,.location-filter-reset,
  .adhesion-danger-actions button, .adhesion-purge-box button, .ptfr-message-action-delete,[data-confirmation="delete-element"],.crsorties-filter-fields .alt,
  :is(a,button):has(> :is(.fa-trash,.fa-trash-alt,.fa-trash-can,.fa-eraser,.fa-undo))
) {
  --control-bg: var(--danger);
  --control-hover: var(--danger-hover);
  --control-ink: white;
  --control-edge: transparent;
}
/* Habillage des actions à cadenas sur les fiches d’événements. */
.exploterre-ptfr .terra-calendar-detail-page :is(a,button):has(> :is(.fa-lock,.fa-unlock,.fa-unlock-alt)):not(.terra-calendar-gpx-access-note) {
  --control-bg:var(--rock);
  --control-hover:var(--rock-hover);
  --control-ink:white;
  --control-edge:transparent;
  display:inline-flex; align-items:center; justify-content:center; gap:.45rem;
  min-block-size:44px; min-inline-size:44px; padding:.5rem .65rem;
}
@layer terra-controls {
  .exploterre-ptfr :is(
    button, input:is([type="submit"],[type="reset"],[type="button"]), summary:is(.action-icon,.button,.site-account-trigger,.connect-group-toggle), [role="button"]:not(.bbcode-hover,[contenteditable="true"]), .calendar-form-options > summary,
    a:is([class*="-button"],[class*="-btn"],.fa,.fas,.far,.terra-home-btn,.crsorties-activity-button,.button,.basic-button,.small-button,.terra-action,.action-icon,.ptfr-message-action,.ptfr-comment-action,
      .terra-user-hero-action,.terra-profile-action,.pm-action-button,.terra-calendar-hero-action,.terra-calendar-nav,
      .terra-calendar-card-open,.terra-calendar-day-dialog-action,.site-back-top,.infos-options,.terra-icon-control),
    .actions > a:not(.pseudoforum), .calendar-events-list-actions a, .bugtracker-actions a,
    .terra-calendar-detail-page a:has(> :is(.fa-lock,.fa-unlock,.fa-unlock-alt)):not(.terra-calendar-gpx-access-note),
    :is(.adhesion-document-links,.adhesion-form-nav,.adhesion-tabs,.bugtracker-nav) a, .adhesion-document-admin-tab, .site-account > a, .terra-home-btn, #module-connect :is(.connect-group-toggle,.connect-element > a,.connect-guest-button)
  ):not([hidden],:disabled,[aria-disabled="true"],.disabled,.bbcode-hover,.leaflet-container *, .terra-bbcode *, .base-menu-panel button[role="menuitemcheckbox"], [role="tab"],[role="switch"]) {
    background-color: var(--control-bg) !important;
    &:is(:hover,:focus-visible) {
      background-color: var(--control-hover) !important;
      filter: none !important;
      transform: none !important;
    }
    background-image: none !important;
    color: var(--control-ink) !important;
    border-color: var(--control-edge) !important;
    border-radius: var(--control-radius) !important;
    text-decoration: none;
  }
  .exploterre-ptfr :is(button:disabled,input:is([type="submit"],[type="button"],[type="reset"]):disabled,
    .button[aria-disabled="true"],.basic-button[aria-disabled="true"]):not(.terra-bbcode *, .calendar-block *) {
    color: #55514c !important;
    background: #e6e4e1 !important;
    border-color: transparent !important;
    opacity: 1;
    cursor: not-allowed;
  }
  .exploterre-ptfr :is(.button,.basic-button,.small-button,.terra-icon-control,.terra-action,.action-icon,
    .ptfr-message-action,.ptfr-comment-action,.terra-calendar-hero-action,.bugtracker-nav a,.bugtracker-actions a,button)
    > :is(i,svg) { color: inherit !important; }
}
body.exploterre-ptfr :is(a.fa,a.fas,a.far,.terra-icon-control,.action-icon,.terra-action,.ptfr-comment-action,.ptfr-message-action,
  .terra-calendar-hero-action,.calendar-events-list-actions a,.bugtracker-actions a,.actions > a:not(.pseudoforum)):not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 2.1rem;
  min-height: 2.1rem;
  padding: .35rem .55rem;
  line-height: 1.25;
  vertical-align: middle;
  font-size: .94rem;
}
body.exploterre-ptfr :is(.button,.basic-button,.small-button,input[type="submit"],input[type="reset"]) {
  min-height: 36px;
  padding: .4rem .75rem;
  font-size: .94rem;
  line-height: 1.35;
}

/* Modules métier et blocs secondaires. */
body.exploterre-ptfr :is(#cavites-module,#location-module) > :is(
  .cavites-hero,.location-hero
) {
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--heading-fill);
  color: var(--ink);
  padding: var(--panel-padding);
}
body.exploterre-ptfr :is(#cavites-module,#location-module) > :is(
  .cavites-hero,.location-hero
) :is(h1,h2,.cavites-back,.location-back) {
  color: var(--ink);
}
body.exploterre-ptfr :is(#cavites-module,#location-module) :is(
  .cavites-card,.location-card,.location-panel,.location-block
) {
  border-color: var(--panel-line);
  border-radius: var(--radius);
  background: #fff;
}
body.exploterre-ptfr :is(#location-module,#cavites-module,#module-calendar,#module-search) :is(.location-hero,.cavites-hero,.terra-calendar-hero,.terra-search-hero) p {
  color: var(--muted);
}
body.exploterre-ptfr #location-module :is(.location-block,.location-item-card,.location-category) :is(h2,h3) {
  color: var(--ink);
}
body.exploterre-ptfr :is(#location-module,#cavites-module) :is(.location-block,.cavites-card) > :is(.location-block,.cavites-card) {
  background: var(--terra-panel-inset);
}
body.exploterre-ptfr #module-media .media-gallery:has(> .media-tile) {
  padding: var(--panel-padding);
  border-radius: var(--radius);
  background: var(--terra-inset-surface);
}
/* Forum — sujet ouvert, messages indépendants et choix par activité. */
body.exploterre-ptfr #module-forum .forum-topic-page {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.exploterre-ptfr #module-forum .forum-topic-header { display: block; }
body.exploterre-ptfr #module-forum .forum-topic-toolbar {
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
}
body.exploterre-ptfr #module-forum .forum-topic-toolbar h1 { text-align: start; }
body.exploterre-ptfr #module-forum .forum-topic-header .pagination-forum-forum { margin: .5rem 0 0; }
body.exploterre-ptfr #module-forum .forum-message.msg-position {
  margin: 0 0 var(--panel-gap);
  padding: 0;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--surface);
}
body.exploterre-ptfr #module-forum .forum-message :is(.msg-container,.msg-container2,.msg-contents-container,.msg-contents-container2) {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.exploterre-ptfr #module-forum .forum-message .ptfr-message-header {
  padding: .5rem var(--panel-padding);
  border: 0;

  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--heading-fill);
}
body.exploterre-ptfr #module-forum .forum-message .ptfr-message-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
body.exploterre-ptfr #module-forum .forum-message .msg-contents {
  padding: var(--panel-padding);
  background: transparent;
}
body.exploterre-ptfr #module-forum .forum-message .ptfr-message-footer {
  padding: .55rem var(--panel-padding);
  border: 0;

  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--soft);
}
body.exploterre-ptfr #module-forum .forum-message-edit-action { min-block-size: 36px; }
body.exploterre-ptfr #module-forum .forum-post-form,
body.exploterre-ptfr #module-forum .forum-topic-page > .content {
  margin-block: var(--panel-gap);
  padding: var(--panel-padding);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--surface);
}
/* CR sorties : panneau terre moyen, séparé visuellement du fond de page clair.
   Boutons clairs sur fond terre ; filtre actif anthracite. */
body.exploterre-ptfr #module-forum .crsorties-filters {
  margin: clamp(12px, 1.4vw, 20px) 0 var(--panel-gap);
  padding: clamp(17px, 2.2vw, 30px);
  border: 1px solid #b89e84;
  border-radius: var(--radius);
  background: #d3bda6 !important;
  color: #302c28;
}
body.exploterre-ptfr #module-forum .crsorties-filter-title {
  color: #282726 !important;
  margin-bottom: 1rem;
  font-weight: 750;
}
body.exploterre-ptfr #module-forum .crsorties-activity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-block-size: 42px;
  border: 1px solid #bca58d;
  border-radius: var(--control-radius);
  background: #fffaf4 !important;
  color: #352c25 !important;
  font-weight: 650;
}
body.exploterre-ptfr #module-forum .crsorties-activity-button > i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--crsorties-color, var(--info)) 15%, var(--surface));
  color: var(--ink);
}
/* L'icône ne doit jamais disparaître dans le hover du filtre actif.
   Fond ivoire + pictogramme foncé, indépendamment de la couleur de l'activité. */
body.exploterre-ptfr #module-forum .crsorties-activity-button.is-selected > i,
body.exploterre-ptfr #module-forum .crsorties-activity-button.is-selected:is(:hover,:focus-visible) > i {
  background: #f8efe3 !important;
  color: #312922 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
/* Pictogramme d'activité DANS le lien du titre : taille de texte et non de carte.
   L'icône ne crée plus de ligne ni de colonne distincte. */
#article-forum-forum .crsorties-topic-row .forum-title-row > a > .crsorties-topic-inline-icon {
  display: inline-flex !important;
  position: static !important;
  float: none !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: none;
  width: 23px;
  height: 23px;
  margin: 0 7px 0 0;
  padding: 0;
  vertical-align: -.28em;
  border: 1px solid color-mix(in srgb, var(--crsorties-color, #786958) 38%, #c8baaa);
  border-radius: 6px;
  background: color-mix(in srgb, var(--crsorties-color, #786958) 17%, white) !important;
  color: #35322f !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 13px;
  line-height: 1;
}
#article-forum-forum .crsorties-topic-row .forum-title-row > a > .crsorties-topic-inline-icon > i {
  display: inline-block !important;
  color: inherit !important;
  opacity: 1 !important;
  font-size: inherit !important;
  line-height: 1 !important;
}
body.exploterre-ptfr #module-forum .crsorties-activity-button:not(.is-selected):is(:hover,:focus-visible) {
  border-color: #94795f;
  background: #eee3d5 !important;
  color: #382b21 !important;
}
body.exploterre-ptfr #module-forum .crsorties-activity-button.is-selected {
  border-color: #4c5358;
  background: #4c5358 !important;
  color: #fff !important;
}
body.exploterre-ptfr #module-forum .crsorties-activity-button.is-selected:is(:hover,:focus-visible) {
  border-color: #3c4449;
  background: #3c4449 !important;
  color: #fff !important;
}
body.exploterre-ptfr #module-forum .crsorties-activity-button.is-selected::after {
  background: #fff;
  color: var(--info);
}
body.exploterre-ptfr #module-forum .crsorties-filter-fields .basic-button { min-block-size: 42px; }
body.exploterre-ptfr #module-forum .crsorties-filter-fields :is(input[type="search"], select) {
  background: #fff !important;
  color: #292b2e !important;
  border: 1px solid #a78e75 !important;
}

/* Calendrier — la grille et chaque événement sont les surfaces principales. */
body.exploterre-ptfr #module-calendar .terra-calendar-hero {
  display: flex;
  align-items: center;
  gap: .65rem 1rem;
  padding: var(--panel-padding);
  margin: 0 0 var(--panel-gap);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--heading-fill);
}
body.exploterre-ptfr #module-calendar .terra-calendar-hero :is(h1,h2,p) { color: var(--ink); }
body.exploterre-ptfr #module-calendar .terra-calendar-hero-icon { display: inline-grid; place-items: center; color: var(--brand); }
body.exploterre-ptfr #module-calendar :is(.terra-calendar-main-content,.terra-calendar-events-shell,.terra-calendar-event-detail,.terra-calendar-event-detail > .terra-calendar-event-content),
body.exploterre-ptfr #module-calendar-events .fond-evenements {
  padding: 0;
  border: 0;
  background: transparent;
}
body.exploterre-ptfr #module-calendar .terra-calendar-shell {
  padding: var(--panel-padding);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--surface);
}
body.exploterre-ptfr #module-calendar .terra-calendar-event-detail > .terra-calendar-event-content {
  display: grid;
  gap: var(--panel-gap);
  margin: 0;
}
body.exploterre-ptfr #module-calendar .terra-calendar-detail-section {
  margin: 0;
  min-width: 0;
  border-color: var(--panel-line);
  border-radius: var(--radius);
}
body.exploterre-ptfr #module-calendar :is(.terra-calendar-detail-section-heading,.terra-calendar-map-heading),
body.exploterre-ptfr #module-calendar-events .terra-calendar-event-header {
  padding: .6rem 1rem;
  border-color: var(--line);
  background: var(--heading-fill);
  color: var(--ink);
}
body.exploterre-ptfr #module-calendar .terra-calendar-detail-section-heading > :is(h2,span) { margin: 0; }
body.exploterre-ptfr #module-calendar .terra-calendar-detail-section-heading > span {
  min-height: 2rem;
  width: 2rem;
  color: var(--info);
  border: 0;
  background: transparent;
}
body.exploterre-ptfr #module-calendar :is(.terra-calendar-meta-item,.terra-calendar-custom-field) {
  background: var(--soft);
  border-radius: var(--control-radius);
}
body.exploterre-ptfr #module-calendar .terra-calendar-meta-item { align-items: center; }
body.exploterre-ptfr #module-calendar .terra-calendar-meta-item > div { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
body.exploterre-ptfr #module-calendar .terra-calendar-meta-icon {
  border: 0;
  background: var(--info-bg);
  color: var(--info);
}
body.exploterre-ptfr #module-calendar-events {
  gap: var(--panel-gap);
  margin-block: var(--panel-gap);
  padding: 0;
  border: 0;
  background: transparent;
}
body.exploterre-ptfr #module-calendar-events :is(.fond-evenements) {
  display: grid;
  gap: var(--panel-gap);
}
body.exploterre-ptfr #module-calendar-events .terra-calendar-event-card {
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
}
body.exploterre-ptfr #module-calendar-events .event-display-dates {
  padding: .5rem .75rem;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--soft);
}
body.exploterre-ptfr #module-calendar .terra-calendar-grid {
  min-width: 0;
  table-layout: fixed;
  border-spacing: 0;
}
body.exploterre-ptfr #module-calendar .terra-calendar-grid thead th { background: var(--heading-fill); }

body.exploterre-ptfr #module-calendar .terra-calendar-grid td .terra-calendar-day-link {
  width: 100%;
  min-width: 0;
  max-width: 48px;
}
body.exploterre-ptfr #module-calendar .terra-calendar-grid td.terra-calendar-event-day .terra-calendar-day-link { background: var(--info-bg); }
body.exploterre-ptfr :is(#module-calendar,#module-mini-calendar) .terra-calendar-grid td.calendar-today .terra-calendar-day-link {
  border: 2px solid var(--brand);
  background: var(--tint);
  color: var(--brand) !important;
}
body.exploterre-ptfr :is(#module-calendar,#module-mini-calendar) .terra-calendar-grid td .terra-calendar-day-link:is(:hover,:focus-visible) {
  background: var(--info);
  color: #fff !important;
}
body.exploterre-ptfr .terra-calendar-day-dots i { background: currentColor; }
body.exploterre-ptfr .terra-calendar-day-dialog-header { background: var(--heading-fill); }
body.exploterre-ptfr .terra-calendar-day-dialog-body .terra-calendar-popup-event h3 { margin-block: 0 .4rem; }
body.exploterre-ptfr .terra-calendar-popup-event .terra-calendar-day-dialog-action { min-height: 38px; }

@media (max-width: 600px) {
  body.exploterre-ptfr #module-calendar .terra-calendar-hero-icon { display: none; }
  body.exploterre-ptfr #module-calendar :is(.terra-calendar-week-heading,.terra-calendar-grid .calendar-week) { display: none; }
  body.exploterre-ptfr #module-calendar .terra-calendar-grid td { padding: 3px 2px; }
  body.exploterre-ptfr #module-calendar .terra-calendar-grid td .terra-calendar-day-link { padding-inline: 1px; }
}
@media print {
  body.exploterre-ptfr { border: 0; background: #fff; }
  body.exploterre-ptfr .terra-action { display: none; }
}

/* Listes d’événements, formulaires et modules communs. */
body.exploterre-ptfr #module-calendar-events .terra-calendar-event-category {
  display: inline-block;
  padding-inline-start: .5rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--calendar-category-color, var(--positive)) 12%, var(--surface));
  border-radius: var(--control-radius);
}
body.exploterre-ptfr .terra-calendar-day-dots { align-items: center; gap: 2px; }
body.exploterre-ptfr .terra-calendar-day-dots i { width: 4px; height: 4px; }
body.exploterre-ptfr .terra-calendar-container-mini .terra-calendar-day-link { flex-direction: column; }
body.exploterre-ptfr :is(.calendar-ag-export-panel,.calendar-notify-confirmation-card,.calendar-notify-confirmation-form-card) {
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--surface);
}
body.exploterre-ptfr .calendar-ag-export-panel,
body.exploterre-ptfr .base2020-calendar-events-table { margin-block-end: var(--panel-gap); }
body.exploterre-ptfr .base2020-calendar-events-table {
  width: 100%;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--surface);
}
body.exploterre-ptfr .base2020-calendar-events-table caption {
  padding: .75rem var(--panel-padding);
  background: var(--heading-fill);
  color: var(--ink);
  font-weight: 700;
  text-align: start;
}
body.exploterre-ptfr .base2020-calendar-events-table :is(th,td) {
  height: auto;
  padding: .55rem .7rem;
  overflow-wrap: anywhere;
}
body.exploterre-ptfr .base2020-calendar-events-table :is(.calendar-events-list-actions,.calendar-events-list-title-wrap) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
body.exploterre-ptfr .calendar-events-list-title-icon { color: var(--info); }
body.exploterre-ptfr .calendar-events-list-dates { display: grid; gap: .35rem; }
body.exploterre-ptfr .calendar-events-list-date { display: flex; flex-wrap: wrap; gap: .2rem .6rem; }
body.exploterre-ptfr .calendar-events-list-date-label { font-weight: 650; color: var(--muted); }
body.exploterre-ptfr .site-page-content #module-media-action > form,
body.exploterre-ptfr .site-page-content .terra-media-moderation > form {
  margin-bottom: var(--panel-gap);
  padding: var(--panel-padding);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--surface);
}
body.exploterre-ptfr #module-forum #article-forum-forum > header h2,
body.exploterre-ptfr #module-forum #article-forum-forum > header h2 a {
  background: var(--terra-forum-header, #c8c4be);
  color: #262b2e;
  border-bottom: 0;
}
body.exploterre-ptfr #module-forum .crsorties-activity-buttons,
body.exploterre-ptfr #module-forum .crsorties-filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
body.exploterre-ptfr #module-forum .crsorties-filter-fields > :is(select,input[type=search]) {
  flex: 0 1 15rem;
  max-width: 100%;
  min-width: 0;
}
body.exploterre-ptfr #module-forum .crsorties-activity-buttons { margin-bottom: .65rem; }

@media (max-width: 760px) {
  body.exploterre-ptfr .base2020-calendar-events-table:not(.terra-card-table) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  body.exploterre-ptfr .base2020-calendar-events-table:not(.terra-card-table) :is(tbody,tr,td,caption) { display: block; width: 100%; }
  body.exploterre-ptfr .base2020-calendar-events-table:not(.terra-card-table) tbody tr { padding-block-end: .5rem; }
  body.exploterre-ptfr .base2020-calendar-events-table:not(.terra-card-table) tbody tr > :is(td,th) { border: 0; }
  body.exploterre-ptfr .base2020-calendar-events-table:not(.terra-card-table) .calendar-events-list-cell--title { background: var(--heading-fill); }
}

body.exploterre-ptfr #module-forum .forum-table tbody tr:hover > td,
body.exploterre-ptfr #module-forum .forum-table tbody td:hover {
  background-color: var(--surface);
}

/* Surfaces sans cadres décoratifs. Les champs gardent leur repère de saisie. */
body.exploterre-ptfr :is(.site-context,.terra-panel,.terra-page-heading,
  .module-mini-container,.block-container,.module-contents,.cell,.news-card,.message-container,
  .calendar-ag-export-panel,.calendar-notify-confirmation-card,.calendar-notify-confirmation-form-card,
  .terra-calendar-shell,.terra-calendar-detail-section,.terra-calendar-event-card,
  .ptfr-dashboard-header,.mmfr-profile-hero,.mmfr-profile-panel) {
  border: 0;
}
body.exploterre-ptfr .site-page-content > :is(section,article) > header:not(.ptfr-user-hero):has(> :is(h1,h2)),
body.exploterre-ptfr .site-page-content > :is(section,article) > .content,
body.exploterre-ptfr #module-calendar .terra-calendar-hero,
body.exploterre-ptfr #module-calendar-events .terra-calendar-event-card,
body.exploterre-ptfr #module-forum :is(.forum-message.msg-position,.forum-post-form,.crsorties-filters),
body.exploterre-ptfr #module-forum .forum-topic-page > .content {
  border: 0;
}
body.exploterre-ptfr :is(.module-mini-top,.cell-header,.cell-footer,.media-record-footer) {
  border: 0;
}
body.exploterre-ptfr #module-forum .forum-message :is(.ptfr-message-header,.ptfr-message-footer) {
  border: 0;
}
body.exploterre-ptfr .site-page-content :is(.article-download,.article-faq,.article-web,.article-pages,.article-shoutbox,.subcat-element) {
  border: 0;
}

/* Marge intérieure des contenus natifs, y compris les menus libres. */
body.exploterre-ptfr :is(.module-mini-contents,.block-content,.cell-body) {
  padding: var(--panel-padding);
}
body.exploterre-ptfr :is(#top-content,#bottom-content,#menu-left,#menu-right) :is(.block-container,.module-mini-container)
  > :is(div:not([class]), .content, .module-contents, .formatter-content):not(:has(> :is(.block-content,.module-mini-contents,.cell-body))) {
  min-width: 0;
  padding: var(--panel-padding);
}
body.exploterre-ptfr .module-mini-container > .block-content > .module-mini-top {
  margin: calc(-1 * var(--panel-padding)) calc(-1 * var(--panel-padding)) var(--panel-padding);
}
body.exploterre-ptfr :is(.module-mini-contents,.block-content,.cell-body,.forum-post-content,
  .message-content,.terra-calendar-detail-text,.news-entry-prose,.article-pages > .content)
  :is(.message-helper,.formatter-block,.formatter-container,.formatter-fieldset) {
  max-width: 100%;
  margin-block: .4rem;
}

/* Barre BBCode et actions des formulaires. */
body.exploterre-ptfr .terra-bbcode {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .35rem;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: .5rem;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--heading-fill);
  color: var(--ink);
}
body.exploterre-ptfr .terra-bbcode .bbcode-containers {
  display: flex;
  flex: 1 1 12rem;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .65rem;
  min-width: 0;
}
body.exploterre-ptfr .terra-bbcode .bbcode-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.exploterre-ptfr .terra-bbcode .bbcode-container::after { content: none; }
body.exploterre-ptfr .terra-bbcode .bbcode-container:not(:has(> .bbcode-elements > a:not(.bbcode-forbidden,[aria-disabled="true"]))) {
  display: none !important;
}
body.exploterre-ptfr .terra-bbcode :is(.bbcode-elements,.bbcode-elements-more) {
  border-radius: var(--control-radius);
  background: transparent;
}
body.exploterre-ptfr .terra-bbcode :is(.bbcode-elements,.bbcode-elements-more) > a {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}
body.exploterre-ptfr .terra-bbcode :is(.bbcode-elements,.bbcode-elements-more) > a:is(:hover,:focus-visible) {
  background: #c6d0d5;
  color: #213e4d;
}
body.exploterre-ptfr .terra-bbcode .bbcode-elements:has(> a[aria-disabled="true"]) { display: none !important; }
body.exploterre-ptfr .terra-bbcode .bbcode-elements-more { display: flex; flex: 0 0 auto; margin-inline-start: auto; }
body.exploterre-ptfr .terra-bbcode :is(.bbcode-container,.bbcode-elements) { position: static; }
body.exploterre-ptfr .terra-bbcode .bbcode-elements > .bbcode-block-container {
  z-index: 90;
  inset: calc(100% + .35rem) auto auto 0;
  max-inline-size: 100%;
  margin: 0;
}
body.exploterre-ptfr .terra-bbcode .bbcode-elements > .bbcode-block-container .bbcode-block {
  min-width: min(280px, 100%);
}
body.exploterre-ptfr .terra-bbcode .bbcode-block { border: 0; background: var(--surface); color: var(--ink); }
body.exploterre-ptfr .terra-bbcode .bbcode-block-list a:is(:hover,:focus-visible) { background: var(--info-bg); color: var(--info); }
body.exploterre-ptfr .site-page-content fieldset:has(.form-element-textarea):not(.fieldset-submit,#adhesion-module *) {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.exploterre-ptfr .site-page-content fieldset:has(.terra-bbcode):not(#adhesion-module *) > legend {
  margin: 0 0 .7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
body.exploterre-ptfr .site-page-content .form-element-textarea:has(.terra-bbcode) {
  width: 100%;
  margin: 0;
  padding: 0;
  gap: .55rem;
}
body.exploterre-ptfr .terra-bbcode ~ .form-field-textarea,
body.exploterre-ptfr .terra-bbcode ~ .form-field-textarea textarea {
  display: block;
  width: 100%;
  margin: 0;
}
body.exploterre-ptfr .site-page-content :is(.fieldset-submit,.form-buttons,.form-element-preview,.form-element-reset),
body.exploterre-ptfr .site-page-content .fieldset-submit > :is(.fieldset-inset,.fieldset-content) {
  min-width: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}
body.exploterre-ptfr .site-page-content :is(.fieldset-submit,.form-buttons,.form-element-preview,.form-element-reset) {
  margin-block: .65rem 0;
}
body.exploterre-ptfr .site-page-content .form-element-preview { text-align: center; }
body.exploterre-ptfr .site-page-content .fieldset-submit:has(> :is(button,.button,.basic-button,input[type="submit"],input[type="reset"])) {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
body.exploterre-ptfr .site-page-content .fieldset-submit :is(button,.button,.basic-button,input[type="submit"],input[type="reset"]) {
  flex: 0 1 auto;
  margin-block: 0;
}

/* Les blocs centraux se succèdent même lorsque PHPBoost injecte plusieurs menus. */
body.exploterre-ptfr :is(#bottom-content,#top-content) {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: var(--panel-gap);
}
body.exploterre-ptfr :is(#bottom-content,#top-content) > :is(.module-mini-container,.block-container) { margin-block: 0; }
body.exploterre-ptfr :is(.terra-panel,.block-content,.cell-body,.terra-contribution-section,.location-panel,.cavites-card,.terra-profile-panel,.adhesion-section-content,.terra-contribution-details)
  :where(.terra-panel,.block-container,.cell,.terra-contribution-detail,.location-card,.cavites-card,.adhesion-subsection,.adhesion-document-card) {
  background: var(--soft);
}
body.exploterre-ptfr :is(.block-content,.cell-body,.adhesion-subsection-content) > :is(.block-content,.cell-body,.module-mini-contents) {
  background: var(--soft);
}

.exploterre-ptfr :where(button.submit,button[type="reset"],button.reset):not(:has(i,svg,img),.bbcode *)::before {
  display: inline-block;
  margin-inline-end: .4em;
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  content: "\f00c";
}
.exploterre-ptfr :where(button[type="reset"],button.reset):not(:has(i,svg,img),.bbcode *)::before { content: "\f2ea"; }
.exploterre-ptfr button.button-danger:not(:has(i,svg,img))::before { content: "\f1f8"; }
.exploterre-ptfr button.button-edit:not(:has(i,svg,img))::before { content: "\f304"; }

/* Les listes de données conservent les colonnes et le mode mobile de leur module.
   Le calendrier, la palette de l’éditeur et les graphiques ont leur propre géométrie. */
@layer terra-tables {
  .exploterre-ptfr table:not(:where(
    .calendar, .date-picker, .calendar-table, .calendar-block *, .terra-native-date-dialog *,
    .bbcode-block-container *, .bbcode-bar *, .color-picker *, .stats-chart-table, .stats-chart-table *, .forum-table,
    [role="presentation"], [role="grid"], .location-contract-page *
  )) {
    border: 1px solid var(--panel-line) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: var(--radius) !important;
    background: var(--surface);
    padding: 0 !important;
    overflow: visible;

    & > :is(thead,tbody,tfoot) > tr > :is(th,td) {
      border: 0 !important;

      border-radius: 0;
      padding: clamp(.55rem, 1vw, .8rem) clamp(.65rem, 1.2vw, 1rem);
      background-clip: padding-box;
    }
    & > thead > tr > :is(th,td), & > tbody > tr > th {
      background-color: var(--heading-fill) !important;
      color: var(--ink) !important;
    }
    & > tbody > tr:not([class*="bgc"],[class*="bkgd-"],[style*="background" i]) > td:not([class*="bgc"],[class*="bkgd-"],[style*="background" i]) {
      background-color: var(--surface);
    }
    & > thead > tr > th a:not(.button,.basic-button) { color: inherit; }
    & > tfoot > tr > :is(th,td) {
      background-color: var(--soft) !important;
      color: var(--ink) !important;
    }

    & > thead > tr:first-child > :first-child,
    &:not(:has(> thead)) > tbody:first-of-type > tr:first-child > :first-child {
      border-start-start-radius: calc(var(--radius) - 1px) !important;
    }
    & > thead > tr:first-child > :last-child,
    &:not(:has(> thead)) > tbody:first-of-type > tr:first-child > :last-child {
      border-start-end-radius: calc(var(--radius) - 1px) !important;
    }
    & > :is(tbody,tfoot):last-child > tr:last-child > :first-child {
      border-end-start-radius: calc(var(--radius) - 1px) !important;
    }
    & > :is(tbody,tfoot):last-child > tr:last-child > :last-child {
      border-end-end-radius: calc(var(--radius) - 1px) !important;
    }
  }
  .exploterre-ptfr :is(.responsive-table,.location-table-wrap,.adhesion-table-wrap,.location-item-group-pricing-table-wrap):has(> table:only-child) {
    border: 0 !important;
    padding: 0 !important;
    border-radius: var(--radius) !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Libellés composés des cartes et raccourcis, y compris les valeurs longues. */
body.exploterre-ptfr :is(.ptfr-dashboard-copy,.media-category-copy,.terra-contribution-module-copy,
  .location-mini-card > div,.adhesion-current-membership-grid article > div,
  .adhesion-document-category-nav-heading > div) {
  display: grid;
  align-content: start;
  gap: .25rem;
  min-width: 0;
  text-align: start;
  overflow-wrap: anywhere;
}
body.exploterre-ptfr :is(.ptfr-dashboard-copy,.media-category-copy,.terra-contribution-module-copy,
  .location-mini-card > div,.adhesion-current-membership-grid article > div,
  .adhesion-document-category-nav-heading > div) > strong { color: var(--ink); }
body.exploterre-ptfr :is(.ptfr-dashboard-copy,.media-category-copy,.terra-contribution-module-copy,
  .location-mini-card > div,.adhesion-current-membership-grid article > div,
  .adhesion-document-category-nav-heading > div) > :is(small,span) { color: var(--muted); }
body.exploterre-ptfr #module-user-view-profile .terra-profile-extended-fields > .terra-profile-detail {
  padding-inline: var(--panel-padding);
}
body.exploterre-ptfr #location-module .location-category-filter[aria-pressed="true"] {
  --control-bg: var(--brand);
  --control-hover: var(--brand-hover);
  --control-ink: white;
  --control-edge: transparent;
}

/* Le fond des bandeaux varie selon la rubrique. */
.site-page-content :is(#module-calendar,#module-calendar-events,.calendar-notify-confirmation,#module-search,#module-media,#cavites-module,#module-online) {
  --module-band: var(--module-band-slate);
}
.site-page-content :is(#module-forum,#location-module,[id^="module-user-"]) {
  --module-band: var(--module-band-rock);
}
.site-page-content #module-news .news-entry-head {
  --module-band: var(--news-band);
}

@layer terra-headings {
  .site-page-content :is(.terra-page-heading,.terra-module-title,.terra-search-hero,.terra-poll-heading,.news-entry-head,
    .ptfr-moderation-tracking-header,.terra-online-page-head,.ptfr-user-hero,.terra-user-hero,.terra-profile-title,.cavites-hero,
    .location-hero,.adhesion-page-header,.adhesion-hero,.terra-calendar-hero,.calendar-notify-confirmation-header),
  .site-page-content > :is(section,article) > header:has(h1),
  .site-page-content > div > :is(section,article) > header:has(h1),
  .site-page-content > :is(section,article) > header:first-child:has(> h2),
  .site-page-content > :is(section,article) > h1,
  .site-page-content > h1,
  .site-page-content legend:has(> h1) {
    background: var(--module-band) !important;
    color: var(--module-ink) !important;
    & :is(h1,h2):not(.formatter-title), & :is(h1,h2) > a:not(.button,.basic-button,.small-button) {
      background: transparent !important;
      color: var(--module-ink) !important;
    }
    & :is(p,.ptfr-user-hero-description,.terra-user-hero-intro):not(:is(a,button,summary) *) {
      color: var(--muted) !important;
      font-size: var(--body-copy-size) !important;
      line-height: var(--description-leading);
    }
    & :is(.ptfr-user-hero-eyebrow,.location-kicker,.terra-calendar-hero-kicker,.terra-poll-eyebrow,.adhesion-eyebrow,.cavites-back,.location-back) {
      color: var(--heading-secondary) !important;
    }
  }
  .exploterre-ptfr .module-mini-top {
    background: var(--section-band) !important;
    color: var(--section-ink) !important;
    & :is(.sub-title,h5,.sub-title a,h5 a) { color: inherit !important; }
  }
  .site-page-content :is(.adhesion-section-heading,.adhesion-subsection-heading,.adhesion-info-card-header,
    .adhesion-current-membership > header,.terra-calendar-detail-section-heading,.calendar-form-section-title,.terra-news-comments-panel-heading,
    .terra-profile-panel-header,.terra-search-results-header) {
    background: var(--section-band) !important;
    color: var(--section-ink) !important;
    & :is(h2,h3):not(:is(a,button,summary) *) {color:var(--section-ink) !important;}
    & > p { color: var(--muted) !important; font-size: var(--body-copy-size) !important; }
  }
  .site-page-content :is(.field-description,.form-field-description,.content-description,.module-description,
    .article-description,.cat-description,.media-category-description,.media-description,.terra-poll-intro,
    .adhesion-form-intro > p,.adhesion-document-category-description,.cavites-report-intro,.terra-user-error-description,
    .terra-search-result-excerpt,.terra-search-results-summary > p,
    .media-category-copy > small,.location-item-description,.location-filter-header p,.cavites-map-help):not(:is(button,.button) *) {
    color: var(--muted) !important;
    font-size: var(--body-copy-size) !important;
    line-height: var(--description-leading);
  }
  .site-page-content :is(.terra-page-heading,.terra-module-title,.terra-search-hero,.terra-poll-heading,
    .news-entry-head,.terra-search-results-header) :is(h1,h2,h3) > a:is(:hover,:focus-visible) {
    color: var(--brand-hover) !important;
    text-decoration: underline;
    text-underline-offset: .14em;
  }
}

/* Garder la couleur propre à chaque action dans les deux états. */
.exploterre-ptfr :is(.site-account-trigger,.location-category-filter[aria-pressed="true"]) {
  --control-bg: var(--brand);
  --control-ink: #fff;
  --control-hover: var(--brand-hover);
  --control-edge: transparent;
}
.exploterre-ptfr .terra-home-btn-primary {--control-bg:#f4bd9c;--control-hover:#ffd5bb;--control-ink:#30251d;--control-edge:transparent;}
.exploterre-ptfr .terra-home-btn-outline {--control-bg:#344238;--control-hover:#485849;--control-ink:#fff;--control-edge:transparent;}
.exploterre-ptfr .crsorties-activity-button {--control-bg:var(--surface);--control-hover:var(--stone);--control-ink:var(--brand);}
.exploterre-ptfr .crsorties-activity-button.is-selected {--control-bg:var(--rock);--control-hover:var(--rock-hover);--control-ink:#fff;--control-edge:transparent;}
body.exploterre-ptfr #adhesion-module .adhesion-main-actions > .adhesion-renewal-date {
  display:inline-flex;align-items:center;gap:.55rem;padding:.55rem .85rem;max-width:100%;box-sizing:border-box;
  border:1px solid #c58c59;border-radius:var(--control-radius);
  background:var(--warning-bg);color:var(--warning);font-weight:700;line-height:1.4;
}

@layer terra-forms {
  #CalendarFormController .calendar-form-title {
    display:block;box-sizing:border-box;width:100%;margin:1rem 0;
    padding:.85rem clamp(1rem,2vw,1.5rem) !important;
    border:1px solid var(--panel-line);border-radius:var(--radius);
    background:var(--module-band) !important;color:var(--module-ink) !important;line-height:1.3;
  }
  /* The native select is authoritative before scripts run and after browser form restoration. */
  #CalendarFormController:has(#CalendarFormController_registration_authorized option:checked:not([value="1"]))
    :is(#CalendarFormController_register_authorizations,#CalendarFormController_registration_responsibility_notice_field,
        #CalendarFormController_registration_settings_intro_field,#CalendarFormController_max_registered_members_field,
        #CalendarFormController_last_registration_date_enabled_field,#CalendarFormController_last_registration_date_field) {
    display:none !important;
  }
  .exploterre-ptfr label > input:is([type="checkbox"],[type="radio"]):not([hidden]),
  .exploterre-ptfr input:is([type="checkbox"],[type="radio"]):has(+ label):not([hidden]) {
    margin-inline-end:.55rem !important;
  }
  .exploterre-ptfr #CalendarFormController label.calendar-auth-choice {
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr);
    align-content:center;align-items:center;column-gap:.65rem !important;row-gap:.2rem !important;
    width:100%;min-width:0;text-align:start;
  }
  .exploterre-ptfr #CalendarFormController .calendar-auth-choice > input {
    position:static !important;appearance:auto !important;opacity:1 !important;
    grid-column:1;grid-row:1;width:1.05rem;height:1.05rem;margin:0 !important;
  }
  .exploterre-ptfr #CalendarFormController .calendar-auth-checkmark {display:none !important;}
  .exploterre-ptfr #CalendarFormController :is(.calendar-auth-choice-label,.calendar-auth-required) {
    grid-column:2;min-width:0;line-height:1.4;
  }
  .exploterre-ptfr #CalendarFormController .calendar-form-options {
    padding:0 !important;margin:.5rem 0 !important;border:1px solid var(--panel-line) !important;
    border-radius:var(--control-radius) !important;background:var(--surface) !important;
  }
  .exploterre-ptfr #CalendarFormController .calendar-form-options > summary {
    display:flex;align-items:center;justify-content:space-between;gap:.75rem;
    min-height:44px;padding:.7rem 1rem !important;border:0 !important;cursor:pointer;list-style:none;
  }
  .exploterre-ptfr .calendar-form-options summary::-webkit-details-marker {display:none;}
  .exploterre-ptfr .calendar-form-options > summary::after {
    content:"▾";flex:none;color:inherit;font:inherit;font-size:1.2em;
  }
  .exploterre-ptfr .calendar-form-options[open] > summary::after {content:"▴";}
  .exploterre-ptfr .calendar-form-options[open] > div {padding:var(--panel-padding);}
}

/* Les onglets et la pagination conservent leur propre état actif. */
@layer terra-controls {
  .exploterre-ptfr :is(a[role="tab"],button[role="tab"],nav.pagination a,.adhesion-document-admin-tab):not([hidden],:disabled,[aria-disabled="true"]) {
    background-color:var(--control-bg,var(--sand)) !important;
    color:var(--control-ink,var(--on-sand)) !important;
    border-color:var(--control-edge,var(--panel-line)) !important;
    &:is(:hover,:focus-visible) {
      background-color:var(--control-hover,var(--sand-hover)) !important;
      filter:none !important;
      transform:none !important;
    }
  }
}
.exploterre-ptfr :is(nav.pagination a[aria-current],.pagination .current a,
  [role="tab"][aria-selected="true"],.adhesion-tabs a.active) {
  --control-bg:var(--rock);
  --control-hover:var(--rock-hover);
  --control-ink:white;
  --control-edge:transparent;
}
.exploterre-ptfr .site-account > a {--control-bg:var(--brand);--control-hover:var(--brand-hover);--control-ink:white;--control-edge:transparent;}
