/* ════════════════════════════════════════════════════════════════════════════
   Axydiag — page de signature en ligne (/signer/)
   Feuille autonome : la page ne charge ni style.css ni home.css.
   ════════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
}

:root {
  --pine-900: #23380d;
  --pine-800: #2a4412;
  --pine-600: #2f5a10;
  --gold-500: #c9a35a;
  --cream-50: #f6f9f3;
  --mint-100: #eaf2e1;
  --ink-900: #1c2016;
  --ink-700: #45503f;
  --ink-500: #656e5e;
  --line-soft: #e7e9e1;
  --red-600: #b42318;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink-900); background: var(--cream-50); -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: var(--pine-600); }

.sg-header { background: #fff; border-bottom: 1px solid var(--line-soft); }
.sg-header-inner { max-width: 40rem; margin: 0 auto; padding: 0 1.15rem; height: 3.75rem; display: flex; align-items: center; justify-content: space-between; }
.sg-logo img { display: block; width: auto; height: 26px; }
.sg-tel { font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--pine-800); white-space: nowrap; }

.sg-main { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1.15rem 2rem; }
.sg-main h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 800; color: var(--pine-800); margin: 0 0 .5rem; letter-spacing: -.01em; }
.sg-lead { margin: 0 0 1.25rem; color: var(--ink-700); font-size: 1rem; }

.sg-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 1.25rem 1.15rem; margin: 0 0 1rem; }
.sg-card h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 800; margin: 0 0 1rem; color: var(--ink-900); }
.sg-num { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--pine-900); color: #fff; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; }
.sg-center { text-align: center; padding: 2rem 1.15rem; }
.sg-center p { margin: 0 0 1.1rem; color: var(--ink-700); }

.sg-recap { margin: 0 0 1rem; background: var(--cream-50); border-left: 3px solid var(--gold-500); border-radius: 0 10px 10px 0; padding: .8rem 1rem; }
.sg-recap div { display: flex; gap: .6rem; font-size: .95rem; padding: .12rem 0; }
.sg-recap dt { flex: none; width: 5.2rem; color: var(--ink-500); }
.sg-recap dd { margin: 0; font-weight: 700; color: var(--ink-900); overflow-wrap: anywhere; }

.sg-label { display: block; font-weight: 700; font-size: .92rem; margin: 0 0 .35rem; }
.sg-input { width: 100%; font: inherit; font-size: 1.05rem; padding: .75rem .85rem; border: 1.5px solid #c9cfc0; border-radius: 10px; background: #fff; color: var(--ink-900); margin: 0 0 1rem; }
.sg-input:focus-visible { outline: 3px solid var(--mint-100); border-color: var(--pine-600); }
.sg-input-code { font-size: 1.6rem; font-weight: 800; letter-spacing: .3em; text-align: center; }

.sg-check { display: flex; align-items: flex-start; gap: .7rem; font-size: .98rem; color: var(--ink-900); margin: 0 0 1.1rem; cursor: pointer; }
.sg-check input { flex: none; width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; accent-color: var(--pine-600); }

.sg-btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; font-size: 1.02rem; padding: .9rem 1.2rem; border-radius: 12px; border: 1.5px solid var(--pine-900); background: var(--pine-900); color: #fff; text-decoration: none; cursor: pointer; transition: background .2s; }
.sg-btn:hover:not(:disabled) { background: var(--pine-800); }
.sg-btn:disabled { opacity: .6; cursor: default; }
.sg-btn-ghost { background: #fff; color: var(--pine-900); }
.sg-btn-ghost:hover:not(:disabled) { background: var(--mint-100); }
.sg-btn:focus-visible, .sg-link:focus-visible, .sg-check input:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.sg-link { display: block; margin: .9rem auto 0; padding: .3rem; font: inherit; font-size: .93rem; font-weight: 700; color: var(--pine-600); background: none; border: none; text-decoration: underline; cursor: pointer; }
.sg-link:disabled { color: var(--ink-500); text-decoration: none; cursor: default; }

.sg-note { margin: .8rem 0 0; font-size: .86rem; color: var(--ink-500); text-align: center; }
.sg-note:empty { display: none; }
.sg-sent { margin: 1.25rem 0 1rem; padding: .8rem 1rem; border-radius: 10px; background: var(--mint-100); color: var(--pine-900); font-size: .95rem; }
.sg-msg { margin: -.4rem 0 1rem; font-size: .93rem; font-weight: 700; color: var(--red-600); }
.sg-legal { margin: 1.1rem 0 0; font-size: .82rem; color: var(--ink-500); }

.sg-next { margin: 1.5rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line-soft); }
.sg-next p { margin: 0 0 .9rem; color: var(--ink-900); font-weight: 600; }

.sg-ok { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--mint-100); color: var(--pine-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.sg-ok svg { width: 2rem; height: 2rem; }
.sg-spinner { width: 2.2rem; height: 2.2rem; margin: 0 auto 1rem; border: 3px solid var(--mint-100); border-top-color: var(--pine-600); border-radius: 50%; animation: sg-spin .8s linear infinite; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sg-spinner { animation: none; } }

.sg-footer { max-width: 40rem; margin: 0 auto; padding: 0 1.15rem 2rem; text-align: center; font-size: .82rem; color: var(--ink-500); }
.sg-footer p { margin: 0 0 .3rem; }

@media (min-width: 640px) {
  .sg-main { padding-top: 2.5rem; }
  .sg-main h1 { font-size: 1.9rem; }
  .sg-card { padding: 1.6rem 1.6rem; }
  .sg-logo img { height: 30px; }
}
