*,
*::before,
*::after {
  box-sizing: border-box;
}

.place-nowrap {
  white-space: nowrap;
}

body {
  margin: 0;
  height: 100%;
  font-family: var(--ds-font-sans);
  font-weight: 400;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f8f9fa;
}

#root {
  height: 100%;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.app__viewport,
.app__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.app__viewport {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

html.is-scroll-locked,
html.is-scroll-locked body {
  overflow: hidden !important;
}

html.is-scroll-locked .app__viewport,
html.is-scroll-locked .background--scrollable,
html.is-scroll-locked .admin-page.manager-feed,
html.is-scroll-locked .association-posts-panel__feed,
html.is-scroll-locked .admin-access-detail__publication,
html.is-scroll-locked .admin-access-detail__body-content {
  overflow: hidden !important;
}

.app--admin > .app__stage {
  overflow: hidden;
}

.page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}

.app__viewport > .page-transition > .public-footer {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  min-height: var(--ds-button-min-height, 2.5rem);
  border: 1px solid transparent;
  border-radius: 0.375rem;
  padding: var(--ds-button-padding-y, 0.625rem) var(--ds-button-padding-x, 1rem);
  font-family: var(--ds-font-button, var(--ds-font-accent, "Poppins", sans-serif));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: var(--ds-button-line-height, 1.2);
  color: #fff;
  background: var(--ds-color-primary);
  cursor: pointer;
  text-decoration: none;
  vertical-align: middle;
}

.button--compact {
  min-height: 2.1rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.8125rem;
}

/* CTAs / boutons UI : Poppins (accent Remire), line-height stable */
:is(
  .button,
  .rm-btn,
  .public-hero__cta,
  .public-hero__cta-secondary,
  .login__cta,
  .manager-topbar__back,
  .admin-content__back,
  .volunteer-offer-card__cta,
  .header__link
) {
  font-family: var(--ds-font-button, var(--ds-font-accent, "Poppins", sans-serif));
  line-height: var(--ds-button-line-height, 1.2);
}

.button:hover:not(:disabled) {
  background: var(--ds-color-primary-hover);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button--secondary {
  color: #111827;
  background: #f3f4f6;
}

.button--secondary:hover:not(:disabled) {
  background: #e5e7eb;
}

.button--danger {
  background: var(--ds-color-danger);
}

.button--danger:hover:not(:disabled) {
  background: var(--ds-color-danger-hover);
}

.button--accept {
  background: #4169e1;
}

.button--accept:hover:not(:disabled) {
  background: #3558c4;
}

.button--blue {
  background: #2563eb;
}

.button--blue:hover:not(:disabled) {
  background: #1d4ed8;
}

.button--black {
  background: #111827;
  color: #fff;
}

.button--black:hover:not(:disabled) {
  background: #030712;
}

.button--yellow {
  background: #eab308;
  color: #422006;
}

.button--yellow:hover:not(:disabled) {
  background: #ca8a04;
  color: #422006;
}

.config-warning {
  padding: 0.75rem 1.5rem;
  background: #fff7ed;
  border-bottom: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.875rem;
}
