.exact-profile-popover {
  position: fixed;
  z-index: 1000;
  min-width: 13rem;
  max-width: calc(100vw - 1.5rem);
  overflow: hidden;
}

.exact-profile-popover[hidden] {
  display: none !important;
}

/* Reusable compact secondary action, matching the consumption-detail controls. */
.exact-secondary-action {
  border: 1px solid var(--p-surface-200) !important;
  border-radius: 0.9rem !important;
  background: var(--p-surface-50) !important;
  color: var(--p-slate-600) !important;
  box-shadow: none !important;
}

.exact-secondary-action.p-button {
  min-width: auto !important;
  min-height: auto !important;
  padding: 0.34rem 0.62rem !important;
}

.exact-secondary-action .p-togglebutton-content {
  padding: 0.34rem 0.62rem;
}

.exact-secondary-action:hover {
  border-color: var(--p-surface-300) !important;
  background: var(--p-surface-100) !important;
  color: var(--p-slate-700) !important;
}

/* Reusable inline navigation link, matching the consumption-chart disclosure. */
.exact-secondary-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--p-primary-600);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

.exact-secondary-link:hover,
.exact-secondary-link:focus-visible {
  text-decoration: underline;
}

.p-floatlabel {
  position: relative;
  display: block;
  width: 100%;
}

.p-floatlabel > .p-password {
  position: relative;
  display: block;
  width: 100%;
}

.p-floatlabel > .p-inputtext,
.p-floatlabel > .p-password .p-password-input,
.p-floatlabel > .p-inputnumber .p-inputnumber-input {
  width: 100%;
  min-height: 2.95rem;
  padding: 0.62rem 2.9rem 0.38rem 0.78rem;
  border: 1px solid var(--p-surface-300);
  border-radius: var(--p-border-radius-md, 12px);
  background-color: var(--p-surface-0);
  color: var(--p-text-color, #232323);
  line-height: 1.15;
  box-shadow: none;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.p-floatlabel > .p-inputtext:focus,
.p-floatlabel > .p-password .p-password-input:focus,
.p-floatlabel > .p-inputnumber .p-inputnumber-input:focus {
  border-color: var(--p-primary-500);
}

.p-floatlabel > label {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 0.35rem;
  margin: 0;
  background-color: var(--p-surface-0);
  color: var(--p-text-muted-color, #64748b);
  line-height: 1;
  pointer-events: none;
  transition: top .2s ease, transform .2s ease, color .2s ease, font-size .2s ease;
}

.p-floatlabel.p-floatlabel-on > label,
.p-floatlabel > .p-inputtext:focus + label,
.p-floatlabel > .p-password .p-password-input:focus + label,
.p-floatlabel > .p-inputnumber .p-inputnumber-input:focus + label,
.p-floatlabel > .p-inputtext.p-filled + label,
.p-floatlabel > .p-password .p-password-input.p-filled + label,
.p-floatlabel > .p-inputnumber .p-inputnumber-input.p-filled + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
}

.p-floatlabel > .p-password [data-pc-section="unmaskicon"],
.p-floatlabel > .p-password [data-pc-section="maskicon"] {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: #98a2b3;
  z-index: 2;
}

.p-floatlabel > .p-password .p-password-toggle-mask-icon.is-password-visible,
.p-floatlabel > .p-password .p-password-toggle-unmask-icon.is-password-visible {
  color: #98a2b3;
}

.p-progressbar {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 1.18rem;
  background: var(--p-surface-200);
  border-radius: 9999px;
}

.p-progressbar .p-progressbar-value {
  height: 100%;
  background: var(--p-primary-500);
  border-radius: 9999px 0 0 9999px;
  transition: width 0.3s ease;
}

.p-message {
  border: 0.75px solid transparent;
  border-radius: 0.7rem;
  box-shadow: 0 4px 8px 0 color-mix(in srgb, var(--p-surface-500) 4%, transparent);
}

.p-message-content-wrapper {
  padding: 0;
}

.p-message-content {
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
}

.p-message-text {
  color: var(--p-text-muted-color, #666);
  line-height: 1.45;
}

.p-message-info {
  background: color-mix(in srgb, var(--p-blue-50, #eff6ff) 92%, white);
  border-color: var(--p-blue-200, #bfdbfe);
}

.p-message-success {
  background: color-mix(in srgb, var(--p-green-50, #ecfdf5) 92%, white);
  border-color: var(--p-green-200, #bbf7d0);
}

.p-message-warn {
  background: color-mix(in srgb, var(--p-yellow-50, #fff8ea) 90%, white);
  border-color: var(--p-yellow-200, #fef08a);
}

.p-message-error {
  background: color-mix(in srgb, var(--p-red-50, #fef2f2) 92%, white);
  border-color: color-mix(in srgb, var(--p-red-200, #fecaca) 88%, white);
}

.p-message-error .p-message-text {
  color: var(--p-red-700, #b42318);
}

.pac-container {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
  background: var(--p-surface-0);
  border: 1px solid var(--p-surface-200);
  border-radius: 0.85rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.pac-container[hidden] {
  display: none !important;
}

.pac-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--p-text-color, #232323);
  text-align: left;
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
}

.pac-item:hover,
.pac-item--active {
  background: var(--p-surface-100);
}

.pac-icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.14rem;
  border-radius: 9999px 9999px 9999px 0;
  transform: rotate(-45deg);
  background: var(--p-surface-400);
  position: relative;
}

.pac-icon::after {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border-radius: 9999px;
  background: var(--p-surface-0);
}

.pac-item-query,
.pac-item-secondary {
  grid-column: 2;
}

.pac-item-query {
  font-weight: 500;
}

.exact-address-map-card {
  position: relative;
}

.exact-address-map-shell {
  background: var(--p-surface-0, #ffffff);
}

.exact-address-map-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--p-surface-100, #f6f6f6);
}

.exact-address-map-type-switch {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--p-surface-0, #ffffff) 92%, transparent);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.exact-address-map-type-switch .p-togglebutton {
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--p-text-muted-color, #64748b);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  box-shadow: none;
}

.exact-address-map-type-switch .p-togglebutton-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
}

.exact-address-map-type-switch .p-togglebutton-checked {
  background: var(--p-surface-0, #ffffff);
  color: var(--p-text-color, #0f172a);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.pac-item-secondary {
  color: var(--p-text-muted-color, #666);
  font-size: 0.9rem;
}

.pac-matched {
  font-weight: 700;
}

.p-button.p-button-text {
  background: transparent;
  border-color: transparent;
  color: var(--p-primary-500);
}

.p-button.p-button-text:not(.p-disabled):hover {
  background: color-mix(in srgb, var(--p-primary-500) 8%, transparent);
}

.p-button.p-button-sm {
  min-height: 2.5rem;
  min-width: 2.5rem;
  padding: 0.5rem;
}

.p-hidden {
  display: none !important;
}

.p-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--p-border-radius-full, 9999px);
  background: var(--p-primary-500);
  color: var(--p-primary-contrast-color, #fff);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.p-button .p-button-label {
  font-weight: 600;
}

.p-button svg {
  flex-shrink: 0;
}

.p-button.p-button-rounded {
  border-radius: var(--p-border-radius-full, 9999px);
}

.p-button.p-button-outlined {
  background: var(--p-surface-0);
  color: var(--p-primary-500);
  border-color: var(--p-primary-500);
}

.p-button:not(.p-disabled):hover {
  background: var(--p-primary-600);
}

.p-button-secondary:not(:disabled):hover,
.p-button-secondary:not(:disabled):hover .p-button-label {
  color: #fff !important;
}

.p-button-secondary[data-exact-conso-settings-open]:not(:disabled):hover,
.p-button-secondary[data-exact-conso-settings-open]:not(:disabled):hover svg {
  color: var(--p-primary-500) !important;
}

.p-button.p-button-outlined:not(.p-disabled):hover {
  background: color-mix(in srgb, var(--p-primary-500) 8%, var(--p-surface-0));
}

.p-button.p-disabled,
.p-button:disabled {
  opacity: 0.6;
  cursor: default;
}

[data-exact-profile-move] {
  min-width: 1.9rem;
  width: 1.9rem;
  min-height: 1.9rem;
  height: 1.9rem;
  padding: 0;
  gap: 0;
  border-radius: 0.5rem;
}

[data-exact-profile-move] svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* Reusable close control for dialogs, drawers and panels. */
.exact-panel-close-button {
  display: inline-flex !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: 2.75rem !important;
  min-width: 2.75rem !important;
  height: 2.75rem !important;
  min-height: 2.75rem !important;
  padding: .45rem !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid var(--p-primary-500) !important;
  border-radius: 999px !important;
  background: var(--p-surface-0) !important;
  color: var(--p-primary-500) !important;
  gap: 0 !important;
  line-height: 1 !important;
  overflow: hidden !important;
}

.exact-panel-close-button:hover,
.exact-panel-close-button:focus-visible {
  border-color: var(--p-primary-600) !important;
  background: color-mix(in srgb, var(--p-primary-500) 8%, var(--p-surface-0)) !important;
  color: var(--p-primary-600) !important;
}

.exact-panel-close-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p-primary-500) 25%, transparent);
  outline-offset: 2px;
}

.exact-panel-close-button .exact-panel-close-icon {
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 1.3rem !important;
  height: 1.3rem !important;
  margin: 0 !important;
  color: inherit !important;
  flex: 0 0 auto !important;
  transform: translate(-50%, -50%) !important;
}

.exact-panel-close-button svg [stroke] {
  stroke: currentColor !important;
}

.exact-panel-close-button svg [fill]:not([fill="none"]) {
  fill: currentColor !important;
}

.exact-panel-close-button .p-button-label {
  font-size: 1.65rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

/* Reusable inline information tooltip. */
.exact-info-tooltip {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-left: .35rem;
  vertical-align: middle;
}

.exact-info-tooltip > summary {
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.exact-info-tooltip > summary::-webkit-details-marker { display: none; }

.exact-info-tooltip > summary svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.exact-info-tooltip > summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p-primary-500) 30%, transparent);
  outline-offset: 3px;
}

.exact-info-tooltip > [role="tooltip"] {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + .65rem);
  left: 50%;
  display: none;
  width: min(24rem, calc(100vw - 2rem));
  margin: 0;
  padding: .9rem 1rem;
  transform: translateX(-50%);
  border: 1px solid var(--p-surface-200);
  border-radius: .8rem;
  background: var(--p-surface-0);
  box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .16);
  color: var(--p-text-color);
  font-style: normal;
  text-align: left;
}

.exact-info-tooltip:hover > [role="tooltip"],
.exact-info-tooltip:focus-within > [role="tooltip"],
.exact-info-tooltip[open] > [role="tooltip"] { display: block; }

/* Les titres conservent leur typographie, sans filet décoratif. */
main .category-title {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Barre décorative des écrans du parcours eDPE. */
.exact-simulator-accent {
  display: none !important;
}

@media (max-width: 640px) {
  .exact-info-tooltip > [role="tooltip"] {
    position: fixed;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 1rem;
    width: auto;
    transform: none;
  }
}
