/* Aurea Repères : entrée sur la page d'accueil et parcours plein écran */

.rep-entry {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.rep-entry::after {
  content: '';
  position: absolute;
  right: -260px;
  bottom: -410px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(155, 125, 69, .13);
  border-radius: 50%;
  pointer-events: none;
}

.rep-entry-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: 660px;
  margin-inline: auto;
  padding: 112px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: clamp(64px, 10vw, 140px);
}

.rep-signature {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.24rem;
  font-weight: 600;
}

.rep-signature em {
  color: var(--gold-dk);
  font-weight: 500;
}

.rep-signature span {
  padding: 3px 9px;
  border: 1px solid var(--g-ring);
  border-radius: 999px;
  color: var(--gold-dk);
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rep-entry h2 {
  max-width: 11ch;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 5.6vw, 5.6rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.035em;
}

.rep-entry h2 em {
  color: var(--gold-dk);
  font-weight: 500;
}

.rep-entry-lead {
  max-width: 550px;
  margin-top: 26px;
  color: var(--ink2);
  font-size: 1.02rem;
  line-height: 1.75;
}

.rep-entry-action {
  margin-top: 32px;
}

.rep-primary,
.rep-secondary,
.rep-quiet {
  min-height: 48px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.rep-primary {
  border: 1px solid var(--gold-dk);
  background: var(--gold-dk);
  color: #fff;
}

.rep-primary:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.rep-primary:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.rep-secondary {
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--ink);
}

.rep-secondary:hover {
  border-color: var(--gold-dk);
  color: var(--gold-dk);
}

.rep-quiet {
  min-height: 42px;
  padding-inline: 0;
  border: 0;
  background: transparent;
  color: var(--ink2);
}

.rep-quiet:hover {
  color: var(--gold-dk);
}

.rep-entry-privacy {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink3);
  font-size: .76rem;
  line-height: 1.5;
}

.rep-entry-privacy svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--gold-dk);
}

.rep-route {
  position: relative;
  list-style: none;
}

.rep-route::before {
  content: '';
  position: absolute;
  top: 52px;
  bottom: 52px;
  left: 45px;
  width: 1px;
  background: var(--gold-lt);
}

.rep-route li {
  position: relative;
  min-height: 126px;
  padding: 34px 28px 28px 92px;
  border-top: 1px solid var(--border);
}

.rep-route li:last-child {
  border-bottom: 1px solid var(--border);
}

.rep-route li::before {
  content: '';
  position: absolute;
  top: 47px;
  left: 39px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg-white);
  border-radius: 50%;
  background: var(--gold-dk);
  box-shadow: 0 0 0 1px var(--gold-lt);
}

.rep-route small {
  position: absolute;
  top: 41px;
  left: 0;
  color: var(--gold-dk);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.rep-route strong {
  display: block;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.05;
}

body.rep-modal-open {
  overflow: hidden;
}

.rep-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}

.rep-dialog[open] {
  display: block;
}

.rep-dialog::backdrop {
  background: rgba(31, 30, 26, .48);
}

.rep-dialog-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.rep-dialog-head {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 52px);
  border-bottom: 1px solid var(--border);
  background: rgba(247, 245, 240, .97);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rep-dialog-brand {
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.rep-dialog-brand em {
  color: var(--gold-dk);
  font-weight: 500;
}

.rep-dialog-brand span {
  margin-left: 10px;
  padding-left: 11px;
  border-left: 1px solid var(--border2);
  color: var(--ink2);
  font-family: 'Inter', sans-serif;
  font-size: .61rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rep-dialog-head-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rep-local-note {
  color: var(--ink3);
  font-size: .72rem;
}

.rep-close {
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--border2);
  background: transparent;
  color: var(--ink2);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rep-close:hover {
  border-color: var(--gold-dk);
  color: var(--gold-dk);
}

.rep-dialog-layout {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.rep-progress {
  padding: 50px 32px;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
}

.rep-progress h2 {
  margin-bottom: 7px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.rep-progress > p {
  margin-bottom: 30px;
  color: var(--ink3);
  font-size: .75rem;
  line-height: 1.55;
}

.rep-progress ol {
  position: relative;
  list-style: none;
}

.rep-progress ol::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 7px;
  width: 1px;
  background: var(--border2);
}

.rep-progress li {
  position: relative;
  min-height: 62px;
  padding: 0 0 22px 30px;
  color: var(--ink3);
}

.rep-progress li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bg-alt);
  border-radius: 50%;
  background: var(--border2);
  box-shadow: 0 0 0 1px var(--border2);
}

.rep-progress li.is-current,
.rep-progress li.is-done {
  color: var(--ink);
}

.rep-progress li.is-current::before,
.rep-progress li.is-done::before {
  background: var(--gold-dk);
  box-shadow: 0 0 0 1px var(--gold-dk);
}

.rep-progress li strong,
.rep-progress li span {
  display: block;
}

.rep-progress li strong {
  font-size: .78rem;
  font-weight: 650;
}

.rep-progress li span {
  margin-top: 2px;
  font-size: .67rem;
}

.rep-dialog-main {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  padding: 52px clamp(28px, 7vw, 88px) 48px;
}

.rep-step-count {
  margin-bottom: 13px;
  color: var(--gold-dk);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rep-panel h2 {
  max-width: 15ch;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.03em;
}

.rep-panel h2 em {
  color: var(--gold-dk);
  font-weight: 500;
}

.rep-step-intro {
  max-width: 680px;
  margin: 18px 0 26px;
  color: var(--ink2);
  font-size: .94rem;
  line-height: 1.75;
}

.rep-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rep-panel fieldset + fieldset,
.rep-sub-question {
  margin-top: 34px;
}

.rep-panel legend,
.rep-field > label {
  margin-bottom: 12px;
  color: var(--ink2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rep-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border2);
  border-left: 1px solid var(--border2);
}

.rep-choices.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rep-choice {
  position: relative;
}

.rep-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rep-choice label {
  position: relative;
  min-height: 96px;
  padding: 20px 50px 18px 22px;
  border-right: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}

.rep-choice label::after {
  content: '';
  position: absolute;
  top: 19px;
  right: 19px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 4px var(--bg-white);
}

.rep-choice label:hover {
  background: #fbfaf7;
}

.rep-choice input:focus-visible + label {
  outline: 2px solid var(--gold-dk);
  outline-offset: -3px;
}

.rep-choice input:checked + label {
  background: var(--g-tint);
  box-shadow: inset 0 0 0 1px var(--gold-dk);
}

.rep-choice input:checked + label::after {
  border-color: var(--gold-dk);
  background: var(--gold-dk);
}

.rep-choice strong,
.rep-choice small {
  display: block;
}

.rep-choice strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.15;
}

.rep-choice small {
  margin-top: 7px;
  color: var(--ink3);
  font-size: .7rem;
  line-height: 1.55;
}

.rep-civil-toggle {
  min-height: 40px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border2);
  background: transparent;
  color: var(--ink2);
  font-size: .76rem;
  font-weight: 650;
}

.rep-civil-toggle:hover {
  border-color: var(--gold-dk);
  color: var(--gold-dk);
}

.rep-optional {
  max-width: 460px;
  margin-top: 18px;
}

.rep-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rep-field input,
.rep-field select {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  background: var(--bg-white);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}

.rep-field input:focus,
.rep-field select:focus {
  border-color: var(--gold-dk);
  outline: 1px solid var(--gold-dk);
  outline-offset: 0;
}

.rep-optional p,
.rep-form-hint {
  margin-top: 8px;
  color: var(--ink3);
  font-size: .7rem;
  line-height: 1.55;
}

.rep-step-actions {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rep-summary {
  border-top: 1px solid var(--border2);
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(320px, 1.18fr);
  background: var(--bg-white);
}

.rep-summary-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-right: 1px solid var(--border2);
  background: var(--bg-alt);
}

.rep-summary-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rep-summary-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
}

.rep-summary-caption strong,
.rep-summary-caption span {
  display: block;
}

.rep-summary-caption strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
}

.rep-summary-caption span {
  margin-top: 4px;
  color: var(--ink3);
  font-size: .7rem;
  line-height: 1.45;
}

.rep-summary-list {
  padding: 20px 30px;
}

.rep-summary-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.rep-summary-row span,
.rep-summary-row strong {
  display: block;
}

.rep-summary-row span {
  margin-bottom: 3px;
  color: var(--gold-dk);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rep-summary-row strong {
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.5;
}

.rep-summary-note {
  padding-top: 14px;
  color: var(--ink3);
  font-size: .69rem;
  line-height: 1.55;
}

.rep-transfer-layout {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(380px, 1.25fr);
  gap: 44px;
}

.rep-transfer-copy {
  padding-top: 6px;
}

.rep-transfer-copy h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.rep-transfer-copy p {
  margin-top: 10px;
  color: var(--ink2);
  font-size: .82rem;
  line-height: 1.7;
}

.rep-transfer-points {
  margin-top: 26px;
  list-style: none;
}

.rep-transfer-points li {
  padding: 13px 0;
  border-top: 1px solid var(--border);
  color: var(--ink2);
  font-size: .76rem;
  line-height: 1.55;
}

.rep-transfer-points strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.rep-form {
  padding: 28px;
  border: 1px solid var(--border2);
  background: var(--bg-white);
}

.rep-form h3 {
  margin-bottom: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
}

.rep-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rep-form .rep-field + .rep-field,
.rep-form-row + .rep-field,
.rep-field + .rep-consent {
  margin-top: 16px;
}

.rep-consent {
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
}

.rep-consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--gold-dk);
}

.rep-consent label {
  color: var(--ink2);
  font-size: .74rem;
  line-height: 1.55;
}

.rep-consent a {
  color: var(--gold-dk);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rep-form-error {
  min-height: 22px;
  margin-top: 11px;
  color: #9e4039;
  font-size: .75rem;
  line-height: 1.45;
}

.rep-submit {
  width: 100%;
  margin-top: 2px;
}

.rep-submit[aria-busy='true']::before {
  content: '';
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rep-spin .8s linear infinite;
}

.rep-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rep-success {
  max-width: 680px;
  padding: 50px;
  border-top: 3px solid var(--gold-dk);
  background: var(--bg-white);
}

.rep-success-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border: 1px solid var(--gold-lt);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-dk);
  font-size: 1.2rem;
}

.rep-success h2 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
}

.rep-success > p {
  max-width: 570px;
  margin-top: 20px;
  color: var(--ink2);
  font-size: .9rem;
  line-height: 1.7;
}

.rep-reference {
  margin: 28px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rep-reference span {
  color: var(--ink3);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rep-reference strong {
  color: var(--gold-dk);
  font-size: 1rem;
  letter-spacing: .08em;
}

.rep-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rep-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .rep-entry-inner {
    min-height: 0;
    padding: 90px 0;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .rep-entry h2 {
    max-width: 13ch;
  }

  .rep-route {
    max-width: 720px;
  }

  .rep-dialog-layout {
    grid-template-columns: 1fr;
  }

  .rep-progress {
    position: sticky;
    top: 72px;
    z-index: 7;
    padding: 14px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }

  .rep-progress h2,
  .rep-progress > p {
    display: none;
  }

  .rep-progress ol {
    width: max-content;
    display: flex;
  }

  .rep-progress ol::before {
    top: 7px;
    right: 50px;
    bottom: auto;
    left: 50px;
    width: auto;
    height: 1px;
  }

  .rep-progress li {
    width: 150px;
    min-height: 45px;
    padding: 21px 10px 0 0;
  }

  .rep-progress li::before {
    top: 2px;
    left: 2px;
  }

  .rep-dialog-main {
    padding-top: 58px;
  }
}

@media (max-width: 720px) {
  .rep-entry-inner {
    width: calc(100% - 36px);
    padding: 72px 0;
    gap: 48px;
  }

  .rep-entry h2 {
    font-size: clamp(3.1rem, 14vw, 4.2rem);
  }

  .rep-entry-action .rep-primary {
    width: 100%;
  }

  .rep-route::before {
    left: 29px;
  }

  .rep-route li {
    min-height: 100px;
    padding: 24px 8px 22px 66px;
  }

  .rep-route li::before {
    top: 37px;
    left: 23px;
  }

  .rep-route small {
    top: 31px;
  }

  .rep-route strong {
    font-size: 1.9rem;
  }

  .rep-dialog-head {
    min-height: 64px;
    padding-inline: 18px;
  }

  .rep-dialog-brand span,
  .rep-local-note {
    display: none;
  }

  .rep-progress {
    top: 64px;
    padding: 12px 18px 10px;
    overflow: hidden;
  }

  .rep-progress ol {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }

  .rep-progress ol::before {
    top: 7px;
    right: 8%;
    left: 8%;
  }

  .rep-progress li {
    width: auto;
    min-height: 22px;
    padding: 17px 0 0;
  }

  .rep-progress li::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .rep-progress li strong,
  .rep-progress li span {
    display: none;
  }

  .rep-dialog-main {
    padding: 44px 18px 50px;
  }

  .rep-panel h2 {
    font-size: clamp(2.75rem, 13vw, 3.7rem);
  }

  .rep-choices,
  .rep-choices.three,
  .rep-summary,
  .rep-transfer-layout,
  .rep-form-row {
    grid-template-columns: 1fr;
  }

  .rep-summary-visual {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--border2);
  }

  .rep-step-actions {
    align-items: stretch;
  }

  .rep-step-actions > .rep-primary,
  .rep-step-actions > div,
  .rep-step-actions > div .rep-primary,
  .rep-step-actions > div .rep-secondary {
    width: 100%;
  }

  .rep-step-actions > div {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .rep-transfer-layout {
    gap: 28px;
  }

  .rep-form,
  .rep-success {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rep-primary,
  .rep-secondary,
  .rep-quiet {
    transition: none;
  }
}
