:root {
  color-scheme: light;
  --ink: #073c55;
  --deep: #052e45;
  --paper: #f7f5f0;
  --pale: #e9eff1;
  --line: #cad7dc;
  --accent: #c98545;
  --text: #183341;
  --muted: #70818a;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  color-scheme: light;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "freight-neo-pro", sans-serif;
  -webkit-text-size-adjust: 100%;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 5.8vw;
}
.masthead {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand-logo {
  display: block;
  width: 114px;
  height: auto;
}
.eyebrow,
.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: "freightneocnd-pro", sans-serif;
  font-size: 10px;
  font-weight: 500;
}
.eyebrow span {
  display: inline-block;
  background: var(--accent);
  width: 22px;
  height: 1px;
  vertical-align: middle;
  margin-right: 9px;
}
.help-link {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero {
  min-height: 265px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 55px 0 45px;
}
.hero-copy {
  max-width: 660px;
}
.hero h1,
.guide h2 {
  font:
    400 clamp(37px, 4vw, 59px)/0.99 "freight-neo-pro",
    sans-serif;
  letter-spacing: -0.055em;
  color: var(--ink);
  margin: 12px 0 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-copy > p:last-child {
  font-size: 14px;
  line-height: 1.7;
  max-width: 510px;
  color: var(--muted);
}
.hero-index {
  color: var(--accent);
  display: grid;
  justify-items: center;
  gap: 8px;
  font:
    400 11px "freightneocnd-pro",
    sans-serif;
}
.hero-index i {
  height: 55px;
  width: 1px;
  background: var(--accent);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.87fr) minmax(500px, 1.25fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.form-panel {
  padding: 46px 4vw 50px 0;
  border-right: 1px solid var(--line);
}
.preview-panel {
  padding: 35px 0 30px 4vw;
}
.section-heading,
.delivery-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.section-heading > span,
.delivery-heading > span,
.subsection > span {
  color: var(--accent);
  font:
    400 12px "freightneocnd-pro",
    sans-serif;
  padding-top: 5px;
}
.section-heading h2,
.delivery h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.03em;
}
.section-heading p,
.delivery-heading p {
  margin: 6px 0 27px;
  color: var(--muted);
  font-size: 11px;
}
.field-help {
  margin: -10px 0 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  display: block;
  color: var(--ink);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  margin: 0 0 17px;
}
label small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
}
.required {
  color: var(--accent);
  font-size: 11px;
}
input {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #acbdc3;
  border-radius: 0;
  padding: 9px 0 8px;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  outline: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}
input { color-scheme: light; }
input:focus {
  border-color: var(--accent);
  background: #fff8f2;
}
.subsection {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 28px 0 13px;
}
.subsection h3 {
  color: var(--ink);
  margin: 0;
  font-size: 12px;
  letter-spacing: -0.01em;
}
.subsection p {
  margin: 3px 0 0;
  font-size: 10px;
  color: var(--muted);
}
.masters-editor {
  display: grid;
  gap: 9px;
}
.master-row {
  display: grid;
  grid-template-columns: 25px 1fr 24px;
  align-items: center;
  gap: 7px;
}
.master-number {
  color: var(--accent);
  font:
    400 10px "freightneocnd-pro",
    sans-serif;
}
.master-row label {
  margin: 0;
  font-size: 0;
}
.master-row input {
  padding-top: 5px;
}
.remove-master {
  width: 24px;
  height: 24px;
  border: 1px solid #acbdc3;
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  line-height: 1;
  font-size: 16px;
  transition: 0.15s ease;
}
.remove-master:hover {
  color: #fff;
  background: #94494a;
  border-color: #94494a;
}
.add-master-button {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.add-master-button span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-weight: 400;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.preview-toolbar p {
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font:
    400 10px "freightneocnd-pro",
    sans-serif;
}
.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #6c9c76;
  margin-right: 7px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.preview-stage {
  background: var(--pale);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 308px;
  padding: 34px;
  overflow: hidden;
}
.signature-card {
  width: min(100%, 565px);
  min-height: 220px;
  display: grid;
  background: #f9faf9;
  grid-template-columns: 1.12fr 0.88fr;
  box-shadow: 0 15px 35px #23434d18;
  animation: reveal 0.7s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.signature-person {
  padding: 29px 33px 24px;
  background: #07516f;
  color: white;
}
.signature-name {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.signature-role {
  margin: 4px 0 11px;
  opacity: 0.84;
  font-size: 12px;
}
.signature-rule {
  display: block;
  height: 1px;
  opacity: 0.38;
  background: white;
  width: 100%;
  margin-bottom: 18px;
}
.signature-contact {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  line-height: 1.48;
  font-size: 11px;
  margin: 0 0 7px;
}
.signature-contact svg {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signature-contact svg circle {
  fill: currentColor;
  stroke: none;
}
.signature-email {
  font-size: 9px;
  opacity: 0.87;
  margin-bottom: 0;
}
.signature-email svg {
  width: 12px;
  height: 12px;
}
.signature-identity {
  background: #f9faf9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  padding: 22px 14px;
  color: var(--ink);
  gap: 12px;
}
.signature-logo {
  width: 100px;
  height: auto;
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}
.identity-line {
  height: 66px;
  width: 1px;
  background: var(--ink);
  opacity: 0.65;
  flex: none;
}
.signature-masters {
  min-width: 0;
  font:
    700 9px/1.28 "freight-neo-pro",
    sans-serif;
  color: var(--ink);
}
.signature-masters p {
  margin: 0;
  white-space: nowrap;
}
.signature-masters p:last-child::before {
  content: "& ";
}
.signature-masters:empty::after {
  content: "Maîtres\A de l’étude";
  white-space: pre;
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}
.preview-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.preview-note span {
  color: var(--accent);
  font-size: 15px;
}
.preview-note p {
  margin: 0;
  max-width: 360px;
}
.delivery {
  padding: 39px 0 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 30px;
}
.delivery-heading p {
  margin-bottom: 0;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.primary-action,
.secondary-action {
  min-height: 45px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
  transition:
    transform 0.16s ease,
    background 0.16s ease;
}
.primary-action {
  background: var(--ink);
  color: #fff;
}
.secondary-action {
  color: var(--ink);
  background: transparent;
}
.outlook-action {
  color: var(--deep);
  border-color: var(--accent);
  background: #fff8f2;
}
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}
.primary-action:hover {
  background: #0c526d;
}
.secondary-action:hover {
  background: #edf2f2;
}
.outlook-action:hover {
  background: #f7e7d7;
}
.copy-icon {
  font-size: 16px;
  vertical-align: -1px;
  margin-right: 7px;
}
.feedback {
  grid-column: 2;
  color: #497758;
  min-height: 18px;
  margin: 7px 0 0;
  font-size: 10px;
}
.guide {
  border-top: 1px solid var(--line);
  padding: 64px 0 70px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 7vw;
}
.guide h2 {
  font-size: 38px;
  margin-bottom: 0;
}
.guide ol {
  list-style: none;
  padding: 0;
  margin: 7px 0 0;
}
.guide li {
  display: grid;
  grid-template-columns: 44px 1fr;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.guide li span {
  color: var(--accent);
  font:
    400 11px "freightneocnd-pro",
    sans-serif;
}
.guide li p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.guide li strong {
  color: var(--ink);
  display: inline;
  margin-right: 7px;
  font-size: 12px;
}
.guide-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.guide-intro,
.test-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 17px 20px;
  background: #eef3f4;
  border-left: 2px solid var(--accent);
}
.guide-intro > span,
.test-note > span {
  color: var(--ink);
  font: 700 11px "freightneocnd-pro", sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.guide-intro p,
.test-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}
.guide-intro strong,
.test-note strong { color: var(--ink); }
.manual-card {
  min-height: 294px;
  padding: 22px 22px 20px;
  background: #fff;
  border-top: 2px solid var(--ink);
  box-shadow: 0 6px 17px #23434d0b;
}
.manual-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.manual-brand span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 800; }
.manual-brand.gmail span { background: #d85240; }.manual-brand.outlook span { background: #1673bd; }
.manual-brand h3 { margin: 0; color: var(--ink); font-size: 13px; letter-spacing: -.02em; }
.manual-card ol { display: block; list-style: decimal; margin: 0; padding-left: 18px; }
.manual-card li { display: list-item; border: 0; padding: 0 0 8px 3px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.manual-card li::marker { color: var(--accent); font: 400 10px "freightneocnd-pro", sans-serif; }
.manual-card li strong { color: var(--ink); font-size: 10px; margin: 0; }
.manual-tip { margin: 5px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.45; }
.test-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 2px;
  padding: 20px 25px;
  color: #fff;
  background: var(--ink);
  box-shadow: inset 4px 0 0 var(--accent);
}
.test-status { display: flex; align-items: center; gap: 14px; }.test-status > span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid #87b893; border-radius: 50%; color: #a6d6b1; font-size: 15px; }
.test-status p { margin: 0 0 2px; color: #9db6c1; font: 400 9px "freightneocnd-pro", sans-serif; text-transform: uppercase; letter-spacing: .12em; }.test-status h3 { margin: 0; color: #fff; font-size: 15px; letter-spacing: -.025em; }
.test-note ul { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }.test-note li { display: flex; align-items: center; gap: 7px; padding: 0; border: 0; color: #d8e7eb; font-size: 10px; line-height: 1; }.test-note li::before { content: '•'; color: var(--accent); font-size: 16px; }
footer {
  max-width: 1440px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 22px 5.8vw;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  color: var(--muted);
  font:
    400 9px "freightneocnd-pro",
    sans-serif;
  letter-spacing: 0.04em;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px) rotate(0.3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (prefers-color-scheme: dark) {
  html,
  body {
    color-scheme: light !important;
    background: var(--paper) !important;
    color: var(--text) !important;
  }
  input {
    color-scheme: light !important;
    color: var(--text) !important;
    background: transparent !important;
  }
}
@media (max-width: 790px) {
  .app-shell {
    padding: 0 24px;
  }
  .masthead {
    min-height: 82px;
  }
  .eyebrow,
  .help-link {
    display: none;
  }
  .hero {
    min-height: 220px;
    padding: 44px 0;
  }
  .hero-index {
    display: none;
  }
  .workspace {
    display: block;
  }
  .form-panel {
    padding: 35px 0 28px;
    border-right: 0;
  }
  .preview-panel {
    padding: 28px 0;
  }
  .preview-stage {
    min-height: 260px;
    padding: 18px;
  }
  .signature-card {
    min-height: 206px;
  }
  .signature-person {
    padding: 23px 22px;
  }
  .signature-name {
    font-size: 15px;
  }
  .signature-identity {
    gap: 7px;
    padding: 12px 8px;
  }
  .signature-logo {
    width: 70px;
  }
  .identity-line {
    height: 55px;
  }
  .signature-masters {
    font-size: 8px;
  }
  .delivery {
    display: block;
    padding: 33px 0;
  }
  .actions {
    margin-top: 23px;
    display: grid;
    grid-template-columns: 1fr;
  }
  .primary-action,
  .secondary-action {
    width: 100%;
  }
  .feedback {
    margin-top: 8px;
  }
  .guide {
    display: block;
    padding: 50px 0;
  }
  .guide ol {
    margin-top: 28px;
  }
  .guide-details { display: block; margin-top: 34px; }
  .guide-intro,.test-note { grid-template-columns: 1fr; gap: 7px; margin-bottom: 14px; }
  .manual-card { min-height: auto; margin: 14px 0; }
  .test-note { display: block; padding: 19px; }.test-note ul { flex-wrap: wrap; margin-top: 15px; gap: 10px 16px; }
  footer {
    padding: 18px 24px;
    display: block;
    line-height: 2;
  }
  footer span {
    display: block;
  }
  .field-row {
    gap: 14px;
  }
  .hero h1 {
    font-size: 40px;
  }
}
@media (max-width: 450px) {
  .field-row {
    display: block;
  }
  .signature-person {
    padding: 20px 16px;
  }
  .signature-identity {
    gap: 5px;
  }
  .signature-card {
    grid-template-columns: 1.16fr 0.84fr;
  }
  .signature-logo {
    width: 57px;
  }
  .identity-line {
    height: 50px;
  }
  .signature-masters {
    font-size: 7px;
  }
  .preview-stage {
    padding: 10px;
  }
}
