/* =====================================================================
   SITE ENQUÊTE — feuille de style publique
   Palette : bleu institutionnel dominant, or et rouge en accents discrets.
   Modifier les variables ci-dessous pour ajuster l'identité visuelle.
   ===================================================================== */
:root {
  --ink: #0F2A4A;          /* bleu institutionnel */
  --ink-2: #1F4675;
  --ink-soft: #E7EDF5;
  --paper: #FFFFFF;
  --mist: #F3F5F8;
  --line: #D8DEE7;
  --line-strong: #B9C3D1;
  --text: #19212E;
  --muted: #586478;
  --gold: #E8AE0C;         /* or : sélection, progression */
  --gold-soft: #FFF4D6;
  --red: #C8102E;          /* rouge : filet de marque, obligatoire */
  --ok: #17704A;
  --ok-soft: #E3F3EB;
  --err: #B42318;
  --err-soft: #FDECEA;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --wrap: 72rem;
  --doc: 46rem;
  --tap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--sans);
  color: var(--text);
  background: var(--mist);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--ink-2); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: .75rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.wrap--doc { max-width: calc(var(--doc) + 2rem); }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } .wrap--doc { max-width: calc(var(--doc) + 4rem); } }

/* --- En-tête -------------------------------------------------------- */
.site-head { background: var(--ink); color: #fff; border-top: 4px solid var(--red); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand__mark {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none;
  border: 1.5px solid var(--gold); color: var(--gold); border-radius: 50%;
  font: 700 .85rem/1 var(--serif); letter-spacing: .04em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__text strong { font: 700 .95rem/1.2 var(--sans); letter-spacing: .06em; }
.brand__text span { font-size: .8125rem; color: #C5D2E3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-link { display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; font-size: .9375rem; padding: .5rem .25rem; }
.head-link:hover { color: var(--gold); }
@media (max-width: 30rem) { .head-link span { display: none; } }

/* --- Boutons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .65rem 1.25rem; border-radius: var(--r-sm);
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); color: #fff; }
.btn--primary:disabled { background: var(--line-strong); cursor: not-allowed; }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 3.25rem; padding: .8rem 1.75rem; font-size: 1.0625rem; }
.btn.is-busy { opacity: .75; pointer-events: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* --- Accueil ------------------------------------------------------- */
.hero { background: var(--ink); color: #fff; padding: 3rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::after { /* évocation discrète des réponses d'échelle (1 à 5) */
  content: ""; position: absolute; right: -2rem; bottom: -2rem; width: 22rem; height: 22rem;
  background: radial-gradient(circle, rgba(232,174,12,.22) 0 2px, transparent 2.5px) 0 0 / 28px 28px;
  mask: linear-gradient(135deg, transparent 30%, #000 100%);
  -webkit-mask: linear-gradient(135deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 1; }
.hero__title {
  color: #fff; font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 600; line-height: 1.08;
  letter-spacing: -.01em; max-width: 20ch; margin-bottom: 1.5rem;
  padding-left: 1.25rem; border-left: 4px solid var(--gold);
}
.hero__body { display: grid; gap: 2rem; }
.hero__lead { font-size: 1.1875rem; color: #E2E9F3; max-width: 38rem; margin: 0; }
.hero__facts { margin: 0; display: grid; gap: .9rem; align-content: start; }
.hero__facts div { border-top: 1px solid rgba(255,255,255,.18); padding-top: .6rem; }
.hero__facts dt { font-size: .8125rem; color: #A9BBD3; }
.hero__facts dd { margin: 0; font-weight: 700; }
@media (min-width: 56rem) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero__body { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; padding-left: 1.25rem; }
}

.block { padding-top: 3.5rem; }
.block__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.25rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps__item { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.25rem 1.25rem 4rem; position: relative; }
.steps__item::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.15rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--ink); font: 700 1rem/1 var(--serif); border: 1.5px solid var(--gold);
}
.steps__item h3 { font-size: 1.125rem; margin-bottom: .35rem; }
.steps__item p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

.forms { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) {
  .forms { grid-template-columns: 1fr 1fr; }
  .form-card--consentement { grid-column: 1 / -1; }
}
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem;
}
.form-card--consentement { border-left: 4px solid var(--gold); }
.form-card__head { display: flex; gap: 1rem; align-items: flex-start; }
.form-card__num { font: 600 2.6rem/1 var(--serif); color: var(--ink); min-width: 1.6rem; }
.form-card__title { font-size: 1.35rem; margin: .15rem 0 .25rem; }
.form-card__title a { color: var(--ink); text-decoration: none; }
.form-card__title a:hover { text-decoration: underline; }
.form-card__who, .form-card__meta { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .9375rem; margin: 0; }
.form-card__lead { margin: 0; max-width: 62ch; }
.form-card__foot { margin-top: auto; padding-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; border-top: 1px solid var(--line); }

.privacy { display: grid; gap: 1rem; padding-bottom: 1rem; }
.privacy__icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink-soft); color: var(--ink); }
.privacy__icon .icon { width: 1.5rem; height: 1.5rem; }
.privacy__list { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 62ch; }
.privacy__list li { margin-bottom: .4rem; }
.privacy__note { color: var(--muted); font-size: .9375rem; max-width: 62ch; }
@media (min-width: 48rem) { .privacy { grid-template-columns: 3rem 1fr; gap: 1.5rem; } }

/* --- Partage ------------------------------------------------------- */
.share { display: flex; flex-direction: column; gap: .6rem; }
.share__label { font-weight: 700; color: var(--ink); font-size: .9375rem; }
.share--compact .share__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.share__btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.share__btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: .45rem .85rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper);
  color: var(--ink); font: 700 .875rem/1 var(--sans); text-decoration: none; cursor: pointer;
}
.share__btn:hover { border-color: var(--ink); color: var(--ink); }
.share__btn--wa .icon { color: #1A8D4A; }
.share__btn.is-done { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.share--compact .share__btn span { font-size: .8125rem; }
@media (max-width: 26rem) { .share--compact .share__btn { padding: .45rem .7rem; } }

/* --- Document / formulaire ----------------------------------------- */
.doc { padding: 2rem 0 3rem; }
.doc__head { padding: 1rem 0 1.5rem; }
.doc__tag { display: inline-block; font-size: .875rem; color: var(--muted); margin-bottom: .75rem; }
.doc__title { font-size: clamp(1.65rem, 4.2vw, 2.4rem); line-height: 1.15; }
.doc__lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.doc__intro { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--r); padding: 1.25rem 1.25rem .5rem; margin-bottom: 1rem; }
.doc__intro-title { font-size: 1.2rem; }
.doc__scale { background: var(--gold-soft); border: 1px solid #F1D98B; border-radius: var(--r); padding: .9rem 1.1rem; font-size: .975rem; }
.doc__closing { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin: 2rem 0 1rem; }
.doc__share { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.aside-note { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .75rem; }
.aside-note .icon { margin-top: .2em; color: var(--ink-2); }

.banner { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--r); margin: 1rem 0; border: 1px solid; }
.banner .icon { margin-top: .2em; }
.banner--info { background: var(--ink-soft); border-color: #C6D4E6; color: var(--ink); }
.banner--warn { background: var(--gold-soft); border-color: #F1D98B; color: #5A4300; }
.banner--error { background: var(--err-soft); border-color: #F4B9B3; color: var(--err); }
.banner[hidden] { display: none; }

/* Barre de progression (collante) */
.progress { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.progress__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.75rem; font-size: .875rem; }
.progress__section { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress__count { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress__bar { height: 4px; background: var(--ink-soft); }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }

/* Sections et questions */
.survey { margin-top: 1.5rem; }
.q-section { margin-top: 2.5rem; }
.q-section__title {
  font-size: 1.35rem; padding-bottom: .6rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.q {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  margin: 0 0 1rem; padding: 1.25rem 1rem 1rem; min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
@media (min-width: 48rem) { .q { padding: 1.5rem 1.5rem 1.25rem; } }
.q:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--ink-soft); }
.q.has-error, .likert__row.has-error { border-color: var(--err); }
.q.is-answered .q__num { color: var(--ink); background: var(--gold-soft); border-color: var(--gold); }
.q__legend { display: flex; gap: .75rem; align-items: flex-start; padding: 0; margin-bottom: 1rem; width: 100%; float: left; }
.q__legend + * { clear: both; }
.q__num {
  flex: none; min-width: 2.25rem; height: 2.25rem; padding: 0 .35rem; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
  font: 600 1rem/1 var(--serif); color: var(--muted); transition: all .2s;
}
.q__label { font-weight: 700; font-size: 1.075rem; line-height: 1.45; padding-top: .2rem; }
.q__hint { font-weight: 400; color: var(--muted); }
.q__sublabel { font-weight: 700; color: var(--ink); margin: .75rem 0 .5rem; }
.q__part + .q__part { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--line); }
.q__counter { clear: both; font-size: .875rem; color: var(--muted); margin: -.25rem 0 .6rem; }
.q__counter.is-full { color: var(--ink); font-weight: 700; }
.q__error { display: flex; gap: .4rem; align-items: center; color: var(--err); font-weight: 700; font-size: .9375rem; margin: .6rem 0 0; }
.q__skipped { clear: both; font-size: .9375rem; color: var(--muted); background: var(--mist); border-radius: var(--r-sm); padding: .6rem .8rem; margin: 0; }
.q.is-skipped { background: transparent; border-style: dashed; }
.q.is-skipped .q__label { color: var(--muted); }
.q.is-skipped > :not(legend):not(.q__skipped) { display: none; }

/* Options */
.opts { display: grid; gap: .5rem; clear: both; }
@media (min-width: 40rem) { .q--single .opts, .q--multi .opts, .q__part .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt { position: relative; }
.opt__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__label {
  display: flex; align-items: center; gap: .75rem; min-height: var(--tap); padding: .6rem .85rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; background: var(--paper);
  transition: border-color .15s, background-color .15s; line-height: 1.35;
}
.opt__label:hover { border-color: var(--line-strong); background: #FAFBFD; }
.opt__box {
  flex: none; width: 1.25rem; height: 1.25rem; border: 2px solid var(--line-strong); background: #fff;
  display: grid; place-items: center; transition: all .15s;
}
.opt__input[type="radio"] + .opt__label .opt__box { border-radius: 50%; }
.opt__input[type="checkbox"] + .opt__label .opt__box { border-radius: 4px; }
.opt__input:checked + .opt__label { border-color: var(--ink); background: var(--ink-soft); }
.opt__input:checked + .opt__label .opt__box { border-color: var(--ink); background: var(--ink); }
.opt__input[type="radio"]:checked + .opt__label .opt__box { box-shadow: inset 0 0 0 3px #fff; }
.opt__input[type="checkbox"]:checked + .opt__label .opt__box::after {
  content: ""; width: .35rem; height: .65rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.opt__input:focus-visible + .opt__label { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt__input:disabled + .opt__label { opacity: .45; cursor: not-allowed; }
.opt--other { display: flex; flex-direction: column; gap: .4rem; }
.opt__other {
  font: inherit; min-height: 2.75rem; padding: .5rem .75rem; border: 0; border-bottom: 2px solid var(--line-strong);
  background: var(--mist); border-radius: var(--r-sm) var(--r-sm) 0 0; width: 100%;
}
.opt__other:focus { outline: none; border-bottom-color: var(--ink); background: #fff; }
.opt__other:disabled { opacity: .5; }
.req { color: var(--red); font-weight: 700; }

/* Échelle de Likert : tableau sur grand écran, boutons 1-5 sur mobile */
.likert { clear: both; }
.likert__row { display: grid; gap: .6rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.likert__row--head { display: none; }
.likert__stmt { line-height: 1.45; }
.likert__scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.likert__cell { position: relative; display: block; }
.likert__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.likert__label {
  display: grid; place-items: center; min-height: var(--tap); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; font: 700 1.05rem/1 var(--sans); color: var(--muted); background: #fff; transition: all .15s;
}
.likert__label:hover { border-color: var(--line-strong); color: var(--ink); }
.likert__input:checked + .likert__label { background: var(--ink); border-color: var(--ink); color: #fff; }
.likert__input:focus-visible + .likert__label { outline: 3px solid var(--gold); outline-offset: 2px; }
.likert__row .q__error { grid-column: 1 / -1; }
.likert__ends { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: var(--muted); margin: .25rem 0 0; }
@media (min-width: 48rem) {
  .likert__row { grid-template-columns: minmax(0, 1fr) 17.5rem; align-items: center; gap: 1rem; }
  .likert__row--head { display: grid; border-top: 0; padding: 0 0 .4rem; }
  .likert__row--head .likert__stmt { font-weight: 700; color: var(--ink); font-size: .9rem; }
  .likert__row--head .likert__col { text-align: center; font-weight: 700; color: var(--ink); font-size: .9rem; }
  .likert__row--head { grid-template-columns: minmax(0, 1fr) repeat(5, 3.1rem); column-gap: .35rem; }
  .likert__row--head .likert__stmt { margin-right: .65rem; }
  .likert__scale { grid-template-columns: repeat(5, 3.1rem); }
}

/* Texte libre */
.textarea { clear: both; }
.textarea textarea, .input {
  width: 100%; font: inherit; color: var(--text); padding: .75rem .9rem; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm); background: #fff; min-height: var(--tap);
}
.textarea textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.textarea textarea:focus, .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-soft); }
.input.has-error { border-color: var(--err); }
.textarea__count { text-align: right; font-size: .8125rem; color: var(--muted); margin: .35rem 0 0; font-variant-numeric: tabular-nums; }

/* Envoi */
.submit { margin-top: 1rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 1rem; align-items: stretch; }
.submit__note { display: flex; gap: .55rem; align-items: flex-start; color: var(--muted); margin: 0; font-size: .9375rem; }
.submit__note .icon { margin-top: .2em; }
@media (min-width: 40rem) { .submit { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Fenêtre « questions sans réponse » */
.modal { border: 0; border-radius: var(--r); padding: 1.5rem; max-width: min(30rem, calc(100vw - 2rem)); box-shadow: 0 20px 60px rgba(15,42,74,.28); }
.modal::backdrop { background: rgba(15,42,74,.45); }
.modal h2 { font-size: 1.35rem; }
.modal__actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }

/* --- Consentement -------------------------------------------------- */
.c-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 48rem) { .c-block { padding: 1.5rem 1.75rem; } }
.c-block__title { font-size: 1.25rem; }
.c-block p:last-child, .c-list:last-child { margin-bottom: 0; }
.c-list { padding-left: 1.2rem; margin: 0 0 1em; }
.c-list li { margin-bottom: .4rem; }
.c-block--consent { border: 2px solid var(--ink); }
.id-table { width: 100%; border-collapse: collapse; font-size: .975rem; }
.id-table th, .id-table td { text-align: left; vertical-align: top; padding: .6rem 0; border-top: 1px solid var(--line); }
.id-table tr:first-child th, .id-table tr:first-child td { border-top: 0; }
.id-table th { width: 38%; padding-right: 1rem; color: var(--ink); }
@media (max-width: 34rem) { .id-table th, .id-table td { display: block; width: 100%; } .id-table td { border-top: 0; padding-top: 0; } }
.checks { display: grid; gap: .5rem; margin: 1rem 0 1.5rem; }
.opt--check.has-error .opt__label { border-color: var(--err); }

.sign-table { border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.sign-table__row { display: grid; grid-template-columns: 6.5rem minmax(0, 1.6fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.sign-table__row--head { border-top: 0; background: var(--mist); font-weight: 700; color: var(--ink); }
.sign-table__row > span { padding: .75rem; min-width: 0; }
.sign-table__row > span + span { border-left: 1px solid var(--line); }
.sign-table__k { font-weight: 700; color: var(--ink); }
.sign-table__s { color: var(--muted); }
.help { display: block; font-size: .8125rem; color: var(--muted); margin-top: .35rem; }
@media (max-width: 40rem) {
  .sign-table__row { grid-template-columns: 1fr; }
  .sign-table__row--head { display: none; }
  .sign-table__row > span + span { border-left: 0; }
  .sign-table__k { padding-bottom: 0 !important; }
  .sign-table__p::before, .sign-table__s::before { content: attr(data-col); display: block; font-size: .75rem; color: var(--muted); margin-bottom: .25rem; }
  .sign-table__s:empty { display: none; }
  .sign-table__s { padding-top: 0 !important; }
}
.sigpad { position: relative; display: block; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); background: #FCFDFE; touch-action: none; }
.sigpad.has-error { border-color: var(--err); }
.sigpad.is-signed { border-style: solid; border-color: var(--ink); }
.sigpad__canvas { display: block; width: 100%; height: 9rem; cursor: crosshair; }
.sigpad__hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; pointer-events: none; text-align: center; padding: 1rem; }
.sigpad.is-signed .sigpad__hint { display: none; }
.sigpad__clear { position: absolute; right: .5rem; top: .35rem; font-size: .8125rem; }
.input--date { max-width: 14rem; }

/* --- Confirmation -------------------------------------------------- */
.thanks { text-align: left; padding: 2rem 0 1rem; }
.thanks__mark { width: 4rem; height: 4rem; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 1.25rem; animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.thanks__mark .icon { width: 2rem; height: 2rem; stroke-width: 2.5; }
.thanks__title { font-size: clamp(1.75rem, 4vw, 2.4rem); }
.thanks__lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.thanks__next { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.thanks__home { margin-top: 2rem; }
.thanks__home a { display: inline-flex; gap: .4rem; align-items: center; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.print-copy { margin-top: 2rem; }
.print-copy__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.print-copy__bar h2 { margin: 0; font-size: 1.35rem; }
.print-copy__doc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.print-copy__doc h3 { font-size: 1.2rem; }
.print-copy__doc h4 { font-size: 1.05rem; margin-top: 1.25rem; }
.copy-checks { list-style: none; padding: 0; }
.copy-checks li { display: flex; gap: .5rem; margin-bottom: .4rem; }
.copy-box { font-size: 1.15rem; line-height: 1.3; }
.sign-copy { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.sign-copy th, .sign-copy td { border: 1px solid var(--line-strong); padding: .5rem .6rem; text-align: left; vertical-align: middle; }
.sign-copy thead th { background: var(--mist); }
.sign-copy__img { max-height: 5rem; display: block; }
.copy-ref { font-size: .875rem; color: var(--muted); }

/* --- Pied de page -------------------------------------------------- */
.site-foot { margin-top: 3rem; background: var(--paper); border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; font-size: .9rem; color: var(--muted); }
.site-foot__in p { margin: 0 0 .5rem; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-head, .site-foot, .thanks, .doc__share, .thanks__home, .print-copy__bar button, .progress, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .print-copy { margin: 0; }
  .print-copy__doc { border: 0; padding: 0; }
  .page-form .submit, .page-form .doc__share { display: none; }
}
