:root {
  --form: #dce8ee;
  --paper: #f6f9fa;
  --ink: #16223a;
  --ink-2: #44526b;
  --mist: #c6d3e0;
  --rule: #8db0c2;
  --tampon: #5a3da8;
  --tampon-dark: #4a2f92;
  --refus: #d3262f;
  --ticket: #ffd54a;
  --bezel: #0e1729;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --typed: "Special Elite", "Courier New", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --doc: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--form);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--tampon);
  outline-offset: 3px;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Bandeau */

.bandeau {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.seal {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.seal-mark {
  flex: none;
  width: 44px;
  height: 44px;
}

.seal-text {
  min-width: 0;
}

.seal-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.seal-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 760;
  font-variation-settings: "wdth" 80, "opsz" 24;
  line-height: 1.1;
  white-space: nowrap;
}

.nav {
  display: none;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 620;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.papers {
  display: grid;
  flex: none;
  margin-left: auto;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}

.papers:hover {
  background: var(--form);
}

.papers-main {
  font-size: 0.95rem;
  font-weight: 760;
}

.papers-sub {
  font-family: var(--typed);
  font-size: 0.72rem;
  color: var(--ink-2);
}

.papers.is-connected {
  border-color: var(--tampon);
  color: var(--tampon);
}

@media (max-width: 520px) {
  .seal-text small {
    display: none;
  }

  .seal-text strong {
    font-size: 0.92rem;
    white-space: normal;
  }

  .papers-sub {
    display: none;
  }
}

@media (min-width: 1080px) {
  .nav {
    display: flex;
  }

  .papers {
    margin-left: 12px;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  border-color: var(--tampon);
  background: var(--tampon);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--tampon-dark);
  background: var(--tampon-dark);
}

.btn-quiet {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.btn-quiet:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

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

/* Stamp */

.stamp {
  position: absolute;
  display: grid;
  justify-items: center;
  padding: 0.16em 0.42em 0.08em;
  border: 0.085em solid currentColor;
  border-radius: 0.12em;
  outline: 0.03em solid currentColor;
  outline-offset: -0.16em;
  color: var(--tampon);
  font-family: var(--display);
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  mix-blend-mode: multiply;
  filter: url(#ink);
  pointer-events: none;
  user-select: none;
}

@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: translate(var(--sx, 0), var(--sy, 0)) rotate(-3deg) scale(1.9);
  }
  60% {
    opacity: 0.95;
    transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--rot, -12deg)) scale(0.95);
  }
  100% {
    opacity: 0.92;
    transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--rot, -12deg)) scale(1);
  }
}

@keyframes thud {
  0%,
  100% {
    transform: none;
  }
  35% {
    transform: translateY(4px);
  }
}

/* Hero */

.hero {
  display: grid;
  gap: 28px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 64px;
}

.wall {
  position: relative;
  order: -1;
  margin: 0;
  padding: 8px;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--rule), 0 26px 40px -30px rgb(22 34 58 / 0.55);
  animation: thud 0.24s ease-out 0.9s;
}

.wall img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
}

.stamp-hero {
  --rot: -12deg;
  right: 5%;
  bottom: 9%;
  background: rgb(246 249 250 / 0.8);
  font-size: clamp(2.8rem, 11vw, 6.6rem);
  mix-blend-mode: normal;
  transform: rotate(var(--rot));
  animation: stamp-in 0.46s cubic-bezier(0.2, 0.9, 0.3, 1.15) 0.62s both;
}

@media (min-width: 1080px) {
  .stamp-hero {
    right: auto;
    bottom: 6%;
    left: -11%;
    font-size: clamp(5rem, 7vw, 7rem);
  }
}

.hero h1 {
  margin: 0 0 0.28em;
  font-size: clamp(3.4rem, 15.5vw, 8.4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 75, "opsz" 96;
  line-height: 0.86;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 30ch;
  margin: 0 0 26px;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.4;
}

.ticket {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 18px;
  width: min(100%, 370px);
  padding: 14px 22px 16px;
  border-radius: 3px;
  background: var(--ticket);
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 6px, #000 6.5px) left / 51% 18px repeat-y,
    radial-gradient(circle at 100% 50%, #0000 6px, #000 6.5px) right / 51% 18px repeat-y;
  mask: radial-gradient(circle at 0 50%, #0000 6px, #000 6.5px) left / 51% 18px repeat-y,
    radial-gradient(circle at 100% 50%, #0000 6px, #000 6.5px) right / 51% 18px repeat-y;
}

.ticket-label {
  font-size: 0.9rem;
  font-weight: 760;
}

.led {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 2px 12px;
  border-radius: 3px;
  background: var(--ink);
  color: #ff4a4f;
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" 75, "opsz" 72;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-shadow: 0 0 10px rgb(255 74 79 / 0.6);
}

.ticket-foot {
  font-size: 0.88rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

@media (min-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    min-height: calc(100svh - 66px);
    padding-top: 32px;
  }

  .wall {
    order: 0;
  }

  .wall img {
    aspect-ratio: 4 / 3;
  }
}

/* Sections */

section {
  scroll-margin-top: 70px;
}

.section-head {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto 30px;
  padding: 0 var(--gutter);
}

.section-head h2,
.faq h2 {
  margin: 0 0 0.3em;
  font-size: clamp(2.4rem, 7.5vw, 4.4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 75, "opsz" 96;
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.section-head p {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-2);
}

/* Evidence */

.pieces {
  padding: 68px 0 56px;
  background: var(--ink);
  color: var(--paper);
}

.pieces:focus {
  outline: none;
}

.pieces .section-head p {
  color: var(--mist);
}

.pieces-body {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.phone {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  border: 10px solid var(--bezel);
  border-radius: 34px;
  background: #000;
  box-shadow: 0 0 0 1px rgb(198 211 224 / 0.18), 0 34px 60px -34px #000;
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  touch-action: pan-y;
}

.screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgb(246 249 250 / 0.94);
  translate: -50% -50%;
}

.play::before {
  content: "";
  margin-left: 7px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 26px solid var(--ink);
}

.poster:hover .play {
  background: var(--ticket);
}

.poster-cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.78));
  font-size: 0.95rem;
  font-weight: 650;
  text-align: left;
}

.removed {
  display: grid;
  place-content: center;
  gap: 14px;
  height: 100%;
  padding: 24px;
  color: var(--mist);
  text-align: center;
}

.removed a {
  color: var(--paper);
  font-weight: 700;
}

.tag {
  position: absolute;
  z-index: 2;
  top: -24px;
  left: -14px;
  padding: 6px 12px;
  border-radius: 2px;
  background: var(--refus);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 760;
  transform: rotate(-4deg);
  box-shadow: 0 8px 14px -8px #000;
}

.dossier {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px 16px;
  width: min(100%, 520px);
  padding: 18px;
  border-radius: var(--doc);
  background: var(--paper);
  color: var(--ink);
  touch-action: pan-y;
}

.dossier > img {
  width: 104px;
  height: 104px;
  border-radius: 3px;
  object-fit: cover;
}

.dossier-head {
  align-self: center;
  min-width: 0;
}

.dossier h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  font-variation-settings: "wdth" 80, "opsz" 48;
  line-height: 1;
}

.dossier-head p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.dossier dl {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 0.95rem;
}

.dossier dt {
  color: var(--ink-2);
}

.dossier dd {
  margin: 0;
  font-family: var(--typed);
  overflow-wrap: anywhere;
}

.dossier dd a {
  color: var(--tampon);
}

.statement {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--rule);
  font-family: var(--typed);
  font-size: 1.05rem;
}

.dossier .stamp {
  --rot: 9deg;
  top: 12px;
  right: 12px;
  font-size: 1.35rem;
  transform: rotate(var(--rot));
}

.pieces-nav {
  display: flex;
  gap: 12px;
}

.strip {
  display: flex;
  gap: 10px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 30px auto 0;
  padding: 6px var(--gutter) 12px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--ink-2) transparent;
}

.strip li {
  flex: none;
  scroll-snap-align: start;
}

.strip button {
  display: grid;
  gap: 4px;
  width: 76px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mist);
  font: inherit;
  font-size: 0.78rem;
  text-align: center;
  cursor: pointer;
}

.strip img {
  width: 76px;
  height: 76px;
  border: 3px solid transparent;
  border-radius: 5px;
  object-fit: cover;
}

.strip button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip button[aria-current="true"] {
  color: var(--ticket);
}

.strip button[aria-current="true"] img {
  border-color: var(--ticket);
}

@media (min-width: 1080px) {
  .pieces-body {
    grid-template-columns: minmax(0, 1fr) 360px minmax(0, 1fr);
    align-items: center;
    gap: 40px;
  }

  .phone {
    grid-column: 2;
    grid-row: 1;
  }

  .dossier {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }

  .pieces-nav {
    grid-column: 3;
    grid-row: 1;
    flex-direction: column;
    justify-self: start;
  }
}

/* Originals */

.originaux {
  padding: 76px 0;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: 18px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
}

.legend {
  display: flex;
  flex-direction: column;
  padding: 8px 8px 12px;
  border-radius: 4px;
  background: var(--paper);
  scroll-margin-top: 90px;
}

.legend img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  object-fit: cover;
}

.legend h3 {
  margin: 10px 0 0;
  font-size: 1.04rem;
  font-weight: 760;
  font-variation-settings: "wdth" 85, "opsz" 24;
  line-height: 1.15;
}

.legend-meta {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-family: var(--typed);
  font-size: 0.82rem;
}

.legend-bio {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.legend a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 10px;
  color: var(--tampon);
  font-size: 0.88rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.legend button {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 0 0;
  border: 0;
  background: none;
  color: var(--tampon);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legend:target {
  outline: 3px solid var(--tampon);
}

.b12 {
  padding: 76px 0;
  border-top: 1px solid var(--rule);
}

.b12-body {
  display: grid;
  gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.b12-main {
  min-width: 0;
}

.permit-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 26px 40px -30px rgb(22 34 58 / 0.55);
}

.permit-band {
  display: grid;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
}

.permit-band small {
  color: var(--mist);
  font-size: 0.74rem;
}

.permit-band strong {
  font-size: 1.4rem;
  font-weight: 800;
  font-variation-settings: "wdth" 78, "opsz" 32;
  line-height: 1.1;
}

.permit-main {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.permit-photo {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--rule);
}

.permit-blank {
  background:
    radial-gradient(circle at 50% 38%, var(--rule) 0 19%, transparent 19.5%),
    radial-gradient(ellipse 38% 32% at 50% 100%, var(--rule) 0 98%, transparent 100%),
    var(--mist);
}

.permit-refused {
  --rot: -18deg;
  top: 50%;
  left: 50%;
  color: var(--refus);
  background: rgb(246 249 250 / 0.75);
  font-size: 0.95rem;
  mix-blend-mode: normal;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--rot));
}

.permit-card dl {
  display: grid;
  gap: 3px;
  margin: 0;
  font-size: 0.82rem;
}

.permit-card dt {
  color: var(--ink-2);
}

.permit-card dd {
  margin: 0 0 4px;
  font-family: var(--typed);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.permit-row {
  position: relative;
}

.permit-stamps {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 16px 14px;
  list-style: none;
  font-size: 0.74rem;
}

.permit-stamps li {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--ink-2);
}

.permit-stamps .box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 3px;
}

.permit-stamps li[data-on="true"] {
  color: var(--ink);
}

.permit-stamps li[data-on="true"] .box {
  border-color: var(--tampon);
  background: var(--tampon);
  box-shadow: inset 0 0 0 3px var(--paper);
}

.permit-stamp {
  --rot: -12deg;
  top: -14px;
  right: 10px;
  font-size: 1.2rem;
  transform: rotate(var(--rot));
}

.permit-card:not(.is-complete) .permit-stamp {
  color: var(--ink-2);
  opacity: 0.55;
}

.permit-card.is-fresh .permit-stamp {
  animation: stamp-in 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.permit-cut {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px dashed var(--rule);
  font-weight: 700;
}

.permit-cut.is-in {
  color: var(--tampon);
}

.permit-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.permit > .g-note {
  margin-top: 10px;
}

.guichets {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--doc);
  background: var(--paper);
}

.g-card[data-state="locked"] {
  opacity: 0.66;
}

.g-final {
  border: 2px solid var(--ink);
}

.g-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.g-no {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.g-card[data-state="done"] .g-no {
  border-color: var(--tampon);
  background: var(--tampon);
  color: #fff;
}

.g-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  font-variation-settings: "wdth" 85, "opsz" 32;
  line-height: 1.1;
}

.g-text {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-2);
}

.g-text a {
  color: var(--tampon);
  font-weight: 700;
  text-underline-offset: 3px;
}

.g-locked,
.g-meta,
.g-hint {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--typed);
}

.g-meta {
  color: var(--ink);
}

.g-warn {
  margin: 0;
  color: var(--refus);
  font-weight: 650;
}

.g-note {
  margin: 0;
  font-weight: 650;
}

.g-note[data-tone="error"] {
  color: var(--refus);
}

.g-note[data-tone="ok"] {
  color: var(--tampon);
}

.g-body {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.g-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-submit {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.12rem;
}

.g-stamp {
  --rot: -9deg;
  right: 18px;
  bottom: 16px;
  font-size: 1.45rem;
  transform: rotate(var(--rot));
}

.g-final .g-stamp {
  font-size: 2.1rem;
}

.g-card.is-fresh .g-stamp {
  animation: stamp-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.g-ticket {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 16px;
  border-radius: 3px;
  background: var(--ticket);
  font-weight: 760;
}

.led-small {
  padding: 0 10px;
  font-size: 1.7rem;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--tampon);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.captcha {
  justify-items: stretch;
  width: 100%;
}

.captcha-prompt {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  font-variation-settings: "wdth" 85, "opsz" 32;
}

.captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 480px);
}

.tile {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--mist);
  cursor: pointer;
}

.tile img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  object-fit: cover;
  transition: transform 0.12s ease-out;
}

.tile[aria-pressed="true"] {
  outline: 4px solid var(--tampon);
  outline-offset: -4px;
}

.tile[aria-pressed="true"] img {
  transform: scale(0.9);
}

.tile[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tampon);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.quiz {
  justify-items: stretch;
  width: 100%;
}

.quiz-q {
  margin: 0;
  padding: 12px 0 4px;
  border: 0;
  border-top: 1px solid var(--rule);
}

.quiz-q legend {
  float: left;
  width: 100%;
  margin-bottom: 6px;
  padding: 0;
  font-weight: 720;
}

.quiz-opt {
  display: flex;
  clear: left;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
}

.quiz-opt input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--tampon);
}

.quiz .btn {
  justify-self: start;
}

.notice {
  width: 100%;
}

.notice-code {
  margin: 0;
}

.notice-code strong {
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--ticket);
  font-family: var(--typed);
  font-size: 1.15rem;
  font-weight: 400;
}

.notice-field {
  display: grid;
  gap: 6px;
  width: min(100%, 520px);
  font-size: 0.92rem;
  font-weight: 650;
}

.notice-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: var(--typed);
  font-size: 1rem;
}

.board {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--doc);
  background: var(--paper);
}

.board:empty {
  display: none;
}

.board h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  font-variation-settings: "wdth" 80, "opsz" 32;
}

.board-sum {
  margin: 2px 0 12px;
  color: var(--ink-2);
}

.recent {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.recent li {
  display: flex;
  gap: 12px;
}

.recent-no {
  flex: none;
  font-family: var(--typed);
  white-space: nowrap;
}

.recent-name {
  min-width: 0;
  overflow: hidden;
  font-family: var(--typed);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent time {
  margin-left: auto;
  color: var(--ink-2);
  white-space: nowrap;
}

@media (min-width: 1080px) {
  .b12-body {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 36px;
  }

  .permit {
    position: sticky;
    top: 86px;
  }
}

.storm {
  position: fixed;
  z-index: 60;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.storm-stamp {
  --sx: -50%;
  --sy: -50%;
  background: rgb(246 249 250 / 0.86);
  font-size: clamp(2rem, 6vw, 4.2rem);
  mix-blend-mode: normal;
  transform: translate(var(--sx), var(--sy)) rotate(var(--rot));
  animation:
    stamp-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15) var(--d, 0ms) both,
    storm-out 0.5s ease-in calc(var(--d, 0ms) + 2.2s) forwards;
}

.storm-stamp.is-red {
  color: var(--refus);
}

@keyframes storm-out {
  to {
    opacity: 0;
  }
}

/* Identity check */

.controle {
  padding: 76px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.check {
  display: grid;
  gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.check-photo {
  position: relative;
  margin: 0;
}

.check-photo img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  object-fit: cover;
}

.check-photo .stamp {
  --rot: -14deg;
  --sx: -50%;
  --sy: -50%;
  top: 62%;
  left: 50%;
  background: rgb(246 249 250 / 0.8);
  font-size: clamp(3rem, 10vw, 5.6rem);
  mix-blend-mode: normal;
  transform: translate(var(--sx), var(--sy)) rotate(var(--rot));
  animation: stamp-in 0.36s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.check-body {
  display: grid;
  align-content: start;
  gap: 18px;
}

.check-progress {
  margin: 0;
  color: var(--ink-2);
  font-weight: 650;
}

.check-body dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.check-body dt {
  color: var(--ink-2);
}

.check-body dd {
  margin: 0;
  font-family: var(--typed);
  font-size: 1.1rem;
}

.check-question {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  font-variation-settings: "wdth" 80, "opsz" 48;
  line-height: 1.1;
}

.check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.check-actions .btn {
  flex: 1 1 140px;
  min-height: 56px;
  font-size: 1.1rem;
}

.verdict {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.score {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  font-variation-settings: "wdth" 75, "opsz" 72;
  line-height: 1;
}

@media (min-width: 760px) {
  .check {
    grid-template-columns: minmax(0, 440px) minmax(0, 520px);
    align-items: start;
    gap: 44px;
  }
}

/* Counter */

.guichet {
  padding: 76px 0;
}

.guichet-body {
  display: grid;
  gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.formulaire {
  position: relative;
  display: grid;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--doc);
  background: var(--paper);
}

.form-head {
  display: grid;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.form-head strong {
  font-size: 1.3rem;
  font-weight: 800;
  font-variation-settings: "wdth" 85, "opsz" 32;
}

.form-head span {
  color: var(--ink-2);
}

.field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas: "no label" "no value" "no extra";
  align-items: center;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.field-no {
  display: grid;
  grid-area: no;
  align-self: start;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 760;
}

.field-label {
  grid-area: label;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 620;
}

.typed {
  color: var(--ink);
  font-family: var(--typed);
  font-size: 1.15rem;
}

.field > .typed {
  grid-area: value;
}

.stepper {
  display: inline-flex;
  grid-area: value;
  align-items: center;
  gap: 6px;
}

.stepper button {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.stepper input {
  width: 3ch;
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.field-hint {
  grid-area: extra;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.field-action {
  grid-area: extra;
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tampon);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.oath {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0 6px;
  cursor: pointer;
}

.oath input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--tampon);
}

.btn-mint {
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  font-size: 1.15rem;
}

.status {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-size: 0.98rem;
}

.status[data-tone="error"] {
  color: var(--refus);
}

.status[data-tone="ok"] {
  color: var(--tampon);
}

.mint-result {
  margin-top: 10px;
  padding: 14px 16px;
  border: 2px dashed var(--tampon);
  border-radius: var(--doc);
}

.mint-result[hidden] {
  display: none;
}

.mint-result-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.mint-result ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--typed);
  font-size: 1.15rem;
}

.mint-result a {
  color: var(--tampon);
}

.mint-result-note {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.status a {
  color: inherit;
  font-weight: 700;
}

.stamp-closed {
  --rot: -10deg;
  --sx: -50%;
  --sy: -50%;
  top: 48%;
  left: 50%;
  display: none;
  color: var(--refus);
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  transform: translate(var(--sx), var(--sy)) rotate(var(--rot));
}

.formulaire[data-phase="closed"] .stamp-closed,
.formulaire[data-phase="soldout"] .stamp-closed {
  display: grid;
}

.registre-box {
  align-self: start;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--doc);
  background: var(--paper);
}

.registre-count {
  margin: 0;
  font-size: 3.2rem;
  font-weight: 800;
  font-variation-settings: "wdth" 75, "opsz" 72;
  line-height: 1;
}

.registre-count small {
  font-size: 1rem;
  font-weight: 560;
  font-variation-settings: "wdth" 100, "opsz" 16;
}

.roll {
  height: 14px;
  margin: 16px 0 20px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--form);
}

.roll-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--tampon);
}

.terms-pending {
  margin: 0;
  color: var(--ink-2);
}

.rounds {
  display: grid;
  gap: 14px;
  margin: 0;
}

.rounds div {
  display: grid;
  gap: 2px;
}

.rounds dt {
  font-weight: 760;
}

.rounds dd {
  margin: 0;
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .field {
    grid-template-columns: 28px 210px minmax(0, 1fr) auto;
    grid-template-areas: "no label value extra";
  }
}

@media (min-width: 1080px) {
  .guichet-body {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 32px;
  }
}

/* FAQ */

.faq {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 76px var(--gutter);
}

.faq details {
  max-width: 860px;
  border-top: 1px solid var(--rule);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 1.18rem;
  font-weight: 720;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 6px;
  font-size: 1.7rem;
  font-weight: 500;
  translate: 0 -50%;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  max-width: 64ch;
  margin: 0 0 22px;
}

/* Footer */

.pied {
  display: grid;
  gap: 18px;
  padding: 44px max(var(--gutter), calc((100% - var(--max)) / 2));
  background: var(--ink);
  color: var(--mist);
}

.pied-seal {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pied-seal svg {
  flex: none;
  width: 64px;
  color: var(--paper);
}

.pied-seal p {
  margin: 0;
}

.pied-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pied-links a {
  color: var(--paper);
  font-weight: 700;
}

.pied-links a[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  text-decoration: none;
}

.fine {
  margin: 0;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wall,
  .stamp-hero,
  .check-photo .stamp,
  .g-card.is-fresh .g-stamp,
  .permit-card.is-fresh .permit-stamp {
    animation: none;
  }

  .storm-stamp {
    animation: storm-out 0.4s ease-in 1.2s forwards;
  }

  .tile img {
    transition: none;
  }
}
