/*
 * Idasso CSS preparation.
 * Module de theme charge pendant la recette IdAsso.
 */

/* Shared Idasso variables, components, buttons, icons and form primitives. */

:root {
  /* Semantic colors are fixed application states, not brand customization. */
  --idasso-color-success: var(
    --wp--preset--color--idasso-success,
    var(--wp--custom--idasso--success, #94bb3e)
  );
  --idasso-color-error: var(
    --wp--preset--color--idasso-error,
    var(--wp--custom--idasso--error, #fa7373)
  );
  --idasso-color-warning: var(
    --wp--preset--color--idasso-warning,
    var(--wp--custom--idasso--warning, #ea9438)
  );
  --idasso-color-placeholder: var(
    --wp--preset--color--idasso-placeholder,
    var(--wp--custom--idasso--placeholder, #00000063)
  );
  --idasso-color-muted: var(
    --wp--preset--color--idasso-muted,
    var(--wp--custom--idasso--muted, #878787)
  );
  --idasso-color-border: var(
    --wp--preset--color--idasso-border,
    var(--wp--custom--idasso--border, #00000014)
  );
  --idasso-color-surface: var(
    --wp--preset--color--idasso-surface,
    var(--wp--preset--color--surface, #ffffff)
  );
  --idasso-color-surface-muted: var(
    --wp--preset--color--idasso-surface-muted,
    var(--wp--custom--idasso--surface-muted, #f5f5f8)
  );
  --idasso-color-surface-subtle: var(
    --wp--preset--color--idasso-surface-subtle,
    var(--wp--custom--idasso--surface-subtle, #f9faff)
  );
  --idasso-color-thematic-filters-background: var(
    --wp--preset--color--idasso-thematic-filters-background,
    var(
      --wp--custom--idasso--thematic-filters-background,
      var(--idasso-color-surface-subtle)
    )
  );
  --idasso-color-thematic-filter-background: var(
    --wp--preset--color--idasso-thematic-filter-background,
    var(
      --wp--custom--idasso--thematic-filter-background,
      var(--background-filter, #f6f9fa)
    )
  );
  --idasso-color-on-emphasis: var(
    --wp--preset--color--idasso-on-emphasis,
    var(--wp--custom--idasso--on-emphasis, #ffffff)
  );
  --idasso-color-button-disabled: var(
    --wp--preset--color--idasso-button-disabled,
    var(--wp--custom--idasso--button-disabled, #b8b8b8)
  );
  --idasso-color-border-strong: var(
    --wp--preset--color--idasso-border-strong,
    var(--wp--custom--idasso--border-strong, rgba(15, 16, 53, 0.12))
  );
  --idasso-color-overlay: var(
    --wp--preset--color--idasso-overlay,
    var(--wp--custom--idasso--overlay, rgba(0, 0, 0, 0.8))
  );
  --idasso-color-overlay-subtle: var(
    --wp--preset--color--idasso-overlay-subtle,
    var(--wp--custom--idasso--overlay-subtle, rgba(0, 0, 0, 0.6))
  );
  --idasso-color-calendar-border: var(
    --wp--preset--color--idasso-calendar-border,
    var(--wp--custom--idasso--calendar-border, #c4d0e6)
  );
  --idasso-color-calendar-muted: var(
    --wp--preset--color--idasso-calendar-muted,
    var(--wp--custom--idasso--calendar-muted, #7b7ea1)
  );
  --color-titre: var(
    --wp--preset--color--idasso-primary,
    var(--wp--preset--color--base, #000)
  );
  --color-lien: var(
    --wp--preset--color--idasso-secondary,
    var(--wp--preset--color--brand, #66e8ff)
  );
  --color-hover: var(
    --wp--preset--color--idasso-hover,
    var(--wp--preset--color--idasso-secondary, var(--wp--preset--color--brand, #66e8ff))
  );
  --color-bouton: var(
    --wp--preset--color--idasso-buttons,
    var(--wp--preset--color--idasso-primary, var(--wp--preset--color--base, #000))
  );
  --color-pro: var(
    --wp--preset--color--idasso-pro,
    var(--wp--preset--color--mint, #5fe8c1)
  );
  --color-declinaison1: var(
    --wp--preset--color--idasso-declinaison-1,
    var(--wp--preset--color--purple, #9481c8)
  );
  --color-declinaison2: var(
    --wp--preset--color--idasso-declinaison-2,
    var(--wp--preset--color--pink, #ffacc5)
  );
  --color-adherent: var(
    --wp--preset--color--idasso-accent,
    var(--wp--preset--color--accent, #fbca1a)
  );
  --idasso-color-directory-avatar: var(
    --wp--preset--color--idasso-directory-avatar,
    #999ab9
  );
  /* Map marker SVG semantic colours. The SVG files consume these through
   * CSS when inlined; the URL fallback remains usable by Leaflet. */
  --idasso-map-marker: var(--wp--custom--idasso--map-marker, var(--wp--preset--color--idasso-map-marker, #000000));
  --idasso-map-marker-active: var(--wp--custom--idasso--map-marker-active, var(--wp--preset--color--idasso-map-marker-active, #66e8ff));
  --idasso-map-marker-alt: var(--wp--custom--idasso--map-marker-alt, var(--wp--preset--color--idasso-map-marker-alt, #fbca1a));
  --color-label-mention: var(--idasso-color-muted);
  --border-radius: var(--wp--custom--idasso--border-radius, 0.875rem);
  --border-radius-hover: var(
    --wp--custom--idasso--border-radius-hover,
    var(--border-radius)
  );
  --color-success: var(--idasso-color-success);
  --color-error: var(--idasso-color-error);
  --color-semi-error: var(--idasso-color-warning);
  --color-placeholder: var(--idasso-color-placeholder);
  --color-border: var(--idasso-color-border);
  --background-filter: var(
    --wp--preset--color--idasso-filter,
    var(--wp--custom--idasso--background-filter, #f6f9fa)
  );
  --fontWeight-btn: var(--idasso-button-font-weight, 700);
  --header-height-noconnect: 94px;
  --header-height-connect: 130px;
  /* Component guard rails: every IdAsso UI item has a usable fallback. */
  --idasso-component-text: var(--idasso-paragraph-color, #000);
  --idasso-component-heading: var(--color-titre, var(--idasso-paragraph-color, #000));
  --idasso-component-link: var(--color-lien, #66e8ff);
  --idasso-component-surface: var(--idasso-color-surface, #fff);
  --idasso-component-surface-muted: var(--idasso-color-surface-muted, #f5f5f8);
  --idasso-component-border: var(--idasso-color-border, rgba(0, 0, 0, 0.08));
  --idasso-component-border-strong: var(
    --idasso-color-border-strong,
    rgba(15, 16, 53, 0.12)
  );
  --idasso-component-radius: var(--border-radius, 0.875rem);
  --idasso-component-input-text: var(
    --idasso-input-text,
    var(--idasso-paragraph-color, #000)
  );
  --idasso-component-input-background: var(--idasso-input-background, #fff);
  --idasso-component-input-border: var(
    --idasso-input-border-color,
    var(--idasso-color-border, rgba(0, 0, 0, 0.08))
  );
  --idasso-component-button-text: var(--idasso-button-text, inherit);
  --idasso-component-button-border: var(
    --idasso-button-border-color,
    var(--idasso-color-border, rgba(0, 0, 0, 0.08))
  );
  --idasso-component-transition: var(--idasso-button-transition-duration, 300ms)
    var(--idasso-button-transition-easing, ease-in-out);
  /* Form and button tokens are overwritten by Global Styles (FSE) or by the
   IdAsso settings page on classic themes and page builders. */
  --idasso-input-text: var(--wp--custom--idasso--input-text, var(--idasso-paragraph-color));
  --idasso-input-background: var(
    --wp--custom--idasso--input-background,
    var(--idasso-color-surface)
  );
  --idasso-input-border-color: var(
    --wp--custom--idasso--input-border-color,
    var(--idasso-color-border)
  );
  --idasso-input-border-width: var(
    --wp--custom--idasso--input-border-width,
    1px
  );
  --idasso-input-border-style: var(
    --wp--custom--idasso--input-border-style,
    solid
  );
  --idasso-input-border-radius: var(
    --wp--custom--idasso--input-border-radius,
    var(--border-radius)
  );
  --idasso-paragraph-color-button: var(
    --wp--preset--color--idasso-text-button,
    var(--wp--custom--idasso--button-text, var(--idasso-color-on-emphasis))
  );
  --idasso-button-text: var(--idasso-paragraph-color-button);
  --idasso-button-border-color: var(
    --wp--custom--idasso--button-border-color,
    var(--idasso-color-border)
  );
  --idasso-button-border-width: var(
    --wp--custom--idasso--button-border-width,
    1px
  );
  --idasso-button-border-style: var(
    --wp--custom--idasso--button-border-style,
    solid
  );
  --idasso-button-border-radius: var(
    --wp--custom--idasso--button-border-radius,
    var(--border-radius)
  );
  --idasso-button-border-radius-hover: var(
    --wp--custom--idasso--button-border-radius-hover,
    var(--idasso-button-border-radius)
  );
  --idasso-button-hover-background: var(
    --wp--custom--idasso--button-hover-background,
    var(--color-hover)
  );
  --idasso-paragraph-color-button-hover: var(
    --wp--preset--color--idasso-text-button-hover,
    var(--wp--custom--idasso--button-hover-text, var(--idasso-paragraph-color))
  );
  --idasso-button-hover-text: var(--idasso-paragraph-color-button-hover);
  --idasso-button-hover-border: var(
    --wp--custom--idasso--button-hover-border,
    var(--color-hover)
  );
  --idasso-button-transition-duration: var(
    --wp--custom--idasso--button-transition-duration,
    300ms
  );
  --idasso-button-transition-easing: var(
    --wp--custom--idasso--button-transition-easing,
    ease-in-out
  );
  --idasso-paragraph-color: var(
    --wp--custom--idasso--paragraph-color,
    var(--wp--preset--color--idasso-primary, var(--wp--preset--color--base, #000))
  );
  --idasso-paragraph-font-family: inherit;
  --idasso-paragraph-font-size: 1rem;
  --idasso-paragraph-font-weight: 400;
  --idasso-paragraph-line-height: 1.5;
  --idasso-paragraph-letter-spacing: normal;
  --idasso-paragraph-margin-top: 0;
  --idasso-paragraph-margin-bottom: 1rem;
}

/* FLAG: Demo CSS */

/* FLAG: Heading Design */
.idasso :is(h1, .h1) {
  color: var(--idasso-heading-h1-color, var(--color-titre));
  font-family: var(--idasso-heading-font-family, inherit);
  font-size: var(--idasso-heading-h1-font-size, 2.5rem);
  font-weight: var(--idasso-heading-h1-font-weight, var(--idasso-heading-font-weight, 700));
  letter-spacing: var(--idasso-heading-h1-letter-spacing, var(--idasso-heading-letter-spacing, normal));
  line-height: var(--idasso-heading-h1-line-height, var(--idasso-heading-line-height, 1.2));
  margin-top: var(--idasso-heading-h1-margin-top, 1.5rem);
  margin-bottom: var(--idasso-heading-h1-margin-bottom, 0.75rem);
}
.idasso :is(h2, .h2) {
  color: var(--idasso-heading-h2-color, var(--color-titre));
  font-family: var(--idasso-heading-font-family, inherit);
  font-size: var(--idasso-heading-h2-font-size, 1.875rem);
  font-weight: var(--idasso-heading-h2-font-weight, var(--idasso-heading-font-weight, 700));
  letter-spacing: var(--idasso-heading-h2-letter-spacing, var(--idasso-heading-letter-spacing, normal));
  line-height: var(--idasso-heading-h2-line-height, var(--idasso-heading-line-height, 1.2));
  margin-top: var(--idasso-heading-h2-margin-top, 1.5rem);
  margin-bottom: var(--idasso-heading-h2-margin-bottom, 0.75rem);
}
.idasso :is(h3, .h3) {
  color: var(--idasso-heading-h3-color, var(--color-titre));
  font-family: var(--idasso-heading-font-family, inherit);
  font-size: var(--idasso-heading-h3-font-size, 1.5625rem);
  font-weight: var(--idasso-heading-h3-font-weight, var(--idasso-heading-font-weight, 700));
  letter-spacing: var(--idasso-heading-h3-letter-spacing, var(--idasso-heading-letter-spacing, normal));
  line-height: var(--idasso-heading-h3-line-height, var(--idasso-heading-line-height, 1.2));
  margin-top: var(--idasso-heading-h3-margin-top, 1.5rem);
  margin-bottom: var(--idasso-heading-h3-margin-bottom, 0.75rem);
}
.idasso :is(h4, .h4) {
  color: var(--idasso-heading-h4-color, var(--color-titre));
  font-family: var(--idasso-heading-font-family, inherit);
  font-size: var(--idasso-heading-h4-font-size, 1.25rem);
  font-weight: var(--idasso-heading-h4-font-weight, var(--idasso-heading-font-weight, 700));
  letter-spacing: var(--idasso-heading-h4-letter-spacing, var(--idasso-heading-letter-spacing, normal));
  line-height: var(--idasso-heading-h4-line-height, var(--idasso-heading-line-height, 1.2));
  margin-top: var(--idasso-heading-h4-margin-top, 1.5rem);
  margin-bottom: var(--idasso-heading-h4-margin-bottom, 0.75rem);
}
.idasso :is(h5, .h5) {
  color: var(--idasso-heading-h5-color, var(--color-titre));
  font-family: var(--idasso-heading-font-family, inherit);
  font-size: var(--idasso-heading-h5-font-size, 1.125rem);
  font-weight: var(--idasso-heading-h5-font-weight, var(--idasso-heading-font-weight, 700));
  letter-spacing: var(--idasso-heading-h5-letter-spacing, var(--idasso-heading-letter-spacing, normal));
  line-height: var(--idasso-heading-h5-line-height, var(--idasso-heading-line-height, 1.2));
  margin-top: var(--idasso-heading-h5-margin-top, 1.5rem);
  margin-bottom: var(--idasso-heading-h5-margin-bottom, 0.75rem);
}
.idasso :is(h6, .h6) {
  color: var(--idasso-heading-h6-color, var(--color-titre));
  font-family: var(--idasso-heading-font-family, inherit);
  font-size: var(--idasso-heading-h6-font-size, 1rem);
  font-weight: var(--idasso-heading-h6-font-weight, var(--idasso-heading-font-weight, 700));
  letter-spacing: var(--idasso-heading-h6-letter-spacing, var(--idasso-heading-letter-spacing, normal));
  line-height: var(--idasso-heading-h6-line-height, var(--idasso-heading-line-height, 1.2));
  margin-top: var(--idasso-heading-h6-margin-top, 1.5rem);
  margin-bottom: var(--idasso-heading-h6-margin-bottom, 0.75rem);
}

/* Paragraph Design */
.idasso :is(p, ul, ol, li, span) {
  color: var(--idasso-paragraph-color, #000000);
  font-family: var(--idasso-paragraph-font-family, inherit);
  font-size: var(--idasso-paragraph-font-size, 1rem);
  font-weight: var(--idasso-paragraph-font-weight, 400);
  font-style: var(--idasso-paragraph-font-style, normal);
  letter-spacing: var(--idasso-paragraph-letter-spacing, normal);
  line-height: var(--idasso-paragraph-line-height, 1.5);
}

.idasso :is(p, ul, ol) {
  margin-top: var(--idasso-paragraph-margin-top, 0);
  margin-bottom: var(--idasso-paragraph-margin-bottom, 1rem);
}

.idasso :is(p, ul, ol, li) a:not(.btn):not(.leaflet-control-zoom a) {
  color: var(--idasso-paragraph-link-color, var(--color-lien));
}

.idasso :is(p, ul, ol, li) a:not(.btn):not(.leaflet-control-zoom a):hover,
.idasso :is(p, ul, ol, li) a:not(.btn):not(.leaflet-control-zoom a):focus-visible {
  color: var(--idasso-paragraph-link-hover-color, var(--color-hover));
}

.idasso p:has(.nameConnect) {
  margin-bottom: 0;
}


/* A vertical stack already uses gap for its rhythm. Prevent the configurable
 * heading/paragraph margins from being added outside that rhythm. */
.idasso :where(
    #Details_grp-travail .nav__panel,
    #Details_grp-travail .nav_content,
    #tableau-de-bord .header .subblock,
    #tableau-de-bord .second-block,
    .grp_list,
    .details_reunion,
    #FicheAnnuaire .tabs_datas .block_presentation,
    #FicheAnnuaire .tabs_datas .block_adherents,
    .idasso-panel-live-preview__content
  )
  > :is(h1, h2, h3, h4, h5, h6, p):first-of-type {
  margin-block-start: 0;
  margin-top: 0;
}

.idasso :where(
    #Details_grp-travail .nav__panel,
    #Details_grp-travail .nav_content,
    #tableau-de-bord .header .subblock,
    #tableau-de-bord .second-block,
    .grp_list,
    .details_reunion,
    #FicheAnnuaire .tabs_datas .block_presentation,
    #FicheAnnuaire .tabs_datas .block_adherents,
    .idasso-panel-live-preview__content
  )
  > :is(h1, h2, h3, h4, h5, h6, p):last-of-type {
  margin-block-end: 0;
  margin-bottom: 0;
}

.idasso {
  width: 100%;

  p:last-of-type, ul:last-of-type, ol:last-of-type, li:last-of-type, span:last-of-type, h1:last-of-type, h2:last-of-type, h3:last-of-type, h4:last-of-type, h5:last-of-type, h6:last-of-type {
    margin-bottom: 0;
  }
  p:first-of-type, ul:first-of-type, ol:first-of-type, li:first-of-type, span:first-of-type, h1:first-of-type, h2:first-of-type, h3:first-of-type, h4:first-of-type, h5:first-of-type, h6:first-of-type {
    margin-top: 0;
  }

  .bold {
    font-weight: bold;
  }
  .text-center {
    text-align: center;
  }
  .text-end {
    text-align: right;
    color: var(--idasso-component-text);
  }
  .text-danger {
    color: var(--color-error);
  }
  .text-success {
    color: var(--color-success);
  }
  .text-warning {
    color: var(--color-semi-error);
  }
  .text-blue {
    color: var(--idasso-paragraph-color, var(--idasso-paragraph-color, #000));
  }

  /* Text-only links: cards, icon links and component buttons keep their own
   * interactions. A link may contain text directly or be wrapped in p/span. */
  @media (hover: hover) and (pointer: fine) {
    /* Pseudo-elements cannot be selected with :has(). Apply the state to the
     * list item so an icon drawn by ::before/::after follows the link hover. */
    li:has(> a:not(.btn):not([href^="javascript:"]):not(:has(> :not(:is(p, span))))) {
      transition:
        color 260ms ease-in-out,
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    a:not(.btn):not(.leaflet-control-zoom a):not([href^="javascript:"]):not(:has(> :not(:is(p, span)))) {
      display: inline-block;
      transition:
        color 260ms ease-in-out,
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    a:not(.btn):not(.leaflet-control-zoom a):not([href^="javascript:"]):not(:has(> :not(:is(p, span)))):hover {
      color: var(--color-hover);
      transform: translateX(0.2rem);
    }

    li:has(> a:not(.btn):not([href^="javascript:"]):not(:has(> :not(:is(p, span))))):hover,
    li:has(> a:not(.btn):not([href^="javascript:"]):not(:has(> :not(:is(p, span))))):hover > a {
      color: var(--color-hover);
    }

    li:has(> a:not(.btn):not([href^="javascript:"]):not(:has(> :not(:is(p, span))))):hover {
      transform: translateX(0.2rem);
    }

    /* The list item owns the movement to include its generated icon. */
    li:has(> a:not(.btn):not([href^="javascript:"]):not(:has(> :not(:is(p, span))))) > a,
    li:has(> a:not(.btn):not([href^="javascript:"]):not(:has(> :not(:is(p, span))))):hover > a {
      transform: none;
    }

    /* Reusable content cards share the home-page hover. The selector is
     * deliberately limited to listing cards, never generic form panels. */
    :is(
      #Annuaire #results_form .col-list-results .card-list,
      #FicheAnnuaire .tabs_datas .block_zones #zones_results .card-list,
      #FicheAnnuaire .tabs_datas .block_annonces .annonces .annonce,
      .template-annonces-list .annonces .annonce,
      .template-annonce .col-33 .row .annonce,
      #MesPetitesAnnonces .mes_annonces .annonce,
      .cal__card,
      .events_home .event
    ) {
      position: relative;
      transform-origin: center;
      transition:
        filter 220ms ease,
        transform 220ms ease;
    }

    :is(
      #Annuaire #results_form .col-list-results .card-list,
      #FicheAnnuaire .tabs_datas .block_zones #zones_results .card-list,
      #FicheAnnuaire .tabs_datas .block_annonces .annonces .annonce,
      .template-annonces-list .annonces .annonce,
      .template-annonce .col-33 .row .annonce,
      #MesPetitesAnnonces .mes_annonces .annonce,
      .cal__card,
      .events_home .event
    ):hover {
      filter: brightness(1.025);
      transform: scale(1.03);
      z-index: 2;
    }
  }

  #Mon-compte h1,
  #ModifierMdp h1,
  #Supprimer-compte h1,
  #tableau-de-bord .header .subblock .title-subtitle h1,
  .template-mediatheque-list h1,
  .template-mediatheque.et_pb_row h1,
  #FicheAnnuaire .head-fiche .container h1,
  #FicheAnnuaire .back .container h1,
  #FicheAnnuaire .head-fiche .container h1,
  #FicheAnnuaire .back .container h1,
  #MesPetitesAnnonces h1,
  #rgaa-heading-1 h1 {
    color: var(--idasso-heading-h1-color, var(--color-titre));
  }

  #tableau-de-bord h2,
  #tableau-de-bord h2 a,
  form h2,
  #Mon-compte .block:nth-of-type(2) h2,
  #Mon-compte .block:nth-of-type(3) h2,
  #Mon-compte .block:last-of-type h2,
  #Modifier-profil-annuaire h2,
  #FicheAnnuaire .tabs_datas .block_presentation h2,
  #FicheAnnuaire .tabs_datas .block_adherents h2,
  #InscriptionAnnuaire h2,
  #FicheAnnuaire .tabs_datas .block_presentation h2,
  #FicheAnnuaire .tabs_datas .block_adherents h2,
  #rgaa-heading-2 h2 {
    color: var(--idasso-heading-h2-color, var(--color-titre));
    transition: all 0.3s ease-in-out;
  }

  body:has(#tableau-de-bord) {
    overflow-x: hidden;
  }
  /* ---- Icons ---- */
  .map {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/icon-lieu.svg") center / contain no-repeat;
    mask: url("../../icons/icon-lieu.svg") center / contain no-repeat;
    background-color: var(--idasso-paragraph-color);
    transition: background-color 0.3s ease-in-out;
  }
  .calendar {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/icon-date.svg") center / contain no-repeat;
    mask: url("../../icons/icon-date.svg") center / contain no-repeat;
    background-color: var(--idasso-paragraph-color);
    transition: background-color 0.3s ease-in-out;
  }
  .work {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/icon-profession.svg") center / contain
      no-repeat;
    mask: url("../../icons/icon-profession.svg") center / contain no-repeat;
    background-color: var(--idasso-paragraph-color);
    transition: background-color 0.3s ease-in-out;
  }

  .euro {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/Prix.svg") center / contain no-repeat;
    mask: url("../../icons/Prix.svg") center / contain no-repeat;
    background-color: var(--idasso-paragraph-color);
    transition: background-color 0.3s ease-in-out;
  }
  .phone {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/icon-telephone.svg") center / contain
      no-repeat;
    mask: url("../../icons/icon-telephone.svg") center / contain no-repeat;
    background-color: var(--idasso-paragraph-color);
    transition: background-color 0.3s ease-in-out;
  }

  .infos_adherent {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/icon-acces-restreint.svg") center / contain
      no-repeat;
    mask: url("../../icons/icon-acces-restreint.svg") center / contain no-repeat;
    background-color: var(--color-pro);
    transition: background-color 0.3s ease-in-out;
  }
  .rdv {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/icon-rvd-en-ligne-secondary.svg") center /
      contain no-repeat;
    mask: url("../../icons/icon-rvd-en-ligne-secondary.svg") center / contain
      no-repeat;
    background-color: var(--color-lien);
    transition: background-color 0.3s ease-in-out;
  }
  .email {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/icon-email.svg") center / contain no-repeat;
    mask: url("../../icons/icon-email.svg") center / contain no-repeat;
    background-color: var(--idasso-paragraph-color);
    transition: background-color 0.3s ease-in-out;
  }
  .site_internet {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/icon-site-internet.svg") center / contain
      no-repeat;
    mask: url("../../icons/icon-site-internet.svg") center / contain no-repeat;
    background-color: var(--idasso-paragraph-color);
    transition: background-color 0.3s ease-in-out;
  }
  .prise_rdv {
    background: url(../../icons/icon-rvd-en-ligne-blanc.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 1rem;
    height: 1rem;
    display: inline-block;
  }
  .location-icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/icon-lieu.svg") center / contain no-repeat;
    mask: url("../../icons/icon-lieu.svg") center / contain no-repeat;
    background-color: var(--idasso-paragraph-color);
    transition: background-color 0.3s ease-in-out;
  }
  .clock-icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    -webkit-mask: url("../../icons/icon-horaire.svg") center / contain no-repeat;
    mask: url("../../icons/icon-horaire.svg") center / contain no-repeat;
    background-color: var(--idasso-paragraph-color);
    transition: background-color 0.3s ease-in-out;
  }
  .icon-mes-annonces {
    background-image: url(../../icons/icon-menu-mes-petites-annonces.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .fa-eye,
  .fa-eye-slash {
    color: var(--idasso-paragraph-color, var(--idasso-paragraph-color, #000));
  }
  .fa-eye:hover,
  .fa-eye-slash:hover {
    color: var(--color-hover);
  }
  .input-group button:hover {
    background: #fff;
  }
  /* ---- Components ---- */
  /* FLAG: Form elements */
  input.text,
  input.title,
  input[type="email"],
  input[type="number"],
  input[type="password"],
  input[type="tel"],
  input[type="text"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  input[type="time"],
  select,
  textarea {
    border-width: var(--idasso-input-border-width, 1px);
    border-style: var(--idasso-input-border-style, solid);
    border-color: var(--idasso-input-border-color, var(--idasso-component-input-border));
    border-radius: var(
      --idasso-input-border-radius,
      var(--idasso-component-radius)
    );
    background-color: var(
      --idasso-input-background,
      var(--idasso-component-input-background)
    );
    padding: 1.625rem 1.25rem;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5em;
    width: 100%;
    color: var(--idasso-input-text, var(--idasso-component-input-text));
  }

  /* Keep the native select behaviour while restoring a visible chevron on
   * browsers/themes that remove the native control appearance. */
  select:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23626262' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 0.75rem 0.5rem;
  }

  textarea {
    padding: 1rem 1.25rem;
    min-height: 120px;
  }
  input::placeholder,
  select::placeholder,
  textarea::placeholder {
    font-weight: 400;
    color: var(--color-placeholder);
  }
  input.field-error,
  select.field-error,
  textarea.field-error {
    border-color: var(--color-error);
  }

  input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    padding: 0;
    flex: 0 0 1.125rem;
    border-width: var(--idasso-input-border-width, 1px);
    border-style: var(--idasso-input-border-style, solid);
    border-color: var(--idasso-input-border-color, var(--idasso-component-input-border));
    border-radius: 0.25rem;
    background-color: var(--idasso-component-input-background);
    background-image: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0.75rem;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  input[type="checkbox"]:checked {
    border-color: var(--color-bouton);
    background-color: var(--color-bouton);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5'/%3E%3C/svg%3E");
  }

  input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--color-lien);
    outline-offset: 2px;
  }

  input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.55;
  }

  /* Radios must not inherit the square checkbox treatment. The radial
   * background creates a reliable selected indicator in every browser. */
  input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    padding: 0;
    flex: 0 0 1.125rem;
    border: 2px solid var(--idasso-component-input-border);
    border-radius: 50%;
    border-width: var(--idasso-input-border-width, 1px);
    border-style: var(--idasso-input-border-style, solid);
    border-color: var(--idasso-input-border-color, var(--idasso-component-input-border));
    background-color: var(--idasso-component-input-background);
    background-color: var(--idasso-component-input-background);
    background-image: none;
    cursor: pointer;
    transition:
      border-color 0.2s ease,
      background-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  input[type="radio"]:checked {
    border-color: var(--color-bouton);
    background-color: var(--idasso-component-input-background);
    background-image: radial-gradient(
      circle,
      var(--color-bouton) 0 42%,
      transparent 46%
    );
  }

  input[type="radio"]:focus-visible {
    outline: 2px solid var(--color-lien);
    outline-offset: 2px;
  }

  input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: 0.55;
  }

  input[type="text"],
  input[type="number"],
  input[type="password"] {
    margin-top: 0.25rem;
  }

  input[type="file"] {
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-bouton);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    color: var(--color-bouton);
    background: white;
    font-family: inherit;
  }
  input[type="file"]::file-selector-button,
  input[type="file"]::-webkit-file-upload-button {
    border: 1px solid var(--color-bouton);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    background: var(--color-bouton);
    color: white;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  }
  input[type="file"]:hover {
    border-color: var(--color-hover);
  }
  input[type="file"]:hover::file-selector-button,
  input[type="file"]:hover::-webkit-file-upload-button {
    border-color: var(--color-hover);
    background: var(--color-hover);
  }
  input.ui-autocomplete-loading {
    background: url(/wp-admin/images/spinner.gif) no-repeat;
    background-size: 16px 16px;
    background-position: calc(100% - 16px) center;
  }

  label {
    color: var(--idasso-paragraph-color);

  }

  label p {
    padding-bottom: 0;
    margin-bottom: 0;
    font-weight: 700
  }

  .label_radio p {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
  }

  label span,
  label i {
    font-style: italic;
    font-weight: 400;
    color: var(--color-label-mention);
    font-size: 14px;
    line-height: 23px;
  }

  .card-body label span,
  .card-body label p,
  #liste_des_photos label {
    font-weight: 500;
    font-size: 1rem;
    color: var(--idasso-paragraph-color, var(--idasso-paragraph-color, #000));
    font-style: normal;
  }

  .block-input {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
  }
  .block-input-add {
    gap: 1rem;
  }
  .block-input-add .input-group {
    gap: 1rem;
  }

  .block-checkbox.d-flex {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  form h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .grp-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .input-group {
    position: relative;
    margin-bottom: 0.75rem;
  }

  .input-group .btn,
  .input-group .delete-element {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: unset;
    height: 60px;
    width: 32px;
    padding: 0;
  }

  .grid-input-checkbox {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  form input[type="submit"] {
    margin-top: 2rem;
    border-width: var(--idasso-button-border-width);
    border-style: var(--idasso-button-border-style);
    border-color: var(--idasso-button-border-color);
    background: var(--color-bouton);
    color: var(--idasso-button-text);
  }

  form input[type="submit"]:hover {
    border-color: var(--idasso-button-hover-border);
    background: var(--idasso-button-hover-background);
    border-radius: var(--idasso-button-border-radius-hover);
    color: var(--idasso-button-hover-text);
  }

  .form_members .block:not(.status) {
    padding: 0;
    background: unset;
  }

  .form_members .block .status {
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  #InscriptionAnnuaire #form-save {
    background: var(--color-adherent);
    color: white;
    padding: 1.75rem 2.375rem;
    border-radius: 0.875rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
  }
  #InscriptionAnnuaire #form-save::before {
    content: "";
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    background-image: var(--idasso-icon-anime-info);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }
  @media (max-width: 980px) {
    #InscriptionAnnuaire #form-save {
      flex-direction: column;
    }
  }

  .input-check-label {
    display: flex;
    gap: 8px;
  }
  .input-check-label p {
    display: block;
    width: fit-content;
    padding-left: 1.5rem;
  }
  .block-checkbox-radio,
  .block-checkbox-radio2 {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .block-checkbox-radio label,
  .block-checkbox-radio2 label {
    font-size: 1rem;
    padding-left: 1.75rem;
    color: var(--idasso-paragraph-color, #000);

    a{
      color: var(--color-lien);
    }

    a:hover{
      color: var(--color-hover);
      transform: unset !important;
    }
  }
  .block-checkbox-radio label:has(:not(input)),
  .block-checkbox-radio2 label:has(:not(input)),
  .block-checkbox-radio:has(> input[type="checkbox"]) > label.label_radio {
    padding-left: 0;
  }

  /* When the control is a sibling of the label, the flex gap already creates
   * the spacing. The label must not reserve room for an icon inside itself. */
  .block-checkbox-radio:has(> :is(input[type="checkbox"], input[type="radio"])) > label,
  .block-checkbox-radio2:has(> :is(input[type="checkbox"], input[type="radio"])) > label {
    padding-left: 0;
  }
  /* Profession/city grids place the checkbox immediately before the label;
   * there is no custom checkbox glyph inside the label to make room for. */
  .grid-third-col > .block-checkbox-radio > label.label_radio {
    padding-left: 0;
  }
  .grp-input-radio .input-label > label {
    padding-left: 0;
  }
  .input-check-label > label:not(.col-form-label),
  .input-label > label:not(.col-form-label),
  .input-checkbox-radio > label:not(.col-form-label),
  .sous_thematique_sante_title > label {
    color: var(--idasso-paragraph-color, #000);
  }
  .block-checkbox-radio label.col-form-label {
    font-size: 18px;
  }
  .block-checkbox-radio input,
  .block-checkbox-radio2 input {
    order: -1;
  }
  .block-inputs,
  .line,
  .block-multiservices {
    margin-top: 1rem;
  }
  .col-form-checkbox,
  .col-form-input {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
  }
  .col-form-checkbox:has(input[type="text"]),
  .col-form-input:has(input[type="text"]) {
    margin-top: 0;
    margin-bottom: 0.75rem;
  }
  .col-form-checkbox:has(> input:nth-child(1)):has(
      > span.text-danger:nth-child(2)
    ):not(:has(> :nth-child(3))),
  .col-form-input:has(> input:nth-child(1)):has(
      > span.text-danger:nth-child(2)
    ):not(:has(> :nth-child(3))),
  .col-form-input:has(> input:nth-child(1)):has(
      > span.field-error-span.text-danger:nth-child(2)
    ) {
    grid-template-columns: 1fr;
    display: grid;
  }
  .col-form-input:has(.text-danger) input.field-error,
  .input-group:has(.text-danger) input.field-error {
    border: 1px solid var(--color-error);
  }

  div:has(input[type="checkbox"]):has(label).block-checkbox-radio2 label,
  div:has(input[type="checkbox"]):has(label)[class^="secteur_"] label,
  label[for^="COMMUNE_EXTRA"] {
    font-weight: 400;
  }

  form ul {
    padding: 0;
  }

  @media (min-width: 980px) {
    .grp-input {
      flex-direction: row;
    }
  }
  button:not(.mce-btn > button),
  button[type="submit"],
  button[name="custom_login_form_submit"],
  input[type="button"],
  input[type="reset"],
  form input[type="submit"] {
    cursor: pointer;
  }
  /* FLAG: Button Design */
  button:not(.mce-btn > button),
  .btn,
  input[type="button"],
  input[type="reset"],
  input[type="submit"] {
    border-radius: var(--idasso-button-border-radius);
    padding: 1.25rem;
    font-size: var(--idasso-button-font-size, 1rem);
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition:
      background-color var(--idasso-component-transition),
      border-color var(--idasso-component-transition),
      border-radius var(--idasso-component-transition),
      color var(--idasso-component-transition),
      transform var(--idasso-component-transition);
    width: fit-content;
    /* text-align: center; */
    font-weight: var(--fontWeight-btn);
    text-decoration: none;
  }

  /* Shared directory actions only differ by their colour treatment. */
  .sidebar-adhesion,
  .sidebar-connexion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    margin-top: 1.25rem;
    font-size: 1rem;
    font-weight: var(--fontWeight-btn);
    border-radius: var(--idasso-button-border-radius);
    text-decoration: none;
    cursor: pointer;
    transition:
      background-color var(--idasso-component-transition),
      border-color var(--idasso-component-transition),
      border-radius var(--idasso-component-transition),
      color var(--idasso-component-transition),
      transform var(--idasso-component-transition);
  }
  button:not(.mce-btn > button):not(.btn-danger):not(.delete-element):not(.btn-outline-bleu):not(.btn-later):not(.btn-add-text):not(.btn-add-file):not(.btn-add-diplome):not(.btn-add-contact):hover,
  .btn:not(.btn-danger):not(.delete-element):not(.btn-outline-bleu):not(.btn-later):not(.btn-add-text):not(.btn-add-file):not(.btn-add-diplome):not(.btn-add-contact):hover,
  input[type="button"]:hover,
  input[type="reset"]:hover,
  input[type="submit"]:hover,
  .sidebar-adhesion:hover {
    background: var(--idasso-button-hover-background);
    border-color: var(--idasso-button-hover-border);
    border-radius: var(--idasso-button-border-radius-hover);
    color: var(--idasso-button-hover-text);
  }

  /* A single disabled state covers native controls and button-like links. */
  :is(
      button:not(.mce-btn > button),
      .btn,
      input[type="submit"],
      input[type="button"],
      input[type="reset"]
    ):is(
      :disabled,
      [disabled],
      [aria-disabled="true"],
      .disabled
    ) {
    background: var(--idasso-color-button-disabled);
    border-color: var(--idasso-color-button-disabled);
    color: var(--idasso-button-text);
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
    transform: none;
  }

  #tableau-de-bord .grid-custom .btn {
    padding-left: 3rem;
    position: relative;
  }
  #tableau-de-bord .grid-custom .btn:before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  button:not(.mce-btn > button),
  .btn-fill-bleu,
  .btn-primary,
  input[type="button"],
  input[type="reset"],
  input[type="submit"],
  #InscriptionAnnuaire .alert .btn,
  :is(.alert, .notice) .btn-later,
  .sidebar-adhesion {
    border-width: var(--idasso-button-border-width);
    border-style: var(--idasso-button-border-style);
    border-color: var(--idasso-button-border-color);
    border-radius: var(--idasso-button-border-radius);
    background: var(--color-bouton);
    color: var(--idasso-button-text);
  }
  :is(.btn-fill-bleu, .btn-primary, .btn-outline-bleu, .btn-later)::before {
    background-color: currentColor;
  }
  .btn-outline-bleu,
  .btn-later {
    border: 1px solid var(--color-bouton);
    color: var(--color-bouton);
  }

  .btn-outline-bleu:hover,
  .btn-later:hover,
  #InscriptionAnnuaire .alert .btn-later:hover,
  :is(.alert, .notice) .btn-later:hover {
    background: var(--idasso-button-hover-background);
    color: var(--idasso-button-hover-text);
    border-color: var(--idasso-button-hover-border);
    border-radius: var(--idasso-button-border-radius-hover);
  }
  .btn-outline-bleu:hover::before {
    background-color: currentColor;
  }
  #tableau-de-bord
    .grid-custom
    .subblock:first-of-type
    .btn-outline-bleu:hover::before {
      background-color: currentColor;
  }
  .btn-outline-bleu:hover .site_internet,
  .btn-later:hover .site_internet {
    background-color: currentColor;
  }

  .btn-add-text,
  .btn-add-file,
  .btn-add-diplome,
  .btn-add-contact {
    border: 1px solid var(--color-bouton);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    font-size: 1rem;
    font-style: normal;
    color: var(--color-bouton);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    text-align: left;
  }
  .btn-add-text:hover::before,
  .btn-add-file:hover::before,
  .btn-add-diplome:hover::before,
  .btn-add-contact:hover::before {
    background: var(--color-hover);
  }
  .btn-add-text:hover,
  .btn-add-file:hover,
  .btn-add-diplome:hover,
  .btn-add-contact:hover {
    border: 1px solid var(--color-hover);
    color: var(--color-hover);
  }

  .btn-add-text::before,
  .btn-add-file::before,
  .btn-add-diplome::before,
  .btn-add-contact::before {
    content: "+";
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 20px;
    background: var(--color-bouton);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    transition: background-color 0.3s ease-in-out;
  }
  .btn-danger {
    border-color: var(--color-error);
    background: var(--color-error);
    color: white;
  }
  .btn-danger:hover {
    border-color: var(--color-error);
    background: var(--color-error);
    color: white;
  }
  :is(.btn-danger.delete-element, .btn-danger.delete-element-zones, .delete_file) {
    border: 1px solid var(--color-error);
    border-radius: 9999px;
    background: var(--color-error);
    color: white;
    transition: all 0.3s ease-in-out;
  }
  :is(.btn-danger.delete-element, .btn-danger.delete-element-zones, .delete_file):hover {
    border-color: var(--color-error);
    background: white;
    color: var(--color-error);
  }
  :is(.btn-danger.delete-element, .btn-danger.delete-element-zones, .delete_file):hover i::before {
    color: var(--color-error);
  }
  .btn.delete-element {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-error);
    background: var(--color-error);
    transition: all 0.3s ease-in-out;
  }
  .btn.delete-element:hover {
    background: white;
  }
  .btn.delete-element:hover i::before {
    color: var(--color-error);
  }

  .block-input .btn.delete-element {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
  }

  .input-group:has(input[type="file"]) .btn.delete-element {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
  }
}

/* Shared navigation helpers, alerts, pagination and page containers. */

.idasso {
  /* Back ◀️ */
  .back, .reunion__back {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 24px;
    transition: all 0.3s ease-in-out !important;
    display: inline-block;
    width: fit-content;
    color: var(--color-lien);
  }

  .back:has(.back) {
    padding-left: 0;
  }
  .reunion__back svg{
    display: none;
  }

  .back::before, .reunion__back::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    -webkit-mask: url("../../icons/icon-retour.svg") center / contain no-repeat;
    mask: url("../../icons/icon-retour.svg") center / contain no-repeat;
    background-color: var(--color-lien);
    transition: background-color 0.3s ease-in-out;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  a.back {
    margin-bottom: 0;
  }
  a.back::before {
    content: unset;
    background: none;
    width: unset;
    height: unset;
  }
  .back:hover, .reunion__back:hover {
    padding-left: 32px;
    transform: translateX(0) !important;
  }
  .back:has(.back):hover {
    padding-left: 0;
  }
  .template-mediatheque a.back::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    -webkit-mask: url("../../icons/icon-retour.svg") center / contain no-repeat;
    mask: url("../../icons/icon-retour.svg") center / contain no-repeat;
    background-color: var(--color-lien);
  }

  /* Pagination */
  .pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding-bottom: 50px;
    position: relative;
  }
  .pagination a,
  .pagination span {
    width: 2.875rem;
    height: 2.875rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Montserrat;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.375rem;
    font-family: "Raleway";
  }
  .pagination a {
    border: 1px solid var(--idasso-paragraph-color);
    background: white;
    color: var(--idasso-paragraph-color, var(--idasso-paragraph-color, #000));
  }
  .pagination a:hover {
    background: var(--idasso-paragraph-color);
    color: white;
  }
  .pagination .current-page {
    background: var(--idasso-paragraph-color);
    color: white;
    border: 1px solid var(--idasso-paragraph-color);
  }

  .pagination a.suivant,
  .pagination a.precedent {
    width: calc(50% - 6px);
    padding: 0 12px;
    order: 99;
    position: absolute;
    bottom: 0;
  }
  .pagination a.suivant {
    right: 0;
  }
  .pagination a.precedent {
    left: 0;
  }

  @media (min-width: 600px) {
    .pagination {
      justify-content: end;
      flex-wrap: nowrap;
      gap: 6px;
      padding-bottom: unset;
    }
    .pagination a.suivant,
    .pagination a.precedent {
      order: unset;
      width: auto;
      position: static;
      right: unset;
      left: unset;
      bottom: unset;
    }
  }

  /* Container  */
  .container {
    width: 100%;
    padding-top: 0;
  }
  .container::before {
    background: unset !important;
    width: 0;
  }

  /* Info*/
  .info,
  .info p {
    color: var(--color-pro);

    span {
      color: var(--color-pro);
    }
  }
  .info {
    position: relative;
    margin-bottom: 30px;
    padding-left: 2rem;
  }

  .info::before {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    left: 0;
    top: 4px;
    -webkit-mask: url("../../icons/icon-info-tertiary.svg") center / contain
      no-repeat;
    mask: url("../../icons/icon-info-tertiary.svg") center / contain no-repeat;
    background-color: var(--color-pro);
    transition: background-color 0.3s ease-in-out;
  }

  /* Alert  */

  .status {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.75rem;
    border-radius: var(--border-radius);
  }

  #tableau-de-bord .status {
    max-width: 1350px;
    width: 100%;
  }
  #ModifierMdp .status {
    margin-bottom: 1.5rem;
    margin-top: 0;
  }
  #ModifierMdp :is(p, ul, ol),
  #Supprimer-compte :is(p, ul, ol) {
    margin: 1rem 0;
  }

  .status .btn {
    min-width: 15.625rem;
  }
  @media (min-width: 980px) {
    .status {
      flex-direction: row;
    }
  }
  .status .icon {
    width: 4rem;
    height: 4rem;
  }
  .status .info-text {
    display: flex;
    flex-direction: column;
    width: fit-content;
  }
  .status .info-text .title {
    font-weight: bold;
    font-size: 1.25rem;
  }
  .status-verif {
    background: var(--color-semi-error);
    color: white;
  }
  .status-verif .icon {
    background-image: var(--idasso-icon-anime-search);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .status-obligatoire {
    background: var(--color-pro);
    color: white;
  }
  .block-iban .status-obligatoire {
    background: var(--color-declinaison1);
  }

  .block-iban .status-obligatoire a:nth-of-type(2) {
    border: 1px solid var(--color-bouton);
    color: var(--color-bouton);
    transition: all 0.3s ease-in-out;
    text-align: center;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-style: normal;
    font-weight: var(--fontWeight-btn);
    height: 67.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    width: fit-content;
    padding: 0 1.5rem;
  }
  .block-iban .status-obligatoire a:nth-of-type(2):hover {
    background: var(--color-hover);
    border: 1px solid var(--color-hover);
    color: white;
  }
  .status-obligatoire .icon {
    background-image: var(--idasso-icon-anime-info);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .status-accepted {
    background: var(--color-success);
    color: black;
  }
  .status-accepted .icon {
    background-image: var(--idasso-icon-anime-une-etape);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .status-inactive {
    background: var(--color-error);
    color: white;
  }
  .status-inactive .icon {
    background-image: var(--idasso-icon-anime-alert);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .status-inactive .btn {
    width: fit-content;
  }

  /* Some forms use a full status component while others output only the
   * error-alert wrapper. Both variants must remain visible and legible. */
  #form-error-alert:not(:has(.status)) {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    background: var(--color-error);
    color: white;
  }

  .status-warning {
    background: var(--color-semi-error);
    color: white;
  }
  .status-warning .icon {
    background-image: var(--idasso-icon-anime-alert);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .status-warning .btn {
    width: fit-content;
  }

  /* Message blocks keep a consistent readable foreground on every colored
   * status background, including when a builder adds its own text colors. */
  .status,
  .status :is(h1, h2, h3, h4, h5, h6, p, span, a:not(.btn), li, strong, em),
  #form-error-alert:not(:has(.status)),
  #form-error-alert:not(:has(.status)) :is(h1, h2, h3, h4, h5, h6, p, span, a, li, strong, em) {
    color: white !important;
  }

  /* Tableau checkbox */
  .tableau-checkbox th.p-1 {
    text-align: center;
    font-weight: 400;
  }
  .tableau-checkbox td {
    text-align: center;
  }

  /* ---- Pages ---- */
  #tableau-de-bord,
  .template-mediatheque-list,
  #FicheAnnuaire,
  #Adhesions,
  #MesPetitesAnnonces {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  #tableau-de-bord {
    max-width: 600px;
    padding: 0 1.5rem;
  }
  @media (min-width: 767px) {
    #tableau-de-bord {
      max-width: 100%;
    }
  }
  @media (min-width: 1080px) {
    #tableau-de-bord,
    .template-mediatheque-list,
    #FicheAnnuaire,
    #Adhesions,
    #MesPetitesAnnonces {
      padding: 0 2rem;
      max-width: 1350px;
    }
  }
  @media (min-width: 1350px) {

  }
  .template-mediatheque,
  .template-annonce,
  #InscriptionAnnuaire {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  @media (min-width: 1080px) {
    .template-mediatheque,
    .template-annonce,
    #InscriptionAnnuaire {
      padding: 0 2rem;
    }
  }
  @media (min-width: 1350px) {
    .template-mediatheque,
    .template-annonce,
    #InscriptionAnnuaire {
      padding: 0;
    }
  }

  #Mon-compte,
  #ModifierMdp,
  #Supprimer-compte,
  #Modifier-profil-annuaire,
  #ReglerCotisation,
  #CreaAnnonce,
  #Adhesions {
    max-width: 1000px;
    margin: 0 auto;
  }
  @media (min-width: 1000px) {
    #Mon-compte,
    #ModifierMdp,
    #Supprimer-compte,
    #Modifier-profil-annuaire,
    #ReglerCotisation,
    #CreaAnnonce {
      padding: 0 2rem;
    }
  }
  @media (min-width: 1350px) {
    #Mon-compte,
    #ModifierMdp,
    #Supprimer-compte,
    #Modifier-profil-annuaire,
    #ReglerCotisation,
    #CreaAnnonce {
      padding: 0;
    }
  }

  /* Some IdAsso SVG assets deliberately contain white artwork. Preserve this
   * explicit choice when a feature module recolours generic SVG shapes.
   * Button icons are the exception: they must follow the button text color,
   * including its hover state. */
  :is(
      svg[fill="white" i],
      svg[fill="#fff" i],
      svg[fill="#ffffff" i],
      svg[fill="#fffff" i],
      svg[fill="#fefefe" i],
      svg[fill="#fdfdfd" i]
    ) :is(path, rect, circle, ellipse, polygon, polyline),
  svg :is(path, rect, circle, ellipse, polygon, polyline)[fill="white" i],
  svg :is(path, rect, circle, ellipse, polygon, polyline)[fill="#fff" i],
  svg :is(path, rect, circle, ellipse, polygon, polyline)[fill="#ffffff" i],
  svg :is(path, rect, circle, ellipse, polygon, polyline)[fill="#fffff" i],
  svg :is(path, rect, circle, ellipse, polygon, polyline)[fill="#fefefe" i],
  svg :is(path, rect, circle, ellipse, polygon, polyline)[fill="#fdfdfd" i] {
    fill: #fff !important;
  }

  :is(
      button:not(.mce-btn > button):not(.nav__select),
      .btn:not(.nav__select),
      input[type="submit"],
      input[type="button"],
      input[type="reset"]
    )
    :is(svg, svg :is(path, rect, circle, ellipse, polygon, polyline)) {
    fill: currentColor !important;
  }
}
