:root {
  --ink: #111112;
  --ink-soft: #28292b;
  --muted: #686a6e;
  --hair: #d1d3d5;
  --line: #e0e2e4;
  --blue: #0064e0;
  --link: #4150f7;
  --chip: #f3f4f5;
  --pink: #ff006a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 18px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  flex: 1 0 auto;
  display: block;
}

/* ---------- colonne marque : en-tete sur mobile ---------- */

.brandpane {
  padding-top: 36px;
  height: 144px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.glyph {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  background: url("/assets/glyph.webp") center / contain no-repeat;
}

.claim {
  display: none;
  font-size: 35.84px;
  font-weight: 400;
  line-height: 64.8px;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0 0 0 100px;
  width: 478px;
  max-width: calc(100% - 140px);
}

.claim .pink {
  color: var(--pink);
}

.collage {
  display: none;
  position: absolute;
  left: 20px;
  top: 296px;
  width: 598px;
  max-width: 100%;
  height: 530px;
  object-fit: cover;
  object-position: center top;
}

.divider {
  display: none;
}

/* ---------- carte de connexion ---------- */

.pane {
  padding: 68px 52px 0;
}

.card {
  width: 100%;
}

.title {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  margin: 0 0 18px;
  letter-spacing: -0.1px;
}

.pill {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  padding: 0 16px;
  min-width: 0;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.pill + .pill {
  margin-top: 12px;
}

.pill:focus-within {
  border-color: var(--muted);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1877f2;
}

.pill input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 38px;
  margin: 11px 0;
  padding: 18px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--ink);
}

.pill input::placeholder {
  color: transparent;
}

.pill label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--muted);
  pointer-events: none;
  transition: top 0.12s ease, font-size 0.12s ease, transform 0.12s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 40px);
}

.pill:focus-within label,
.pill.filled label {
  top: 9px;
  transform: scale(0.8);
  transform-origin: left top;
  font-weight: 400;
}

.pill .reveal {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.pill:not(.filled) .reveal {
  display: none;
}

.primary {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--blue);
  color: #f3f4f5;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 24px;
  transition: opacity 0.15s ease;
}

.primary:disabled {
  opacity: 0.4;
  cursor: default;
}

.textbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin-top: 52px;
  border: 0;
  border-radius: 22px;
  background: #e9eaeb;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.ghost svg {
  width: 16px;
  height: 16px;
  color: #1877f2;
}

.outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 1px solid var(--blue);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--link);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 40px 0 46px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1e21;
}

.brand svg {
  width: 18px;
  height: 12px;
  stroke-width: 2.4;
}

.note {
  min-height: 18px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.note:empty {
  min-height: 0;
  margin: 0;
}

.note.error {
  color: #ed4956;
}

/* ---------- pages internes ---------- */

.pagehead {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.pagehead .glyph {
  width: 32px;
  height: 32px;
  margin: 0;
}

.back {
  display: grid;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

.sheet {
  max-width: 536px;
  margin: 0 auto;
  padding: 40px 52px 80px;
}

.sheet h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}

.sheet .lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 26px;
}

.sheet .lead .who {
  color: var(--ink);
  font-weight: 500;
}

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff8ec;
  border: 1px solid #ffe1ac;
  color: #6b4a00;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 26px;
}

.callout svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 30px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 44px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.field input::placeholder {
  color: #9aa0a6;
  font-weight: 400;
}

.field input:focus {
  border-color: var(--muted);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1877f2;
}

.fineprint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 18px 0 0;
}

.codebank {
  text-align: center;
}

.codebank input {
  text-align: center;
  font-size: 22px;
  letter-spacing: 6px;
  font-weight: 600;
  padding: 0 12px 0 18px;
}

/* ---------- confirmation ---------- */

.done {
  text-align: center;
  padding-top: 64px;
}

.done .tick {
  width: 68px;
  height: 68px;
  margin: 0 auto 26px;
}

.done h1 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}

.done p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto 28px;
}

.done .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 26px;
  margin: 0 auto;
  text-decoration: none;
}

.aside {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

.aside .row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.aside .row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  outline: 0;
}

.aside .row input:focus {
  border-color: var(--muted);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1877f2;
}

.aside .row .primary {
  width: auto;
  height: 48px;
  margin: 0;
  padding: 0 22px;
  border-radius: 24px;
}

/* ---------- pied de page ---------- */

.footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  padding: 24px 58px 20px;
  font-size: 12px;
  line-height: 18px;
  color: #737373;
}

.footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-width: 0;
}

.footer .links a {
  color: #737373;
}

.footer .langrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
}

.footer select {
  border: 0;
  max-width: 100%;
  background: #fff;
  color: #1c1e21;
  font-family: inherit;
  font-size: 12px;
}

.footer .copy {
  text-align: center;
  margin-top: 10px;
}

/* ---------- bureau ---------- */

@media (min-width: 876px) {
  .page {
    display: grid;
    grid-template-columns: minmax(0, 638px) minmax(0, 1fr);
    min-height: 831px;
  }

  .brandpane {
    position: relative;
    height: auto;
    padding: 0;
    border-bottom: 0;
    text-align: left;
    overflow: hidden;
  }

  .brandpane .glyph {
    position: absolute;
    left: 46px;
    top: 46px;
    margin: 0;
  }

  .claim {
    display: block;
    margin-top: 112px;
  }

  .collage {
    display: block;
  }

  .divider {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
  }

  .pane {
    min-width: 0;
    padding: 179px clamp(16px, 4vw, 52px) 0;
  }

  .title {
    margin-bottom: 29px;
  }

  .primary {
    margin-top: 13px;
  }

  .brand {
    margin-top: 27px;
    margin-bottom: 0;
  }

  .footer {
    padding: 16px 49px 20px;
  }

  .card {
    width: 100%;
    max-width: 536px;
    margin: 0 auto;
  }

  .footer .langrow,
  .footer .copy {
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 876px) and (max-width: 1120px) {
  .claim {
    font-size: 28px;
    line-height: 48px;
    margin: 90px 0 0 60px;
    max-width: calc(100% - 100px);
  }

  .collage {
    top: 240px;
    left: 0;
    width: 100%;
    height: 440px;
  }
}

@media (max-width: 359px) {
  .pane {
    padding-left: 32px;
    padding-right: 32px;
  }
  .sheet {
    padding-left: 24px;
    padding-right: 24px;
  }
}
