/* Portail Mairie de Touba : feuille de style commune à toutes les pages */
:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --bg: #fffdf8;
  --surface: #ffffff;
  --ink: #1d2a22;
  --muted: #5a665e;
  --line: #e8e1d0;
  --orange: #f77f00;
  --orange-deep: #c96500;
  --green: #009e60;
  --green-deep: #05563a;
  --green-soft: #e3f5ec;
  --orange-soft: #fff0dc;
  --red: #c0392b;
  --blue: #2a6fb0;
  --head: #ffffff;
}

.alert {
  border-left: 4px solid var(--red);
  background: var(--orange-soft);
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-weight: 600
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101612;
    --surface: #18221c;
    --ink: #eef2ea;
    --muted: #a6b3aa;
    --line: #2b3a31;
    --orange: #ff9526;
    --orange-deep: #ffb25e;
    --green: #2fc784;
    --green-deep: #0a3a28;
    --green-soft: #12342a;
    --orange-soft: #3a2a12;
    --red: #ff7b6b;
    --blue: #6aaee8;
    --head: #16201a;
  }
}

:root[data-theme="dark"] {
  --bg: #101612;
  --surface: #18221c;
  --ink: #eef2ea;
  --muted: #a6b3aa;
  --line: #2b3a31;
  --orange: #ff9526;
  --orange-deep: #ffb25e;
  --green: #2fc784;
  --green-deep: #0a3a28;
  --green-soft: #12342a;
  --orange-soft: #3a2a12;
  --red: #ff7b6b;
  --blue: #6aaee8;
  --head: #16201a;
}

*,
*::before,
*::after {
  box-sizing: inherit
}

html {
  height: 100%;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 90px)
}

body {
  margin: 0;
  min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Figtree", system-ui, sans-serif;
}

body>* {
  flex-shrink: 0
}

footer {
  margin-top: auto
}

/* dans une colonne flex, un enfant direct avec margin:auto se rétrécit : on force la largeur */
.wrap,
.card,
.locked {
  width: 100%
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.01em
}

p {
  margin: 0
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px
}

[hidden] {
  display: none !important
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 2px solid transparent;
  font: 600 15px/1 "Figtree", sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, background .15s
}

.btn:active {
  transform: scale(.97)
}

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed
}

.btn-orange {
  background: var(--orange);
  color: #1c1200
}

.btn-orange:hover {
  background: #ff9526
}

.btn-green {
  background: var(--green);
  color: #fff
}

.btn-green:hover {
  background: var(--green-deep)
}

.btn-line {
  border-color: var(--green);
  color: var(--green);
  background: transparent
}

.btn-line:hover {
  background: var(--green);
  color: #fff
}

.btn-white {
  border-color: #fff;
  color: #fff;
  background: transparent
}

.btn-white:hover {
  background: rgba(255, 255, 255, .14)
}

.btn-danger {
  border-color: var(--red);
  color: var(--red);
  background: transparent
}

.btn-danger:hover {
  background: var(--red);
  color: #fff
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px
}

/* header */
.stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--orange) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%)
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--head);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px)
}

.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 0
}

.brand b {
  display: block;
  font: 700 18px/1.1 "Bricolage Grotesque", sans-serif
}

.brand small {
  display: block;
  font-size: 13px;
  color: var(--muted)
}

nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap
}

nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: none;
  border: 0;
  color: inherit;
  font: 500 15px "Figtree", sans-serif;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px
}

nav a:hover {
  background: var(--green-soft)
}

nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 700;
  background: var(--green-soft)
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center
}

.theme {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px
}

/* hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #0a4a33 0%, #0f6b48 62%, #17835a 100%);
  color: #fff;
  overflow: hidden;
  padding: 76px 0 0
}

.hero .wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 210px
}

.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 600
}

.hero h1 b {
  display: block;
  font-weight: 800
}

.hero p.lead {
  max-width: 640px;
  margin: 22px auto 30px;
  font-size: 18px;
  opacity: .94
}

.hero .cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap
}

.scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 230px;
  z-index: 1
}

/* sections */
section.block {
  padding: 72px 0
}

h2.title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  margin-top: 12px
}

.acts {
  display: grid;
  gap: 22px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))
}

.act {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.act:nth-child(even) {
  border-left-color: var(--green)
}

.act h3 {
  font-size: 23px
}

.act p {
  color: var(--muted);
  font-size: 16px;
  flex: 1
}

.act .price {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink)
}

.act .btn {
  align-self: flex-start
}

.groupname {
  margin: 48px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-deep)
}

:root[data-theme="dark"] .groupname {
  color: var(--green)
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .groupname {
    color: var(--green)
  }
}

.steps-band {
  background: var(--green);
  color: #fff;
  padding: 72px 0
}

.steps-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  font-weight: 500
}

.steps-band h2 b {
  font-weight: 800
}

.steps-band .sub {
  text-align: center;
  margin-top: 10px;
  opacity: .95
}

.steps {
  background: var(--surface);
  color: var(--ink);
  max-width: 780px;
  margin: 36px auto 0;
  border-radius: 10px;
  padding: 10px 32px;
  list-style: none;
  counter-reset: s
}

.steps li {
  counter-increment: s;
  padding: 22px 0 22px 58px;
  position: relative;
  border-bottom: 1px solid var(--line)
}

.steps li:last-child {
  border: 0
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #1c1200;
  font: 800 18px/40px "Bricolage Grotesque", sans-serif;
  text-align: center
}

.steps strong {
  display: block;
  font: 700 18px "Bricolage Grotesque", sans-serif;
  margin-bottom: 2px
}

.steps span {
  color: var(--muted)
}

.linklike {
  color: var(--orange-deep);
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px
}

.pay {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px
}

.chip {
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff
}

.chip.om {
  background: #ff7900;
  color: #fff
}

.chip.mm {
  background: #0067b2;
  color: #fff
}

.chip.mtn {
  background: #e8b800;
  color: #1b1500
}

/* views */
.page-head {
  background: var(--green-deep);
  color: #fff;
  padding: 44px 0;
  border-bottom: 6px solid var(--orange)
}

.page-head h1 {
  font-size: clamp(30px, 5vw, 44px)
}

.page-head p {
  margin-top: 10px;
  opacity: .9;
  max-width: 62ch
}

.banner {
  font-size: 14px;
  padding: 10px 0;
  background: var(--orange-soft);
  border-bottom: 1px solid var(--line)
}

.banner.cloud {
  background: var(--green-soft)
}

.banner .wrap {
  display: flex;
  gap: 10px;
  align-items: center
}

.dotlive {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex: none
}

.banner.cloud .dotlive {
  background: var(--green)
}

/* form */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  margin: -22px auto 64px;
  max-width: 780px;
  position: relative
}

.progress {
  display: flex;
  gap: 6px;
  margin-bottom: 26px
}

.progress i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line)
}

.progress i.done {
  background: var(--green)
}

.progress i.cur {
  background: var(--orange)
}

.grid2 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr
}

@media(max-width:620px) {
  .grid2 {
    grid-template-columns: 1fr
  }

  .steps {
    padding: 6px 20px
  }

  .card {
    padding: 20px
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px "Figtree", sans-serif
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--green)
}

.field {
  margin-bottom: 16px
}

.hint {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px
}

.err {
  color: var(--red);
  font-size: 14px;
  margin-top: 4px;
  display: none
}

.field.bad .err {
  display: block
}

.field.bad input,
.field.bad select {
  border-color: var(--red)
}

.row-btn {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap
}

.opts {
  display: grid;
  gap: 12px
}

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--bg)
}

.opt input {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--green)
}

.opt.sel {
  border-color: var(--green);
  background: var(--green-soft)
}

.opt b {
  display: block
}

.dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none
}

.sum {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px
}

.sum div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0
}

.sum .tot {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700
}

.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  border-left: 3px solid var(--orange);
  padding-left: 12px
}

/* receipt */
.receipt {
  border: 2px solid var(--green);
  border-radius: 10px;
  padding: 24px;
  background: var(--surface);
  color: var(--ink)
}

.receipt h3 {
  font-size: 21px;
  margin-bottom: 4px
}

.receipt .no {
  font: 800 30px "Bricolage Grotesque", sans-serif;
  color: var(--green);
  letter-spacing: .02em;
  margin: 6px 0 16px
}

.receipt dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 16px;
  margin: 0
}

@media(max-width:520px) {
  .receipt dl {
    grid-template-columns: 1fr;
    gap: 2px
  }

  .receipt dd {
    margin-bottom: 8px
  }
}

.receipt dt {
  color: var(--muted)
}

.receipt dd {
  margin: 0;
  font-weight: 600
}

.stamp {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: 6px;
  font-weight: 700;
  transform: rotate(-3deg)
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap
}

.b-recue {
  background: var(--orange-soft);
  color: var(--orange-deep)
}

.b-traitement {
  background: #e4eefa;
  color: #1f5a94
}

.b-pret {
  background: var(--green-soft);
  color: var(--green-deep)
}

.b-retire {
  background: #ececec;
  color: #444
}

.b-rejetee {
  background: #fbe4e1;
  color: #9a2a1e
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .b-traitement {
    background: #162c44;
    color: #8cc1f0
  }

  :root:not([data-theme="light"]) .b-pret {
    color: #7fe0b3
  }

  :root:not([data-theme="light"]) .b-retire {
    background: #2a2f2c;
    color: #c8cfca
  }

  :root:not([data-theme="light"]) .b-rejetee {
    background: #43201c;
    color: #ff9d90
  }
}

:root[data-theme="dark"] .b-traitement {
  background: #162c44;
  color: #8cc1f0
}

:root[data-theme="dark"] .b-pret {
  color: #7fe0b3
}

:root[data-theme="dark"] .b-retire {
  background: #2a2f2c;
  color: #c8cfca
}

:root[data-theme="dark"] .b-rejetee {
  background: #43201c;
  color: #ff9d90
}

.timeline {
  list-style: none;
  margin: 18px 0 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--line)
}

.timeline li {
  position: relative;
  padding: 0 0 14px 14px;
  font-size: 15px
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green)
}

.timeline small {
  display: block;
  color: var(--muted)
}

/* centres */
.tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 36px 0 24px
}

.tools input {
  max-width: 360px
}

.centres {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding-bottom: 72px
}

.centre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  border-top: 5px solid var(--green)
}

.centre h3 {
  font-size: 20px;
  margin-bottom: 6px
}

.centre p {
  color: var(--muted);
  font-size: 15px
}

.centre .meta {
  margin-top: 12px;
  font-size: 15px;
  display: grid;
  gap: 4px
}

.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 20px;
  margin-bottom: 12px
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  min-height: 44px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px
}

summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--orange-deep)
}

details[open] summary::after {
  content: "–"
}

details p {
  padding: 0 0 18px;
  color: var(--muted)
}

.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  padding: 48px 0 72px
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px
}

.panel h3 {
  font-size: 22px;
  margin-bottom: 12px
}

.panel p {
  margin-bottom: 8px;
  color: var(--muted)
}

.panel p b {
  color: var(--ink)
}

.ok {
  background: var(--green-soft);
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
  font-weight: 600
}

/* agent */
.kpis {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 28px 0
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px
}

.kpi b {
  display: block;
  font: 800 30px/1.1 "Bricolage Grotesque", sans-serif
}

.kpi span {
  font-size: 14px;
  color: var(--muted)
}

.kpi.k-orange {
  border-top: 4px solid var(--orange)
}

.kpi.k-blue {
  border-top: 4px solid var(--blue)
}

.kpi.k-green {
  border-top: 4px solid var(--green)
}

.kpi.k-grey {
  border-top: 4px solid #9aa39d
}

.kpi.k-red {
  border-top: 4px solid var(--red)
}

.agent-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px
}

.agent-tools input {
  max-width: 300px
}

.agent-tools select {
  max-width: 200px
}

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 64px
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 15px
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle
}

th {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg)
}

tbody tr {
  cursor: pointer
}

tbody tr:hover {
  background: var(--green-soft)
}

tbody tr:focus-visible {
  outline-offset: -3px
}

.locked {
  max-width: 560px;
  margin: 72px auto;
  text-align: center;
  padding: 0 20px
}

.locked h2 {
  margin-bottom: 12px;
  font-size: 28px
}

dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  max-width: 680px;
  width: calc(100% - 28px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35)
}

dialog::backdrop {
  background: rgba(5, 30, 20, .55)
}

.dlg {
  padding: 26px;
  max-height: 86vh;
  overflow: auto
}

.dlg h3 {
  font-size: 24px;
  margin-bottom: 4px
}

.dgrid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 16px;
  margin: 16px 0
}

@media(max-width:520px) {
  .dgrid {
    grid-template-columns: 1fr;
    gap: 0
  }

  .dgrid dd {
    margin-bottom: 8px
  }
}

.dgrid dt {
  color: var(--muted);
  font-size: 15px
}

.dgrid dd {
  margin: 0;
  font-weight: 600
}

.dact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center
}

.dact textarea {
  min-height: 60px
}

footer {
  background: var(--green-deep);
  color: #fff;
  font-size: 15px;
  border-top: 6px solid var(--orange);
  padding: 0;
  margin-top: auto;
}

footer .brand {
  margin: 0;
  color: #fff
}

footer .brand small {
  color: rgba(255, 255, 255, .75)
}

footer .brand img {
  border-radius: 8px;
  background: #fff
}

.foot {
  display: grid;
  gap: 36px 48px;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding-top: 48px;
  padding-bottom: 40px;
}

.foot-brand p {
  margin-top: 16px;
  max-width: 38ch;
  opacity: .85
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.foot-col h3 {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.foot-col a {
  color: #fff;
  text-decoration: none;
  opacity: .9;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 6px;
}

.foot-col a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px
}

.foot-col a[aria-current="page"] {
  opacity: 1;
  font-weight: 700
}

footer :focus-visible {
  outline-color: #fff
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
}

.foot-bottom .wrap {
  display: flex;
  gap: 8px 24px;
  justify-content: space-between;
  flex-wrap: wrap
}

.foot-bottom p {
  opacity: .8
}

@media (max-width:800px) {
  .foot {
    grid-template-columns: 1fr 1fr;
    padding-top: 36px
  }

  .foot-brand {
    grid-column: 1/-1
  }
}

@media (max-width:480px) {
  .foot {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .foot-bottom .wrap {
    flex-direction: column
  }
}

#printZone {
  display: none
}

.doc {
  font-family: Georgia, "Times New Roman", serif;
  color: #000;
  background: #fff;
  padding: 40px;
  line-height: 1.7;
  font-size: 17px
}

.doc .rep {
  text-align: center;
  font-weight: 700;
  letter-spacing: .04em
}

.doc .rep small {
  display: block;
  font-weight: 400;
  letter-spacing: 0
}

.doc h2 {
  text-align: center;
  text-transform: uppercase;
  margin: 32px 0 24px;
  font-size: 22px
}

.doc .sign {
  margin-top: 48px;
  display: flex;
  justify-content: space-between
}

.doc .draft {
  margin-top: 36px;
  font-size: 12px;
  color: #555;
  border-top: 1px solid #aaa;
  padding-top: 8px
}

@media print {
  body>*:not(#printZone) {
    display: none !important
  }

  #printZone {
    display: block !important
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important
  }
}

/* menu : sur ordinateur, .menu est transparent pour la mise en page */
.menu {
  display: contents
}

.brand {
  order: 0
}

nav {
  order: 1
}

.actions {
  order: 2
}

.theme {
  order: 3
}

.burger {
  display: none
}

@media (max-width: 800px) {
  .bar {
    gap: 8px;
    min-height: 64px;
    flex-wrap: wrap
  }

  .brand b {
    font-size: 16px
  }

  .brand small {
    font-size: 12px
  }

  .brand img {
    width: 40px;
    height: 40px
  }

  .theme {
    order: 1
  }

  .burger {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .burger span,
  .burger span::before,
  .burger span::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s, opacity .2s;
  }

  .burger span {
    position: relative
  }

  .burger span::before,
  .burger span::after {
    content: "";
    position: absolute;
    left: 0
  }

  .burger span::before {
    top: -6px
  }

  .burger span::after {
    top: 6px
  }

  .bar.open .burger span {
    background: transparent
  }

  .bar.open .burger span::before {
    top: 0;
    transform: rotate(45deg)
  }

  .bar.open .burger span::after {
    top: 0;
    transform: rotate(-45deg)
  }

  .menu {
    order: 5;
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 6px 0 16px;
    border-top: 1px solid var(--line);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }

  .bar.open .menu {
    display: flex
  }

  nav {
    flex-direction: column;
    gap: 4px;
    width: 100%
  }

  nav a {
    font-size: 17px;
    padding: 0 14px;
    min-height: 48px;
    border-radius: 10px
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%
  }

  .actions .btn {
    min-height: 48px;
    font-size: 16px
  }
}