@import url("libelex.css");
@import url("modules.css");

/* Mise en page du parcours. Couleurs, typo : libelex.css. Modules : modules.css. */
.ac-page {
  min-height: 100dvh;
  background: var(--ac-bg);
}

.ac-shell-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ac-duck);
}

.ac-shell-header .ac-logo,
.ac-dash-header .ac-logo {
  color: var(--ac-white);
}

.ac-shell-header .ac-logo__mark,
.ac-dash-header .ac-logo__mark {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.ac-shell-header .ac-back {
  color: rgba(255, 255, 255, 0.82);
}

.ac-shell-header .ac-back:hover {
  color: var(--ac-white);
}

.ac-shell-header .ac-progress__meta {
  color: rgba(255, 255, 255, 0.75);
}

.ac-shell-header .ac-progress__pct {
  color: var(--ac-white);
}

.ac-shell-header .ac-progress__track {
  background: rgba(255, 255, 255, 0.22);
}

.ac-shell-header .ac-progress__fill {
  background: var(--ac-medi);
}

.ac-shell-header,
.ac-dash-header {
  box-sizing: border-box;
  width: min(var(--ac-max), 100%);
  margin-inline: auto;
}

.ac-page--contrat .ac-shell-header {
  width: min(var(--ac-max-wide), 100%);
}

.ac-shell-header::before,
.ac-dash-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--ac-duck);
}

.ac-shell-header {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.85rem 1rem 0.8rem;
}

.ac-shell-header__row,
.ac-shell-header__progress,
.ac-shell-header .ac-progress,
.ac-shell-header .ac-progress__meta {
  display: contents;
}

.ac-shell-header .ac-logo {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  margin-bottom: 0.7rem;
  font-weight: 800;
  font-size: 1.65rem;
}

.ac-shell-header .ac-back {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0;
  color: var(--ac-white);
}

.ac-shell-header .ac-back::before {
  content: "←";
  font-size: 1.35rem;
  line-height: 1;
}

.ac-shell-header .ac-progress__meta > span:first-child {
  display: none;
}

.ac-shell-header .ac-progress__track {
  grid-column: 2;
  grid-row: 2;
  height: 8px;
  margin: 0;
  background: var(--ac-white);
}

.ac-shell-header .ac-progress__pct {
  grid-column: 3;
  grid-row: 2;
  margin: 0;
  color: var(--ac-white);
  font-size: 0.95rem;
  font-weight: 700;
}

.ac-main {
  max-width: var(--ac-max);
  margin-inline: auto;
  padding: 1.5rem 1rem 7rem;
}

.ac-page--contrat .ac-shell-header__row,
.ac-page--contrat .ac-shell-header__progress {
  max-width: var(--ac-max-wide);
}

.ac-main--contrat {
  max-width: var(--ac-max-wide);
  padding-inline: clamp(1rem, 3vw, 2rem);
}



.ac-centre {
  text-align: center;
}

.ac-emoji {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  line-height: 1;
}

.ac-emoji--ok {
  color: var(--ac-ok);
}



.ac-simulate {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  border-top: 1px dashed color-mix(in srgb, var(--ac-teal) 40%, transparent);
  background: color-mix(in srgb, var(--ac-duck) 95%, transparent);
  padding: 0.5rem 0.75rem;
  color: var(--ac-white);
}

.ac-simulate__label {
  margin-bottom: 0.375rem;
  text-align: center;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--ac-white) 70%, transparent);
}

.ac-simulate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  max-width: var(--ac-max);
  margin-inline: auto;
}

.ac-simulate__btn {
  padding: 0.375rem 0.625rem;
  border: none;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--ac-white) 10%, transparent);
  font-family: var(--ac-font);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ac-white);
  cursor: pointer;
  text-decoration: none;
}

.ac-simulate__btn:hover {
  background: color-mix(in srgb, var(--ac-white) 20%, transparent);
}

.ac-spacer-top {
  margin-top: 0.5rem;
}

.ac-spacer-lg {
  margin-top: 2rem;
}

.ac-spacer-sm {
  margin-top: 1rem;
}

.ac-stack-sm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ac-stack-sm + .ac-btn,
.ac-stack-sm + .ac-btn-row {
  margin-top: 1.25rem;
}

.ac-stack-md {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ac-inline-strong {
  color: var(--ac-ink);
  font-weight: 600;
}

.ac-q-step {
  display: none;
}

.ac-q-step.is-active {
  display: block;
}

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

.ac-unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--ac-ok-bg);
  color: var(--ac-ok-ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.ac-contract-shell {
  margin-top: 1rem;
}

.ac-view-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem;
  border-radius: var(--ac-radius);
  background: var(--ac-gray);
}

.ac-view-toggle__btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: calc(var(--ac-radius) - 2px);
  background: transparent;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ac-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ac-view-toggle__btn--active {
  background: var(--ac-white);
  color: var(--ac-navy);
  box-shadow: var(--ac-shadow-sm);
}

.ac-contract-guided {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ac-guided-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ac-guided-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.ac-guided-sidebar {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .ac-guided-sidebar {
    flex: 0 0 13.5rem;
    position: sticky;
    top: 0.75rem;
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
    padding-right: 0.25rem;
  }

  .ac-main--contrat .ac-guided-sidebar {
    flex: 0 0 15rem;
  }
}

@media (min-width: 1024px) {
  .ac-main--contrat .ac-guided-sidebar {
    flex: 0 0 16.5rem;
  }
}

.ac-guided-jump {
  display: block;
  margin-bottom: 0.75rem;
}

.ac-guided-jump__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ac-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ac-guided-jump__select {
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .ac-guided-jump {
    display: none;
  }
}

.ac-guided-sidebar__nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .ac-guided-sidebar__nav {
    display: flex;
  }
}

.ac-guided-sideitem {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ac-guided-sideitem:hover {
  background: var(--ac-gray);
}

.ac-guided-sideitem--active {
  border-color: var(--ac-gray);
  background: var(--ac-white);
  box-shadow: var(--ac-shadow-sm);
}

.ac-guided-sideitem__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ac-muted);
}

.ac-guided-sideitem--active .ac-guided-sideitem__label {
  color: var(--ac-ink);
}

.ac-guided-sideitem__title {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ac-ink);
}

.ac-main--contrat .ac-guided-sideitem__title {
  font-size: 0.8125rem;
}

.ac-guided-main {
  flex: 1;
  min-width: 0;
}

.ac-guided-panel {
  min-height: 12rem;
}

.ac-card--guided {
  margin: 0;
}

.ac-guided-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.ac-guided-card__head .ac-guided-edit-row {
  flex: 1 1 auto;
  justify-content: flex-end;
}

@media (max-width: 479px) {
  .ac-guided-card__head .ac-guided-edit-row {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

.ac-guided-card__head .ac-guided-step {
  margin: 0;
}

.ac-guided-edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: flex-end;
}

.ac-guided-edit {
  flex: 0 0 auto;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

.ac-guided-step {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ac-muted);
}

.ac-guided-benefit {
  margin-bottom: 1rem;
  color: var(--ac-ink);
  font-weight: 500;
}

.ac-guided-legal {
  margin-top: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--ac-gray);
  border-radius: 0.5rem;
  background: var(--ac-bg);
  font-size: 0.75rem;
  line-height: 1.6;
}

.ac-main--contrat .ac-guided-legal {
  padding: 1.25rem 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.ac-main--contrat .ac-contract-doc {
  max-height: min(36rem, 70vh);
  padding: 1.5rem 1.75rem;
  font-size: 0.875rem;
}

.ac-guided-section__heading {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ac-heading);
}

.ac-guided-actions {
  margin-top: 0.25rem;
}

.ac-avocate-note {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--ac-teal);
  border-radius: 0 0.5rem 0.5rem 0;
  background: color-mix(in srgb, var(--ac-teal) 8%, var(--ac-white));
}

.ac-avocate-note__label {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ac-teal-dark);
}

.ac-avocate-note__body p {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ac-ink);
}

.ac-avocate-note__body p:last-child {
  margin-bottom: 0;
}

.ac-avocate-notes-host:empty {
  display: none;
}

.ac-main--contrat .ac-avocate-note {
  margin-bottom: 1.25rem;
}


.ac-contract-doc__loading {
  font-style: italic;
}

.ac-btn-row--stack {
  margin-top: 1.5rem;
}

.ac-btn-row:has(#q-save-contrat) {
  flex-wrap: wrap;
}

.ac-btn-row:has(#q-save-contrat) #q-save-contrat {
  flex: 1 1 100%;
}

.ac-page--app {
  padding-bottom: 9rem;
}

.ac-page--app .ac-simulate {
  bottom: 7.35rem;
}


.ac-page--profil {
  background: var(--ac-white);
}


