/* Account modal (Votre compte). Scoped to .acc-* — nothing else on the site is touched. */
.acc-overlay {
  --a-ink: #101828; --a-soft: #475467; --a-line: #d0d5dd; --a-bg: #f6f7f9;
  --a-blue: #1240b8; --a-accent: #ffb000;
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(16, 24, 40, .55); overflow-y: auto;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--a-ink);
}
.acc-overlay[hidden] { display: none; }
body.acc-lock { overflow: hidden; }

.acc-modal { position: relative; width: 100%; max-width: 460px; margin: auto; background: #fff; border-radius: 6px; padding: 26px 26px 22px; outline: none; }
.acc-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 4px; background: transparent; color: var(--a-soft); cursor: pointer;
}
.acc-close:hover { background: var(--a-bg); color: var(--a-ink); }
.acc-title { margin: 0 0 16px; padding-right: 36px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }

/* Connexion / Inscription */
.acc-modes { display: flex; gap: 24px; border-bottom: 1px solid var(--a-line); margin-bottom: 18px; }
.acc-mode {
  padding: 0 0 10px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none;
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--a-soft); cursor: pointer;
}
.acc-mode:hover { color: var(--a-ink); }
.acc-mode[aria-selected="true"] { color: var(--a-blue); border-bottom-color: var(--a-blue); }
.acc-view[hidden], .acc-msg[hidden], .acc-pro[hidden], .acc-note[hidden] { display: none; }

/* Personal / Business choice */
.acc-seg-wrap, .acc-pro { margin: 0; padding: 0; border: 0; min-width: 0; }
.acc-legend { padding: 0; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; }
.acc-seg-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.acc-seg { position: relative; display: block; cursor: pointer; }
.acc-seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.acc-seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--a-line); border-radius: 8px; background: #fff; font-size: .9375rem; font-weight: 700; color: var(--a-soft);
}
.acc-seg:hover span { border-color: var(--a-blue); }
.acc-seg input:checked + span { border-color: var(--a-blue); background: #e6edfc; color: #0a2470; }
.acc-seg input:focus-visible + span { outline: 2px solid var(--a-blue); outline-offset: 2px; }

/* Forms */
.acc-grid { display: flex; flex-wrap: wrap; gap: 0 12px; }
.acc-field { flex: 1 1 100%; margin-bottom: 14px; }
.acc-field--half { flex: 1 1 calc(50% - 6px); min-width: 0; }
.acc-field label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; }
.acc-opt { font-weight: 400; color: var(--a-soft); }
.acc-opt[hidden] { display: none; }
.acc-input { position: relative; display: block; }
.acc-field input {
  display: block; width: 100%; min-height: 46px; padding: 0 12px; font: inherit; font-size: .9375rem; color: var(--a-ink);
  background: #fff; border: 1px solid #98a2b3; border-radius: 4px;
}
.acc-input--pw input { padding-right: 46px; }
.acc-field input:focus { outline: none; border-color: var(--a-blue); box-shadow: 0 0 0 2px rgba(18, 64, 184, .2); }
.acc-field input.is-invalid { border-color: #b42318; }
.acc-eye {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 4px; background: transparent; color: var(--a-soft); cursor: pointer;
}
.acc-eye[aria-pressed="true"] { color: var(--a-blue); }
.acc-hint { display: block; margin-top: 4px; font-size: .75rem; color: var(--a-soft); }

.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 16px; flex-wrap: wrap; }
.acc-check { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--a-soft); cursor: pointer; }
.acc-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--a-blue); flex: none; }
.acc-check--terms { align-items: flex-start; margin: 2px 0 14px; line-height: 1.45; }
.acc-check--terms input { margin-top: 2px; }
.acc-link { font-size: .875rem; color: var(--a-blue); text-decoration: underline; }
.acc-link--btn { padding: 0; border: 0; background: none; font: inherit; font-size: .875rem; cursor: pointer; }
.acc-note { margin: 0 0 14px; font-size: .8125rem; line-height: 1.5; color: var(--a-soft); }
.acc-msg { margin: 0 0 14px; padding: 10px 12px; font-size: .875rem; line-height: 1.45; color: #912018; background: #fef3f2; border: 1px solid #fecdca; border-radius: 4px; }

.acc-submit {
  width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--a-accent); color: var(--a-ink);
  font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer;
}
.acc-submit:hover { background: #ffc233; }
.acc-submit[disabled] { opacity: .65; cursor: wait; }
.acc-switch { margin: 14px 0 0; text-align: center; font-size: .875rem; color: var(--a-soft); }

.acc-modal :focus-visible { outline: 2px solid var(--a-blue); outline-offset: 2px; }
.acc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
  .acc-overlay { padding: 0; align-items: stretch; }
  .acc-modal { max-width: none; min-height: 100%; border-radius: 0; padding: 22px 16px 24px; }
  .acc-field--half { flex-basis: 100%; }
}
.acc-overlay *, .acc-overlay *::before, .acc-overlay *::after { box-sizing: border-box; }
