.ae-reading-root.ae-font,
.ae-reading-root.ae-font
  :where(
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    a,
    li,
    dt,
    dd,
    label,
    button,
    input,
    textarea,
    select,
    blockquote,
    td,
    th,
    span:not([class*="icon"]):not([class*="fa-"])
  ) {
  font-family: Arial, Helvetica, sans-serif !important;
}
.ae-reading-root.ae-spacing
  :where(p, h1, h2, h3, h4, h5, h6, li, dt, dd, blockquote, td, th) {
  line-height: 1.6 !important;
  letter-spacing: 0.08em !important;
  word-spacing: 0.12em !important;
}
.ae-reading-root.ae-spacing p {
  margin-bottom: 1.5em !important;
}
.ae-reading-root.ae-links a {
  text-decoration: underline !important;
  text-underline-offset: 0.15em !important;
  text-decoration-thickness: max(1px, 0.08em) !important;
}
.ae-reading-root.ae-dark,
.ae-reading-root.ae-dark
  :where(
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    a,
    li,
    ul,
    ol,
    dt,
    dd,
    label,
    button,
    input,
    textarea,
    select,
    blockquote,
    td,
    th,
    div,
    section,
    article,
    header,
    footer,
    nav,
    aside,
    span
  ) {
  color: #fff !important;
  background-color: #151515 !important;
  background-image: none !important;
  border-color: #aaa !important;
  text-shadow: none !important;
}
.ae-reading-root.ae-light-mode,
.ae-reading-root.ae-light-mode
  :where(
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    a,
    li,
    ul,
    ol,
    dt,
    dd,
    label,
    button,
    input,
    textarea,
    select,
    blockquote,
    td,
    th,
    div,
    section,
    article,
    header,
    footer,
    nav,
    aside,
    span
  ) {
  color: #000 !important;
  background-color: #fff !important;
  background-image: none !important;
  border-color: #555 !important;
  text-shadow: none !important;
}
.ae-reading-root:is(.ae-dark, .ae-light-mode) a {
  text-decoration: underline !important;
}

/* Dense, grouped visitor controls; all styling is scoped to the plugin. */
#ae-light {
  --ae-green: #246c48;
  --ae-active: #e4f3ea;
  --ae-ink: #213b30;
  /* Picto fibre retiré : accessibilité prend sa place, au-dessus de profil / GPS. */
  --ae-launcher-top: calc(60vh - 59px);
  position: fixed;
  top: var(--ae-launcher-top);
  bottom: auto;
  transform: none;
  z-index: 1000000;
  font:
    14px/1.45 Arial,
    Helvetica,
    sans-serif !important;
  color: var(--ae-ink) !important;
  text-align: left !important;
  direction: ltr;
  letter-spacing: normal !important;
  text-transform: none !important;
}
#ae-light.ae-right {
  right: max(0px, env(safe-area-inset-right));
  left: auto;
}
#ae-light.ae-left {
  left: max(0px, env(safe-area-inset-left));
  right: auto;
}
#ae-light *,
#ae-light *::before,
#ae-light *::after {
  box-sizing: border-box;
}
#ae-light [hidden] {
  display: none !important;
}
#ae-light button,
#ae-light select,
#ae-light input {
  font: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  transition: none !important;
  animation: none !important;
}
#ae-light button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid #d5e3da !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--ae-ink) !important;
  box-shadow: none !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  cursor: pointer;
  text-decoration: none !important;
  transform: none !important;
}
#ae-light button:is(:hover, :focus, :active) {
  background: #f0f7f3 !important;
  color: var(--ae-ink) !important;
  border-color: #7a9d87 !important;
}
#ae-light button:disabled {
  opacity: 0.45;
  cursor: default;
  background: #fff !important;
  border-color: #d5e3da !important;
}
#ae-light :is(button, select, input):focus-visible {
  outline: 3px solid #246c48 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #fff !important;
}
#ae-light .ae-icon {
  display: block !important;
  flex: 0 0 auto;
  width: 22px !important;
  height: 22px !important;
  color: inherit !important;
  background: transparent !important;
  pointer-events: none;
}
#ae-light button#ae-launcher {
  flex-direction: row;
  gap: 0;
  width: 60px;
  min-width: 60px;
  height: 60px;
  min-height: 60px !important;
  padding: 0 !important;
  line-height: 0 !important;
  overflow: hidden;
  transform: none !important;
  /* Comme Pojo / imaginelespo : ico.jpg 48×48 centré, jamais étiré. */
  background-color: #fed602 !important;
  background-image: var(--ae-launcher-icon) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 48px 48px !important;
  color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1) !important;
}
#ae-light.ae-right #ae-launcher,
#ae-light.ae-left #ae-launcher {
  border-radius: 0 !important;
}
#ae-light #ae-launcher .ae-icon,
#ae-light button#ae-launcher .ae-launcher-ico {
  display: none !important;
}
#ae-light #ae-launcher:is(:hover, :focus, :active) {
  background-color: #fed602 !important;
  background-image: var(--ae-launcher-icon) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 48px 48px !important;
  color: transparent !important;
  border-color: transparent !important;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2) !important;
}
#ae-light .ae-launcher-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#ae-light #ae-panel {
  position: fixed;
  top: max(16px, calc(var(--ae-launcher-top) - 220px));
  bottom: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: calc(100vw - 78px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  background: #fff !important;
  color: var(--ae-ink) !important;
  border: 1px solid #d5e3da !important;
  border-radius: 17px;
  box-shadow: 0 10px 40px #183b2929;
  padding: 0;
}
#ae-light.ae-right #ae-panel {
  right: 68px;
  left: auto;
}
#ae-light.ae-left #ae-panel {
  left: 68px;
  right: auto;
}
#ae-light .ae-panel-header {
  display: block;
  flex-shrink: 0;
  padding: 12px 16px 13px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e3ebe6;
  background: #fff !important;
}
#ae-light .ae-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}
#ae-light .ae-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #cae1d1;
  border-radius: 99px;
  background: #edf7f0 !important;
  color: #286546 !important;
  font-size: 11px !important;
  white-space: nowrap;
}
#ae-light .ae-panel-badge .ae-icon {
  width: 14px !important;
  height: 14px !important;
}
#ae-light .ae-header-actions {
  display: flex;
  align-items: center;
  gap: 1px;
}
#ae-light #ae-reset {
  gap: 4px;
  padding: 7px !important;
  min-height: 44px;
  border-color: transparent !important;
  font-size: 11px !important;
  color: #536e60 !important;
}
#ae-light #ae-reset .ae-icon {
  width: 15px !important;
  height: 15px !important;
}
#ae-light #ae-close {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px !important;
  border-color: transparent !important;
}
#ae-light #ae-close .ae-icon {
  width: 19px !important;
  height: 19px !important;
}
#ae-light #ae-title {
  font:
    700 21px/1.2 Arial,
    sans-serif !important;
  letter-spacing: -0.4px !important;
  text-transform: none !important;
  color: var(--ae-ink) !important;
  margin: 0 !important;
}
#ae-light p {
  font: inherit !important;
  letter-spacing: normal !important;
  color: inherit !important;
  margin: 8px 0;
}
#ae-light #ae-summary {
  font-size: 12px !important;
  color: #586e61 !important;
  margin: 4px 0 0 !important;
}
#ae-light .ae-panel-body {
  display: block;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 14px 16px;
}
#ae-light .ae-control-section {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent !important;
}
#ae-light .ae-control-section:last-of-type {
  margin-bottom: 0;
}
#ae-light h3 {
  font:
    700 11px/1.4 Arial,
    sans-serif !important;
  letter-spacing: 0.7px !important;
  text-transform: uppercase !important;
  color: #586e61 !important;
  margin: 0 0 7px !important;
}
#ae-light .ae-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#ae-light .ae-settings-grid > .ae-settings-card:only-child {
  grid-column: 1/-1;
}
#ae-light .ae-settings-card {
  min-width: 0;
  padding: 10px 8px 8px;
  border: 1px solid #d5e3da;
  border-radius: 12px;
  background: #f8fbf9 !important;
}
#ae-light .ae-setting-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 21px;
  font-size: 12px !important;
  font-weight: 600;
  color: var(--ae-ink) !important;
}
#ae-light .ae-setting-heading .ae-icon {
  width: 17px !important;
  height: 17px !important;
  color: #397957 !important;
}
#ae-light .ae-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  margin-top: 6px;
}
#ae-light .ae-stepper button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 11px !important;
  border-radius: 50% !important;
}
#ae-light .ae-stepper .ae-icon {
  width: 19px !important;
  height: 19px !important;
}
#ae-light output {
  min-width: 33px;
  text-align: center;
  color: var(--ae-ink) !important;
  font:
    700 13px/1.2 Arial,
    sans-serif !important;
}
#ae-light select {
  appearance: auto;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 8px 5px;
  border: 1px solid #c2d5c8 !important;
  border-radius: 9px;
  background: #fff !important;
  color: var(--ae-ink) !important;
  box-shadow: none !important;
  font-size: 12px !important;
}
#ae-light .ae-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
#ae-light button.ae-tool-card {
  position: relative;
  flex-direction: column;
  gap: 5px;
  min-height: 91px;
  width: 100%;
  padding: 11px 5px !important;
  text-align: center !important;
}
#ae-light .ae-tool-card > .ae-icon {
  color: #397957 !important;
}
#ae-light .ae-tool-label {
  display: block;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.25;
  color: inherit !important;
}
#ae-light .ae-tool-state {
  display: block;
  font-size: 10px !important;
  line-height: 1.2;
  color: #5d7466 !important;
}
#ae-light .ae-state-on,
#ae-light .ae-check {
  display: none !important;
}
#ae-light button[aria-pressed="true"],
#ae-light button[aria-pressed="true"]:is(:hover, :focus, :active) {
  background: var(--ae-active) !important;
  color: #164c31 !important;
  border: 2px solid #397957 !important;
  padding: 10px 4px !important;
}
#ae-light button[aria-pressed="true"] .ae-state-off {
  display: none !important;
}
#ae-light button[aria-pressed="true"] .ae-state-on {
  display: inline !important;
  color: #246c48 !important;
}
#ae-light button[aria-pressed="true"] .ae-check {
  display: grid !important;
  place-items: center;
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #246c48 !important;
  color: #fff !important;
  font:
    700 10px/1 Arial,
    sans-serif;
}
#ae-light .ae-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
#ae-light .ae-section-heading h3 {
  margin: 0 !important;
}
#ae-light .ae-section-heading > span {
  font-size: 10px !important;
  color: #687d70 !important;
}
#ae-light .ae-speech {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#ae-light .ae-speech button {
  gap: 8px;
  min-height: 46px;
  font-size: 13px !important;
  font-weight: 600;
}
#ae-light #ae-speak {
  background: #edf7f0 !important;
  border-color: #b9d8c4 !important;
  color: #245d40 !important;
}
#ae-light .ae-speech .ae-icon {
  width: 20px !important;
  height: 20px !important;
}
#ae-light .ae-panel-footer {
  display: block;
  flex-shrink: 0;
  padding: 12px 16px;
  margin: 0;
  background: #f8fbf9 !important;
  border: 0;
  border-top: 1px solid #dfe9e2;
}
#ae-light .ae-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  margin: 0;
  font-size: 12px !important;
  color: #435d4e !important;
  cursor: pointer;
}
#ae-light input[type="checkbox"] {
  appearance: auto;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  accent-color: #246c48;
}
#ae-light .ae-note {
  font-size: 11px !important;
  color: #586e61 !important;
}
#ae-light .ae-disclaimer {
  margin: 5px 0 0 !important;
  font-size: 10px !important;
  line-height: 1.35;
}
#ae-light #ae-status {
  font-size: 12px !important;
  margin: 10px 0 0;
}
#ae-light #ae-status:empty {
  margin: 0;
}
body.ae-reading-root
  #ae-light
  :where(div, section, header, footer, label, p, span) {
  background-color: transparent !important;
  color: var(--ae-ink) !important;
}
body.ae-reading-root #ae-light #ae-panel,
body.ae-reading-root #ae-light .ae-panel-header {
  background: #fff !important;
}
body.ae-reading-root #ae-light .ae-settings-card,
body.ae-reading-root #ae-light .ae-panel-footer {
  background: #f8fbf9 !important;
}
body.ae-reading-root #ae-light #ae-launcher {
  background-color: #fed602 !important;
  background-image: var(--ae-launcher-icon) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 48px 48px !important;
  color: transparent !important;
}
body.ae-reading-root #ae-light #ae-launcher span,
body.ae-reading-root #ae-light #ae-launcher .ae-icon {
  color: transparent !important;
}
body.ae-reading-root #ae-light button[aria-pressed="true"] {
  background: var(--ae-active) !important;
  color: #164c31 !important;
}
.admin-bar #ae-light {
  --ae-launcher-top: calc(60vh - 59px);
}
/* Fibre / éligibilité : picto inactif, retiré de la pile. */
.picto-iframe-toolbar-toggle,
.menu-header .picto-iframe-toolbar-toggle {
  display: none !important;
}
.profil-toolbar-toggle {
  top: 60vh !important;
}
.picto-gps-toolbar-toggle {
  top: calc(60vh + 59px) !important;
}
.ae-menu-launcher {
  position: static;
  display: inline-block;
  margin-right: -5px;
  margin-top: 29px;
  margin-bottom: 15px;
  vertical-align: top;
}
.ae-menu-launcher #ae-launcher-menu {
  appearance: none;
  display: inline-block;
  width: 60px;
  min-width: 60px;
  height: 60px;
  min-height: 60px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  line-height: 0;
  overflow: hidden;
  cursor: pointer;
  background-color: #fed602 !important;
  background-image: var(--ae-launcher-icon) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 48px 48px !important;
  color: transparent !important;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
.ae-menu-launcher #ae-launcher-menu:is(:hover, :focus, :active) {
  background-color: #fed602 !important;
  background-image: var(--ae-launcher-icon) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 48px 48px !important;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
.ae-menu-launcher #ae-launcher-menu .ae-launcher-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (min-width: 768px) {
  .ae-menu-launcher {
    display: none !important;
  }
}
@media (max-width: 767px) {
  #ae-light {
    --ae-launcher-top: calc(60vh - 59px);
    top: var(--ae-launcher-top);
  }
  .admin-bar #ae-light {
    --ae-launcher-top: calc(60vh - 59px);
  }
  #ae-light #ae-launcher {
    width: 60px;
    min-height: 60px !important;
    height: 60px;
    transform: none !important;
  }
  #ae-light.ae-docked-mobile {
    top: auto;
    right: auto;
    left: auto;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
  }
  #ae-light.ae-docked-mobile #ae-launcher {
    display: none !important;
  }
  #ae-light.ae-docked-mobile #ae-panel {
    pointer-events: auto;
  }
  #ae-light #ae-panel {
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    transform: none;
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  #ae-light.ae-right #ae-panel {
    right: 12px;
    left: auto;
  }
  #ae-light.ae-left #ae-panel {
    left: 12px;
    right: auto;
  }
}
@media (max-width: 340px) {
  #ae-light .ae-settings-grid {
    grid-template-columns: 1fr;
  }
  #ae-light .ae-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #ae-light .ae-panel-badge {
    font-size: 10px !important;
  }
  #ae-light #ae-title {
    font-size: 19px !important;
  }
}
@media (forced-colors: active) {
  #ae-light button,
  #ae-light #ae-panel,
  #ae-light .ae-settings-card {
    border: 1px solid ButtonText !important;
  }
  #ae-light button[aria-pressed="true"] {
    outline: 2px solid Highlight !important;
  }
}
@media print {
  #ae-light {
    display: none !important;
  }
}
