@layer composants {
  .icone {
    width: 1.5rem;
    height: 1.5rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .icone--petite {
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 2;
  }
  .icone--grande {
    width: 2rem;
    height: 2rem;
    stroke-width: 1.5;
  }
  .bouton {
    --b-fond: var(--surface-haute);
    --b-fond-survol: var(--surface-survol);
    --b-texte: var(--texte);
    --b-trait: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--e-2);
    min-height: var(--cible);
    padding: var(--e-2) var(--e-5);
    border: 1px solid var(--b-trait);
    border-radius: var(--r-rond);
    background: var(--b-fond);
    color: var(--b-texte);
    font-weight: var(--graisse-fort);
    font-size: var(--t-3);
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    box-shadow: var(--b-ombre, var(--ombre-1));
    transition:
      background-color var(--d-vite) var(--c-sortie),
      border-color var(--d-vite) var(--c-sortie),
      color var(--d-vite) var(--c-sortie),
      box-shadow var(--d-instant) var(--c-sortie),
      translate var(--d-instant) var(--c-sortie),
      scale var(--d-instant) var(--c-sortie);
    &:hover {
      background: var(--b-fond-survol);
      color: var(--b-texte);
    }
    &:active {
      scale: 0.98;
      box-shadow: none;
    }
    &:disabled,
    &[aria-disabled="true"] {
      opacity: 0.45;
      cursor: not-allowed;
      box-shadow: none;
      scale: none;
    }
    &[aria-busy="true"] {
      color: transparent;
      pointer-events: none;
      & > * {
        visibility: hidden;
      }
      &::after {
        content: "";
        position: absolute;
        inset: 0;
        margin: auto;
        width: 0.4rem;
        height: 0.4rem;
        border-radius: var(--r-rond);
        color: var(--b-texte);
        animation: kl-trois-touches 1s var(--c-souffle) infinite;
      }
    }
    &[data-etat="succes"] {
      --b-fond: var(--vert);
      --b-fond-survol: var(--vert);
      --b-texte: var(--sur-vert);
      --b-trait: transparent;
      --b-ombre: 0 3px 0 color-mix(in oklab, var(--vert) 70%, var(--texte));
      animation: kl-pas var(--d-instant) var(--c-pas);
    }
    &[data-etat="erreur"] {
      --b-fond: var(--danger-voile);
      --b-fond-survol: var(--danger-voile);
      --b-texte: var(--danger);
      --b-trait: var(--danger);
      --b-ombre: none;
      animation: kl-non var(--d-ample) var(--c-sortie);
    }
  }
  @keyframes kl-non {
    25% { translate: -3px 0; }
    50% { translate: 3px 0; }
    75% { translate: -2px 0; }
  }
  @keyframes kl-trois-touches {
    0%, 100% {
      box-shadow: -0.8rem 0 0 0 currentColor, 0 0 0 -0.1rem currentColor, 0.8rem 0 0 -0.1rem currentColor;
    }
    33% {
      box-shadow: -0.8rem 0 0 -0.1rem currentColor, 0 0 0 0 currentColor, 0.8rem 0 0 -0.1rem currentColor;
    }
    66% {
      box-shadow: -0.8rem 0 0 -0.1rem currentColor, 0 0 0 -0.1rem currentColor, 0.8rem 0 0 0 currentColor;
    }
  }
  .bouton--primaire {
    --b-fond: var(--accent);
    --b-fond-survol: var(--accent-vif);
    --b-texte: var(--sur-accent);
    --b-ombre: var(--ombre-accent);
    &:hover {
      translate: 0 -1px;
      box-shadow: 0 4px 0 var(--accent-appui);
    }
    &:active {
      background: var(--accent-appui);
      translate: 0 3px;
      scale: none;
      box-shadow: 0 0 0 var(--accent-appui);
    }
  }
  .bouton--secondaire {
    --b-fond: transparent;
    --b-fond-survol: var(--accent-voile);
    --b-texte: var(--texte);
    --b-trait: var(--trait-fort);
    --b-ombre: none;
    &:hover {
      --b-trait: var(--accent);
    }
  }
  .bouton--fantome {
    --b-fond: transparent;
    --b-fond-survol: var(--surface-survol);
    --b-texte: var(--texte-doux);
    --b-ombre: none;
    padding-inline: var(--e-3);
    &:hover {
      --b-texte: var(--texte);
    }
  }
  .bouton--danger {
    --b-fond: var(--danger-voile);
    --b-fond-survol: var(--danger);
    --b-texte: var(--danger);
    --b-trait: var(--danger-trait);
    --b-ombre: none;
    &:hover {
      --b-texte: var(--sur-danger);
    }
  }
  .bouton--valider {
    --b-fond: var(--vert);
    --b-fond-survol: color-mix(in oklab, var(--vert) 88%, var(--texte));
    --b-texte: var(--sur-vert);
  }
  .bouton--balise {
    --b-fond: var(--balise);
    --b-fond-survol: color-mix(in oklab, var(--balise) 86%, var(--c-sur-balise));
    --b-texte: var(--c-sur-balise);
    --b-trait: color-mix(in oklab, var(--c-sur-balise) 30%, transparent);
    --b-ombre: 0 3px 0 color-mix(in oklab, var(--balise) 55%, var(--c-sur-balise));
    &:active {
      translate: 0 3px;
      scale: none;
      box-shadow: none;
    }
  }
  .bouton--icone {
    width: var(--cible);
    padding: 0;
    border-radius: var(--r-rond);
  }
  .bouton--grand {
    min-height: 3.5rem;
    padding-inline: var(--e-8);
    font-size: var(--t-4);
    border-radius: var(--r-rond);
  }
  .bouton--bloc {
    display: flex;
    width: 100%;
  }
  .champ {
    display: flex;
    flex-direction: column;
    gap: var(--e-2);
  }
  .champ__libelle {
    font-size: var(--t-2);
    font-weight: var(--graisse-fort);
    color: var(--texte);
  }
  .champ__facultatif {
    font-weight: var(--graisse-normal);
    color: var(--texte-discret);
  }
  .champ__saisie {
    width: 100%;
    min-height: 3rem;
    padding: var(--e-3) var(--e-4);
    background: var(--fond-creux);
    border: 1px solid var(--trait-fort);
    border-radius: var(--r-2);
    color: var(--texte);
    font-size: var(--t-3);
    line-height: 1.4;
    transition:
      border-color var(--d-vite) var(--c-sortie),
      box-shadow var(--d-vite) var(--c-sortie),
      background-color var(--d-vite) var(--c-sortie);
    &::placeholder {
      color: var(--texte-discret);
      opacity: 1;
    }
    &:hover {
      border-color: var(--texte-doux);
    }
    &:focus-visible {
      outline: none;
      border-color: var(--focus);
      border-radius: var(--r-2);
      box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 3px var(--balise);
    }
    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    &[aria-invalid="true"] {
      border-color: var(--danger);
      background: color-mix(in oklab, var(--danger) 6%, var(--fond-creux));
    }
  }
  textarea.champ__saisie {
    min-height: 6.5rem;
    resize: vertical;
  }
  select.champ__saisie {
    appearance: none;
    padding-right: var(--e-10);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23867b67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.500 9.500 12 16l6.500-6.500'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--e-3) center;
    background-size: 1.25rem;
  }
  .champ__aide {
    font-size: var(--t-2);
    color: var(--texte-doux);
  }
  .champ__erreur {
    display: flex;
    align-items: flex-start;
    gap: var(--e-2);
    font-size: var(--t-2);
    font-weight: var(--graisse-moyen);
    color: var(--danger);
  }
  .champ__groupe {
    position: relative;
    & > .icone {
      position: absolute;
      left: var(--e-3);
      top: 50%;
      translate: 0 -50%;
      color: var(--texte-doux);
      pointer-events: none;
    }
    & > .icone ~ .champ__saisie {
      padding-left: var(--e-12);
    }
    & > .bouton {
      position: absolute;
      right: var(--e-1);
      top: 50%;
      translate: 0 -50%;
    }
    &:has(> .bouton) > .champ__saisie {
      padding-right: var(--e-12);
    }
  }
  .coche {
    display: flex;
    align-items: flex-start;
    gap: var(--e-3);
    min-height: var(--cible);
    padding-block: var(--e-2);
    cursor: pointer;
    & input {
      appearance: none;
      flex: none;
      width: 1.5rem;
      height: 1.5rem;
      margin: 0;
      border: 1.5px solid var(--trait-fort);
      border-radius: var(--r-1);
      background: var(--fond-creux);
      display: grid;
      place-content: center;
      cursor: pointer;
      transition:
        background-color var(--d-vite) var(--c-sortie),
        border-color var(--d-vite) var(--c-sortie);
    }
    & input[type="radio"] {
      border-radius: var(--r-rond);
    }
    & input::before {
      content: "";
      width: 0.85rem;
      height: 0.85rem;
      scale: 0;
      background: var(--sur-accent);
      clip-path: polygon(12% 52%, 0 66%, 38% 100%, 100% 22%, 86% 10%, 37% 72%);
      transition: scale var(--d-vite) var(--c-encre);
    }
    & input[type="radio"]::before {
      clip-path: circle(38%);
    }
    & input:checked {
      background: var(--accent);
      border-color: var(--accent);
    }
    & input:checked::before {
      scale: 1;
    }
    & input:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
  }
  .bascule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--e-4);
    min-height: var(--cible);
    cursor: pointer;
    & input {
      appearance: none;
      flex: none;
      position: relative;
      width: 3.25rem;
      height: 2rem;
      margin: 0;
      border-radius: var(--r-rond);
      background: var(--fond-creux);
      border: 1.5px solid var(--trait-fort);
      cursor: pointer;
      transition:
        background-color var(--d-pose) var(--c-sortie),
        border-color var(--d-pose) var(--c-sortie);
    }
    & input::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 0.2rem;
      width: 1.35rem;
      height: 1.35rem;
      translate: 0 -50%;
      border-radius: var(--forme-touche);
      background: var(--texte-doux);
      transition:
        translate var(--d-pose) var(--c-encre),
        background-color var(--d-pose) var(--c-sortie),
        border-radius var(--d-pose) var(--c-sortie);
    }
    & input:checked {
      background: var(--accent);
      border-color: var(--accent);
    }
    & input:checked::before {
      translate: 1.25rem -50%;
      background: var(--sur-accent);
      border-radius: var(--forme-touche-2);
    }
    & input:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
  }
  .curseur {
    --v: 50;
    appearance: none;
    width: 100%;
    height: var(--cible);
    background: transparent;
    cursor: pointer;
    &::-webkit-slider-runnable-track {
      height: 0.5rem;
      border-radius: var(--r-rond);
      background: linear-gradient(90deg, var(--accent) calc(var(--v) * 1%), var(--fond-creux) calc(var(--v) * 1%));
      box-shadow: inset 0 0 0 1px var(--trait);
    }
    &::-moz-range-track {
      height: 0.5rem;
      border-radius: var(--r-rond);
      background: var(--fond-creux);
      box-shadow: inset 0 0 0 1px var(--trait);
    }
    &::-moz-range-progress {
      height: 0.5rem;
      border-radius: var(--r-rond);
      background: var(--accent);
    }
    &::-webkit-slider-thumb {
      appearance: none;
      width: 1.75rem;
      height: 1.75rem;
      margin-top: -0.625rem;
      border-radius: var(--forme-touche);
      background: var(--texte);
      border: 3px solid var(--accent);
      box-shadow: var(--ombre-2);
    }
    &::-moz-range-thumb {
      width: 1.4rem;
      height: 1.4rem;
      border-radius: var(--forme-touche);
      background: var(--texte);
      border: 3px solid var(--accent);
    }
  }
  .segments {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: var(--e-1);
    background: var(--fond-creux);
    border: 1px solid var(--trait);
    border-radius: var(--r-rond);
    & label {
      position: relative;
      display: grid;
      place-items: center;
      min-height: calc(var(--cible) - var(--e-2));
      padding-inline: var(--e-4);
      border-radius: var(--r-rond);
      font-size: var(--t-2);
      font-weight: var(--graisse-fort);
      color: var(--texte-doux);
      cursor: pointer;
      white-space: nowrap;
      transition:
        background-color var(--d-pose) var(--c-sortie),
        color var(--d-vite) var(--c-sortie);
    }
    & input {
      position: absolute;
      inset: 0;
      opacity: 0;
      margin: 0;
      cursor: pointer;
    }
    & label:has(input:checked) {
      background: var(--accent);
      color: var(--sur-accent);
    }
    & label:has(input:focus-visible) {
      outline: 2px solid var(--focus);
      outline-offset: 2px;
      box-shadow: 0 0 0 4px var(--balise);
    }
  }
  .puce {
    display: inline-flex;
    align-items: center;
    gap: var(--e-2);
    min-height: 2rem;
    padding: var(--e-1) var(--e-3);
    border: 1px solid var(--trait);
    border-radius: var(--r-rond);
    background: var(--surface-haute);
    color: var(--texte-doux);
    font-size: var(--t-2);
    font-weight: var(--graisse-moyen);
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
  }
  button.puce,
  a.puce {
    min-height: var(--cible);
    padding-inline: var(--e-4);
    transition:
      background-color var(--d-vite) var(--c-sortie),
      border-color var(--d-vite) var(--c-sortie),
      color var(--d-vite) var(--c-sortie),
      scale var(--d-instant) var(--c-sortie);
    &:hover {
      border-color: var(--trait-fort);
      color: var(--texte);
    }
    &:active {
      scale: 0.96;
    }
    &[aria-pressed="true"],
    &[aria-current="true"] {
      background: var(--accent-voile);
      border-color: var(--accent);
      color: var(--texte);
    }
    &[aria-pressed="true"] .icone {
      color: var(--accent);
    }
  }
  .puce--vert {
    background: var(--vert-voile);
    border-color: var(--vert-trait);
    color: var(--vert);
  }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--e-1);
    padding: 0 var(--e-3) 0.1em;
    min-height: 1.75rem;
    border: 1px solid var(--or-trait);
    border-radius: var(--forme-touche-2);
    background: var(--or-voile);
    color: var(--or);
    font-family: var(--police-main);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    rotate: -1.5deg;
    & .icone {
      width: 1rem;
      height: 1rem;
      stroke-width: 2.2;
    }
  }
  .badge--plein {
    background: var(--balise);
    border-color: color-mix(in oklab, var(--c-sur-balise) 25%, transparent);
    color: var(--c-sur-balise);
  }
  .pastille {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding-inline: var(--e-1);
    border-radius: var(--r-rond);
    background: var(--accent);
    color: var(--sur-accent);
    font-size: var(--t-1);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .statut {
    --s-couleur: var(--texte-discret);
    display: inline-flex;
    align-items: center;
    gap: var(--e-2);
    font-size: var(--t-2);
    font-weight: var(--graisse-moyen);
    color: var(--s-couleur);
    white-space: nowrap;
    &::before {
      content: "";
      width: 0.6rem;
      height: 0.6rem;
      flex: none;
      border-radius: var(--forme-touche);
      background: var(--s-couleur);
    }
    &[data-etat="dispo"] {
      --s-couleur: var(--vert);
      &::before {
        animation: kl-pouls 2.4s var(--c-souffle) infinite;
      }
    }
    &[data-etat="bientot"] {
      --s-couleur: var(--or);
    }
    &[data-etat="occupe"] {
      --s-couleur: var(--texte-doux);
      &::before {
        background: transparent;
        box-shadow: inset 0 0 0 2px var(--s-couleur);
      }
    }
    &[data-etat="absent"]::before {
      background: transparent;
      box-shadow: inset 0 0 0 1.5px var(--s-couleur);
    }
  }
  @keyframes kl-pouls {
    0%, 100% {
      box-shadow: 0 0 0 0 color-mix(in oklab, var(--vert) 55%, transparent);
    }
    60% {
      box-shadow: 0 0 0 0.4rem transparent;
    }
  }
  .portrait {
    --p-lisere: var(--trait);
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--r-3);
    background: var(--carte-planche, var(--surface-haute));
    box-shadow: 0 0 0 1px var(--p-lisere), var(--ombre-1);
  }
  [data-famille="sous-bois"] { --carte-planche: var(--carte-planche-sous-bois); }
  [data-famille="riviere"] { --carte-planche: var(--carte-planche-riviere); }
  [data-famille="lisiere"] { --carte-planche: var(--carte-planche-lisiere); }
  [data-famille="ville"] { --carte-planche: var(--carte-planche-ville); }
  [data-famille="nuit"] { --carte-planche: var(--carte-planche-nuit); }
  [data-famille="plaine"] { --carte-planche: var(--carte-planche-plaine); }
  .portrait__toile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: 50% 60%;
    animation: kl-souffle var(--d-souffle) var(--c-souffle) infinite alternate;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  @keyframes kl-souffle {
    from {
      scale: 1;
    }
    to {
      scale: 1.012;
    }
  }
  .portrait::after {
    content: none;
  }
  @keyframes kl-vernis {
    from {
      translate: -22% 0;
    }
    to {
      translate: 22% 0;
    }
  }
  .portrait__cartel {
    position: absolute;
    left: var(--e-3);
    bottom: var(--e-3);
    z-index: 3;
    max-width: calc(100% - var(--e-6));
    padding: var(--e-2) var(--e-3);
    border: 1px solid var(--trait);
    border-radius: var(--r-1);
    background: var(--surface-haute);
    box-shadow: var(--ombre-1);
    color: var(--texte);
    font-family: var(--police-titre);
    font-size: var(--t-4);
    font-weight: 560;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    line-height: 1.15;
    & span {
      display: block;
      margin-top: 0.15em;
      font-family: var(--police-texte);
      font-size: var(--t-1);
      font-weight: var(--graisse-moyen);
      letter-spacing: 0.02em;
      color: var(--texte-doux);
    }
  }
  .portrait__etiquette {
    position: absolute;
    top: var(--e-3);
    left: var(--e-3);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: var(--e-1);
    padding: var(--e-1) var(--e-3) var(--e-1) var(--e-2);
    border: 1px solid var(--trait);
    border-radius: var(--r-1);
    background: var(--surface-haute);
    color: var(--texte);
    font-size: var(--t-1);
    font-weight: var(--graisse-fort);
    letter-spacing: 0.02em;
    & .icone {
      width: 1rem;
      height: 1rem;
      stroke-width: 2;
    }
  }
  .portrait[data-etat="peinture"] {
    --p-lisere: var(--trait-fort);
    background: var(--surface);
    & .portrait__toile {
      filter: blur(14px) saturate(0.5) brightness(0.6);
      scale: 1.15;
      animation: none;
    }
    &::before {
      content: "";
      position: absolute;
      inset: -30%;
      z-index: 1;
      pointer-events: none;
      rotate: -18deg;
      background:
        linear-gradient(transparent 6%, var(--accent) 6% 20%, transparent 20%) 0 0 / 200% 100% no-repeat,
        linear-gradient(transparent 34%, var(--vert) 34% 46%, transparent 46%) 0 0 / 200% 100% no-repeat,
        linear-gradient(transparent 60%, var(--or) 60% 74%, transparent 74%) 0 0 / 200% 100% no-repeat;
      -webkit-mask: linear-gradient(90deg, transparent, #000 30% 50%, transparent 62%) 0 0 / 260% 100%;
      mask: linear-gradient(90deg, transparent, #000 30% 50%, transparent 62%) 0 0 / 260% 100%;
      opacity: 0.85;
      filter: blur(1.5px);
      animation: kl-passe 2.6s var(--c-souffle) infinite;
    }
    &::after {
      animation: none;
      opacity: 0;
    }
    & .portrait__cartel {
      font-family: var(--police-texte);
      font-size: var(--t-2);
      font-weight: var(--graisse-moyen);
    }
  }
  @keyframes kl-passe {
    from {
      -webkit-mask-position: 130% 0;
      mask-position: 130% 0;
    }
    to {
      -webkit-mask-position: -60% 0;
      mask-position: -60% 0;
    }
  }
  .portrait[data-etat="a-valider"] {
    box-shadow: var(--ombre-2);
    outline: 2px dashed var(--or);
    outline-offset: 4px;
    & .portrait__etiquette {
      background: var(--or);
      color: var(--sur-or);
    }
  }
  .portrait[data-etat="photo"] {
    padding: 0.375rem 0.375rem 0;
    border-radius: var(--r-3);
    background: var(--surface-haute);
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-1);
    display: flex;
    flex-direction: column;
    &::after {
      display: none;
    }
    & .portrait__toile {
      flex: 1;
      min-height: 0;
      border-radius: calc(var(--r-3) - 0.375rem);
      animation: none;
    }
    & .portrait__cartel {
      position: static;
      max-width: none;
      padding: var(--e-2) var(--e-1);
      border: 0;
      background: none;
      box-shadow: none;
      color: var(--texte);
      font-size: var(--t-3);
      & span {
        color: var(--texte-doux);
      }
    }
    & .portrait__etiquette {
      top: var(--e-4);
      left: var(--e-4);
    }
  }
  .portrait--pastille {
    width: var(--pastille, 3rem);
    aspect-ratio: 1;
    flex: none;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--surface);
    &::after {
      display: none;
    }
    & .portrait__toile {
      object-position: 50% 30%;
      scale: 1.3;
      animation: none;
    }
  }
  .portrait--dispo {
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--vert);
  }
  .portrait--moyen {
    width: 6rem;
    flex: none;
    border-radius: var(--r-2);
    & .portrait__toile {
      animation: none;
    }
  }
  .portrait--fige .portrait__toile,
  .portrait--fige::after {
    animation: none;
  }
  .portrait-choix {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--e-2);
    font-size: var(--t-2);
    font-weight: var(--graisse-fort);
    color: var(--texte-doux);
    text-align: center;
    cursor: pointer;
    & input {
      position: absolute;
      inset: 0;
      opacity: 0;
      margin: 0;
      cursor: pointer;
    }
    & .portrait {
      transition:
        box-shadow var(--d-vite) var(--c-sortie),
        scale var(--d-vite) var(--c-encre);
    }
    &:hover .portrait {
      --p-lisere: var(--trait-fort);
    }
    &:has(input:checked) {
      color: var(--texte);
      & .portrait {
        box-shadow: 0 0 0 3px var(--accent), var(--ombre-2);
        scale: 0.96;
      }
    }
    &:has(input:focus-visible) .portrait {
      outline: 2px solid var(--focus);
      outline-offset: 4px;
    }
  }
  .visages {
    display: inline-flex;
    align-items: center;
    padding-bottom: var(--e-1);
    & > * + * {
      margin-left: calc(var(--e-3) * -1);
    }
    & > :nth-child(even) {
      translate: 0 var(--e-1);
    }
    & .portrait--pastille {
      --pastille: 2.25rem;
      box-shadow: 0 0 0 2px var(--surface);
    }
    & .portrait--dispo {
      box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--vert);
    }
  }
  .visages__reste {
    display: grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding-inline: var(--e-2);
    border-radius: var(--r-rond);
    background: var(--surface-haute);
    box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px var(--trait);
    color: var(--texte);
    font-size: var(--t-1);
    font-weight: 700;
    position: relative;
  }
  .carte {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--e-4);
    padding: var(--e-5);
    background: var(--surface);
    border: 1px solid var(--trait);
    border-radius: var(--r-3);
    box-shadow: var(--ombre-1);
    container-type: inline-size;
  }
  .carte--lien {
    transition:
      border-color var(--d-vite) var(--c-sortie),
      background-color var(--d-vite) var(--c-sortie),
      translate var(--d-pose) var(--c-sortie);
    &:hover {
      border-color: var(--trait-fort);
      translate: 0 -2px;
    }
    & .carte__lien::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
    }
    & .carte__lien {
      color: inherit;
      text-decoration: none;
    }
    & :is(button, a:not(.carte__lien)) {
      position: relative;
      z-index: 1;
    }
  }
  .carte__pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--e-3);
    flex-wrap: wrap;
  }
  .carte__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-1) var(--e-4);
    font-size: var(--t-2);
    color: var(--texte-doux);
    & > * {
      display: inline-flex;
      align-items: center;
      gap: var(--e-2);
    }
    & .icone {
      width: 1.125rem;
      height: 1.125rem;
      color: var(--texte-discret);
    }
  }
  .carte-requete {
    gap: var(--e-3);
    overflow: hidden;
  }
  .carte-requete__tete {
    display: flex;
    align-items: center;
    gap: var(--e-3);
  }
  .carte-requete__auteur {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    & strong {
      display: block;
    }
    & span {
      font-size: var(--t-2);
      color: var(--texte-doux);
    }
  }
  .carte-requete__appel {
    font-family: var(--police-titre);
    font-size: var(--t-5);
    font-weight: 500;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    line-height: 1.22;
    letter-spacing: -0.012em;
    text-wrap: balance;
    & em {
      font-style: italic;
      color: var(--accent);
    }
  }
  @container (min-width: 30rem) {
    .carte-requete__appel {
      font-size: var(--t-6);
    }
  }
  .rebours {
    display: inline-flex;
    align-items: center;
    gap: var(--e-1);
    padding: var(--e-1) var(--e-3) var(--e-1) var(--e-2);
    border-radius: var(--r-rond);
    background: var(--or-voile);
    color: var(--or);
    font-size: var(--t-2);
    font-weight: var(--graisse-fort);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    & .icone {
      width: 1.125rem;
      height: 1.125rem;
      stroke-width: 2;
    }
  }
  .rebours-trait {
    height: 0.375rem;
    border-radius: var(--r-rond);
    background: var(--fond-creux);
    overflow: hidden;
    &::before {
      content: "";
      display: block;
      height: 100%;
      width: 100%;
      border-radius: inherit;
      background: var(--or);
      transform-origin: left;
      scale: var(--reste, 1) 1;
      transition:
        scale 1s linear,
        background-color var(--d-ample) var(--c-sortie);
    }
  }
  .carte-requete > .rebours-trait {
    margin: var(--e-1) calc(var(--e-5) * -1) calc(var(--e-5) * -1);
    border-radius: 0;
    margin-top: var(--e-2);
  }
  [data-urgence="imminent"] {
    & .rebours {
      background: var(--accent-voile);
      color: var(--c-accent-encre);
    }
    & .rebours-trait::before {
      background: var(--accent);
    }
  }
  [data-urgence="fini"] {
    & .rebours {
      background: var(--surface-haute);
      color: var(--texte-discret);
    }
    & .rebours-trait::before {
      background: var(--texte-discret);
    }
    & .carte-requete__appel,
    & .carte-requete__appel em {
      color: var(--texte-doux);
    }
  }
  .carte-sortie {
    --souche: 5.25rem;
    --encoche: 0.5rem;
    flex-direction: row;
    gap: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    -webkit-mask:
      radial-gradient(circle var(--encoche) at var(--souche) 0, transparent 98%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle var(--encoche) at var(--souche) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
    mask:
      radial-gradient(circle var(--encoche) at var(--souche) 0, transparent 98%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle var(--encoche) at var(--souche) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  }
  .carte-sortie__date {
    flex: none;
    width: var(--souche);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--e-1);
    padding: var(--e-4) var(--e-2);
    background: var(--accent);
    color: var(--sur-accent);
    border-right: 2px dashed color-mix(in oklab, var(--sur-accent) 55%, transparent);
    text-align: center;
    line-height: 1;
    & .jour,
    & .mois {
      font-size: var(--t-1);
      font-weight: 700;
      letter-spacing: var(--approche-capitales);
      text-transform: uppercase;
    }
    & .numero {
      font-family: var(--police-titre);
      font-size: 2.5rem;
      font-weight: 640;
      font-variation-settings: "SOFT" 60, "WONK" 1;
      letter-spacing: -0.03em;
    }
  }
  .carte-sortie__corps {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--e-3);
    padding: var(--e-4) var(--e-5);
  }
  .carte-sortie__titre {
    font-family: var(--police-titre);
    font-size: var(--t-5);
    font-weight: 560;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    line-height: 1.2;
  }
  .carte-personne {
    padding: var(--e-3);
    gap: var(--e-3);
    & > .portrait {
      rotate: var(--penche, 0deg);
      transition: rotate var(--d-pose) var(--c-pas);
    }
  }
  .carte-personne__corps {
    display: flex;
    flex-direction: column;
    gap: var(--e-2);
    padding: 0 var(--e-2) var(--e-2);
  }
  .carte-personne__nom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--e-2);
    font-family: var(--police-titre);
    font-size: var(--t-5);
    font-weight: 560;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    line-height: 1.2;
  }
  .carte-personne__phrase {
    font-size: var(--t-2);
    color: var(--texte-doux);
  }
  .jauge-bloc {
    display: flex;
    align-items: center;
    gap: var(--e-3);
    font-size: var(--t-2);
    color: var(--texte-doux);
    font-variant-numeric: tabular-nums;
    & strong {
      color: var(--texte);
    }
  }
  .jauge {
    --pris: 0;
    --places: 6;
    --j-couleur: var(--vert);
    flex: 1;
    min-width: 5.5rem;
    max-width: 10rem;
    height: 0.5rem;
    background:
      linear-gradient(var(--j-couleur) 0 0) left / calc(var(--pris) / var(--places) * 100%) 100% no-repeat,
      var(--fond-creux);
    box-shadow: inset 0 0 0 1px var(--trait);
    border-radius: var(--r-rond);
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--places) - 3px), transparent 0 calc(100% / var(--places)));
    mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--places) - 3px), transparent 0 calc(100% / var(--places)));
    transition: background-size var(--d-ample) var(--c-encre);
  }
  .jauge--complete {
    --j-couleur: var(--or);
  }
  .entete {
    position: sticky;
    top: 0;
    z-index: var(--z-entete);
    display: flex;
    align-items: center;
    gap: var(--e-2);
    min-height: 3.5rem;
    padding-top: env(safe-area-inset-top);
    padding-left: max(var(--e-2), env(safe-area-inset-left));
    padding-right: max(var(--e-2), env(safe-area-inset-right));
    background: var(--fond);
    border-bottom: 1px solid var(--trait);
  }
  .haut {
    position: sticky;
    top: 0;
    z-index: var(--z-entete);
    padding-top: env(safe-area-inset-top);
    background: var(--fond);
    & > .entete,
    & > .bandeau-rencontre {
      position: static;
      padding-top: 0;
    }
    & > .bandeau-rencontre {
      padding-top: var(--e-2);
    }
  }
  .entete__titre {
    flex: 1;
    min-width: 0;
    padding-inline: var(--e-2);
    font-family: var(--police-titre);
    font-size: var(--t-5);
    font-weight: 560;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .entete__actions {
    display: flex;
    align-items: center;
    gap: var(--e-1);
  }
  .marque {
    display: inline-flex;
    align-items: center;
    color: var(--texte);
    text-decoration: none;
    font-family: var(--police-titre);
    font-size: var(--t-5);
    font-weight: 620;
    font-variation-settings: "SOFT" 80, "WONK" 1;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
    --balise-largeur: 0.6em;
    --balise-barre: 0.17em;
    --balise-ecart: 0.1em;
    & img {
      display: none;
    }
    &::after {
      content: "";
      flex: none;
      align-self: flex-start;
      width: var(--balise-largeur);
      height: calc(2 * var(--balise-barre) + var(--balise-ecart));
      margin: 0.02em 0 0 0.14em;
      border-radius: 1px;
      background:
        linear-gradient(var(--balise), var(--balise)) left top / 100% var(--balise-barre) no-repeat,
        linear-gradient(var(--balise-bas), var(--balise-bas)) left bottom / 100% var(--balise-barre) no-repeat;
      rotate: var(--balise-inclinaison);
    }
    & em {
      font-style: italic;
      font-weight: 480;
      color: var(--accent);
    }
    &:hover {
      color: var(--texte);
      &::after {
        animation: kl-balise calc(var(--d-instant) + var(--d-decalage)) var(--c-sortie) both;
      }
    }
  }
  @media (forced-colors: active) {
    .marque::after {
      forced-color-adjust: none;
    }
  }
  .nav-basse {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-nav);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    max-width: var(--colonne);
    margin-inline: auto;
    padding: var(--e-1) max(var(--e-2), env(safe-area-inset-right)) calc(var(--e-1) + env(safe-area-inset-bottom))
      max(var(--e-2), env(safe-area-inset-left));
    background: var(--surface);
    border-top: 1px solid var(--trait);
  }
  @media (min-width: 40rem) {
    .nav-basse {
      bottom: var(--e-4);
      border: 1px solid var(--trait);
      border-radius: var(--r-4);
      box-shadow: var(--ombre-2);
    }
  }
  .nav-basse__lien {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--e-1);
    min-height: 3.5rem;
    border-radius: var(--r-2);
    color: var(--texte-doux);
    font-size: 0.6875rem;
    font-weight: var(--graisse-fort);
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    transition: color var(--d-vite) var(--c-sortie);
    &:hover {
      color: var(--texte);
    }
    & .icone {
      transition: translate var(--d-pose) var(--c-encre);
    }
    &[aria-current="page"] {
      color: var(--texte);
      & .icone {
        color: var(--accent);
        translate: 0 -1px;
      }
      &::after {
        --balise-barre: 0.1875rem;
        --balise-ecart: 0.125rem;
        content: "";
        position: absolute;
        bottom: 0.25rem;
        width: 0.875rem;
        height: calc(2 * var(--balise-barre) + var(--balise-ecart));
        background:
          linear-gradient(var(--balise), var(--balise)) left top / 100% var(--balise-barre) no-repeat,
          linear-gradient(var(--balise-bas), var(--balise-bas)) left bottom / 100% var(--balise-barre) no-repeat;
        rotate: var(--balise-inclinaison);
        animation: kl-balise calc(var(--d-instant) + var(--d-decalage)) var(--c-sortie) both;
      }
    }
    & .pastille {
      position: absolute;
      top: 0.35rem;
      left: calc(50% + 0.4rem);
    }
  }
  .nav-basse__requete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--e-1);
    min-height: 3.5rem;
    padding-bottom: 0.45rem;
    justify-content: flex-end;
    color: var(--texte);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    &:focus-visible {
      outline: none;
    }
    &:focus-visible .nav-basse__touche {
      outline: 2px solid var(--focus);
      outline-offset: 3px;
      box-shadow: 0 0 0 4px var(--balise), var(--ombre-accent);
    }
    &:hover .nav-basse__touche {
      background: var(--accent-vif);
      scale: 1.05;
    }
    &:active .nav-basse__touche {
      scale: 0.94;
      background: var(--accent-appui);
    }
  }
  .nav-basse__touche {
    display: grid;
    place-items: center;
    width: 3.75rem;
    height: 3.75rem;
    margin-top: -1.75rem;
    border-radius: var(--forme-touche);
    background: var(--accent);
    color: var(--sur-accent);
    box-shadow:
      0 0 0 5px var(--fond),
      var(--ombre-accent);
    transition:
      scale var(--d-vite) var(--c-pas),
      background-color var(--d-vite) var(--c-sortie);
    & .icone {
      width: 1.75rem;
      height: 1.75rem;
      stroke-width: 2.4;
    }
  }
  @keyframes kl-tache {
    from {
      border-radius: var(--forme-touche);
      rotate: -3deg;
    }
    to {
      border-radius: var(--forme-touche-2);
      rotate: 3deg;
    }
  }
  .bandeau-rencontre {
    position: sticky;
    top: 0;
    z-index: var(--z-bandeau);
    display: flex;
    align-items: center;
    gap: var(--e-3);
    padding: var(--e-2) max(var(--e-4), env(safe-area-inset-right)) var(--e-2) max(var(--e-4), env(safe-area-inset-left));
    padding-top: calc(var(--e-2) + env(safe-area-inset-top));
    background: color-mix(in oklab, var(--accent) 14%, var(--fond));
    border-bottom: 1px solid var(--accent-trait);
    color: var(--texte);
    font-size: var(--t-2);
    line-height: 1.35;
    & > .icone {
      color: var(--accent-vif);
    }
    & strong {
      display: block;
      font-family: var(--police-titre);
      font-size: var(--t-3);
      font-weight: 600;
      font-style: italic;
    }
    & span {
      color: var(--texte-doux);
    }
    & .bouton {
      margin-left: auto;
      flex: none;
    }
  }
  .bandeau-rencontre__texte {
    flex: 1;
    min-width: 0;
  }
  .note {
    --n-couleur: var(--texte-doux);
    display: flex;
    align-items: flex-start;
    gap: var(--e-3);
    padding: var(--e-3) var(--e-4);
    border-radius: var(--r-2);
    border: 1px solid color-mix(in oklab, var(--n-couleur) 40%, transparent);
    background: color-mix(in oklab, var(--n-couleur) 9%, transparent);
    font-size: var(--t-2);
    & > .icone {
      color: var(--n-couleur);
    }
    &[data-type="succes"] {
      --n-couleur: var(--vert);
    }
    &[data-type="erreur"] {
      --n-couleur: var(--danger);
    }
    &[data-type="or"] {
      --n-couleur: var(--or);
    }
    &[data-type="info"] {
      --n-couleur: var(--c-lac);
    }
  }
  .feuille {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: var(--colonne);
    max-height: min(92dvh, 46rem);
    margin: 0 auto;
    padding: 0;
    border: 1px solid var(--trait);
    border-bottom: 0;
    border-radius: var(--r-4) var(--r-4) 0 0;
    background: var(--surface-haute);
    color: var(--texte);
    box-shadow: var(--ombre-3);
    overflow: hidden;
    opacity: 0;
    translate: 0 100%;
    transition:
      translate var(--d-ample) var(--c-sortie),
      opacity var(--d-pose) var(--c-sortie),
      overlay var(--d-ample) allow-discrete,
      display var(--d-ample) allow-discrete;
    &[open] {
      display: flex;
      flex-direction: column;
      opacity: 1;
      translate: 0 var(--feuille-tire, 0px);
      @starting-style {
        opacity: 0;
        translate: 0 100%;
      }
    }
    &::backdrop {
      background: var(--voile-fond);
      opacity: 0;
      transition:
        opacity var(--d-ample) var(--c-sortie),
        overlay var(--d-ample) allow-discrete,
        display var(--d-ample) allow-discrete;
    }
    &[open]::backdrop {
      opacity: 1;
      @starting-style {
        opacity: 0;
      }
    }
    &[data-glisse] {
      transition: none;
    }
  }
  @media (min-width: 40rem) {
    .feuille {
      inset: 0;
      margin: auto;
      height: fit-content;
      border: 1px solid var(--trait);
      border-radius: var(--r-4);
      translate: 0 2rem;
      &[open] {
        @starting-style {
          translate: 0 2rem;
        }
      }
    }
    .feuille__poignee {
      display: none;
    }
  }
  .feuille__poignee {
    flex: none;
    display: grid;
    place-items: center;
    height: var(--e-6);
    cursor: grab;
    touch-action: none;
    &::before {
      content: "";
      width: 2.5rem;
      height: 0.25rem;
      border-radius: var(--r-rond);
      background: var(--trait-fort);
    }
  }
  .feuille__tete {
    flex: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--e-3);
    padding: var(--e-2) var(--e-3) var(--e-3) var(--e-6);
    & :is(h2, h3) {
      font-size: var(--t-6);
      padding-top: var(--e-2);
    }
  }
  @media (min-width: 40rem) {
    .feuille__tete {
      padding-top: var(--e-5);
    }
  }
  @media (min-width: 40rem) {
    .feuille__poignee {
      display: none;
    }
  }
  .feuille__corps {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--e-2) var(--e-6) var(--e-6);
    display: flex;
    flex-direction: column;
    gap: var(--e-5);
  }
  .feuille__pied {
    flex: none;
    display: flex;
    gap: var(--e-3);
    padding: var(--e-4) var(--e-6) calc(var(--e-4) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--trait);
    background: var(--surface-haute);
    & > .bouton {
      flex: 1;
    }
  }
  .toasts {
    position: fixed;
    inset: auto 0 calc(var(--nav-hauteur) + var(--e-10) + env(safe-area-inset-bottom)) 0;
    z-index: var(--z-toast);
    width: min(100% - var(--e-8), 26rem);
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: var(--e-2);
    pointer-events: none;
    &:not(:popover-open):not(.toasts--visible) {
      display: none;
    }
  }
  @media (hover: none) {
    .toast:not(:has(.toast__action)) {
      pointer-events: none;
    }
  }
  .toast {
    --t-couleur: var(--texte-doux);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: var(--e-3);
    padding: var(--e-3) var(--e-3) var(--e-3) var(--e-4);
    min-height: 3.25rem;
    border-radius: var(--r-2);
    border: 1px solid var(--trait-fort);
    border-left: 4px solid var(--t-couleur);
    background: var(--surface-haute);
    color: var(--texte);
    box-shadow: var(--ombre-3);
    font-size: var(--t-2);
    font-weight: var(--graisse-moyen);
    animation: kl-toast-entre var(--d-pose) var(--c-encre) both;
    & > .icone {
      color: var(--t-couleur);
    }
    &[data-type="succes"] {
      --t-couleur: var(--vert);
    }
    &[data-type="erreur"] {
      --t-couleur: var(--danger);
    }
    &[data-type="or"] {
      --t-couleur: var(--or);
    }
    &[data-type="info"] {
      --t-couleur: var(--c-lac);
    }
    &[data-sort] {
      animation: kl-toast-sort var(--d-vite) var(--c-entree) both;
    }
  }
  .toast__texte {
    flex: 1;
    min-width: 0;
  }
  .toast__action {
    flex: none;
    min-height: var(--cible);
    padding-inline: var(--e-3);
    border-radius: var(--r-1);
    color: var(--accent);
    font-weight: var(--graisse-fort);
    &:hover {
      color: var(--accent-vif);
    }
  }
  @keyframes kl-toast-entre {
    from {
      opacity: 0;
      translate: 0 1rem;
      scale: 0.96;
    }
  }
  @keyframes kl-toast-sort {
    to {
      opacity: 0;
      translate: 0 0.5rem;
    }
  }
  .etat-vide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--e-3);
    padding: var(--e-10) var(--e-6);
    text-align: center;
    & img {
      width: min(60%, 11rem);
      margin-bottom: var(--e-2);
    }
    & :is(h2, h3) {
      font-size: var(--t-5);
    }
    & p {
      max-width: 34ch;
      color: var(--texte-doux);
    }
    & .bouton {
      margin-top: var(--e-3);
    }
  }
  .squelette {
    position: relative;
    overflow: hidden;
    min-height: 1rem;
    border-radius: var(--r-1);
    background: var(--surface-haute);
    color: transparent;
    user-select: none;
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      translate: -100% 0;
      background: linear-gradient(100deg, transparent 20%, color-mix(in oklab, var(--texte) 9%, transparent) 50%, transparent 80%);
      animation: kl-lavis 1.6s var(--c-souffle) infinite;
    }
  }
  .squelette--ligne {
    height: 0.9rem;
    width: var(--l, 100%);
  }
  .squelette--titre {
    height: 1.6rem;
    width: var(--l, 70%);
  }
  .squelette--pastille {
    width: 3rem;
    height: 3rem;
    flex: none;
    border-radius: var(--forme-touche);
  }
  .squelette--toile {
    aspect-ratio: 4 / 5;
    border-radius: var(--r-3);
  }
  .squelette--bouton {
    height: var(--cible);
    width: 7rem;
    border-radius: var(--r-rond);
  }
  @keyframes kl-lavis {
    to {
      translate: 100% 0;
    }
  }
  .fil {
    display: flex;
    flex-direction: column;
    gap: var(--e-2);
  }
  .bulle {
    align-self: flex-start;
    max-width: min(82%, 32rem);
    padding: var(--e-3) var(--e-4);
    border-radius: var(--r-3) var(--r-3) var(--r-3) var(--r-1);
    background: var(--surface-haute);
    border: 1px solid var(--trait);
    color: var(--texte);
    line-height: 1.45;
    & + .bulle:not(.bulle--moi) {
      border-top-left-radius: var(--r-1);
    }
  }
  .bulle--moi {
    align-self: flex-end;
    border-radius: var(--r-3) var(--r-3) var(--r-1) var(--r-3);
    background: var(--accent);
    border-color: transparent;
    color: var(--sur-accent);
    & .bulle__heure {
      color: var(--sur-accent);
    }
    & a {
      color: inherit;
    }
  }
  .bulle--entre {
    animation: kl-bulle var(--d-pose) var(--c-encre) both;
    transform-origin: 0 100%;
    &.bulle--moi {
      transform-origin: 100% 100%;
    }
  }
  @keyframes kl-bulle {
    from {
      opacity: 0;
      scale: 0.9;
      translate: 0 0.5rem;
    }
  }
  .bulle__heure {
    display: block;
    margin-top: var(--e-1);
    font-size: var(--t-1);
    color: var(--texte-discret);
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
  .bulle--jalon {
    align-self: center;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: var(--e-2);
    margin-block: var(--e-3);
    padding: var(--e-1) var(--e-4);
    border: 0;
    border-radius: var(--r-rond);
    background: none;
    color: var(--texte-discret);
    font-size: var(--t-2);
    text-align: center;
  }
  .bulle--evenement {
    background: var(--or-voile);
    color: var(--or);
    font-family: var(--police-main);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
  }
  .bulle--ecrit {
    display: inline-flex;
    gap: 0.3rem;
    padding-block: var(--e-4);
    & i {
      width: 0.45rem;
      height: 0.45rem;
      border-radius: var(--forme-touche);
      background: var(--texte-doux);
      animation: kl-ecrit 1.2s var(--c-souffle) infinite;
    }
    & i:nth-child(2) {
      animation-delay: 0.15s;
    }
    & i:nth-child(3) {
      animation-delay: 0.3s;
    }
  }
  @keyframes kl-ecrit {
    0%, 60%, 100% {
      translate: 0 0;
      opacity: 0.5;
    }
    30% {
      translate: 0 -0.3rem;
      opacity: 1;
    }
  }
  .saisie-fil {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: var(--e-2);
    padding: var(--e-2) var(--e-3) calc(var(--e-2) + env(safe-area-inset-bottom));
    background: var(--fond);
    border-top: 1px solid var(--trait);
    & .champ__saisie {
      border-radius: var(--r-3);
      min-height: var(--cible);
    }
  }
  .marque-france {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--e-3);
    max-width: none;
    color: var(--texte-discret);
    font-size: var(--t-1);
    font-weight: var(--graisse-fort);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    &::before,
    &::after {
      content: "";
      flex: 1;
      max-width: 3rem;
      height: 1px;
      background: var(--trait-fort);
      opacity: 0.6;
    }
    & .icone {
      width: 1rem;
      height: 1rem;
      color: var(--or);
      stroke-width: 2;
    }
    @media (width < 30rem) {
      gap: var(--e-2);
      letter-spacing: 0.08em;
      line-height: 1.4;
      white-space: normal;
      text-align: center;
      text-wrap: balance;
      &::before,
      &::after {
        display: none;
      }
    }
  }
  .courbes {
    --carte-courbes-couleur: var(--trait);
    position: relative;
    isolation: isolate;
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background: var(--carte-courbes-couleur);
      -webkit-mask: url("/img/courbes.svg") center / cover no-repeat;
      mask: url("/img/courbes.svg") center / cover no-repeat;
    }
  }
  .planche {
    display: flex;
    flex-direction: column;
    gap: var(--e-3);
    margin: 0;
    min-width: 0;
    & > .portrait {
      width: 100%;
    }
    & > .portrait .portrait__toile {
      animation: none;
    }
  }
  [data-famille="nuit"] {
    --carte-sur-planche: var(--carte-sur-planche-nuit);
    --carte-sur-planche-doux: var(--carte-sur-planche-nuit-doux);
    --carte-planche-accent: var(--carte-planche-nuit-accent);
    --carte-courbes: var(--carte-courbes-nuit);
  }
  .planche--vivante > .portrait .portrait__toile {
    transform-origin: 50% 70%;
    animation: kl-souffle var(--d-souffle) var(--c-souffle) infinite alternate;
  }
  .cartouche {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--e-2);
    padding-inline: var(--e-1);
    line-height: var(--interligne-titre);
  }
  .cartouche__nom {
    font-family: var(--police-titre);
    font-size: var(--t-5);
    font-weight: 620;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    letter-spacing: -0.012em;
    color: var(--texte);
  }
  .cartouche__latin {
    font-family: var(--police-titre);
    font-size: var(--t-2);
    font-style: italic;
    font-weight: var(--graisse-normal);
    color: var(--texte-doux);
  }
  .cartouche__mention {
    margin-left: auto;
    align-self: center;
    padding: 0.125rem var(--e-2);
    border: 1px solid var(--trait);
    border-radius: var(--r-1);
    color: var(--texte-discret);
    font-size: var(--t-1);
    font-weight: var(--graisse-moyen);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .planche--compacte .cartouche__nom {
    font-size: var(--t-4);
  }
  .question-test {
    display: flex;
    flex-direction: column;
    gap: var(--e-6);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    container-type: inline-size;
  }
  .question-test__enonce {
    float: left;
    width: 100%;
    padding: 0;
    font-family: var(--police-titre);
    font-size: var(--t-6);
    font-weight: 560;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    line-height: var(--interligne-titre);
    letter-spacing: -0.012em;
    text-wrap: balance;
    & em {
      font-style: italic;
      font-weight: 480;
      color: var(--accent);
    }
    & + * {
      clear: both;
    }
  }
  .question-test__aide {
    color: var(--texte-doux);
    font-size: var(--t-2);
  }
  .crans {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: var(--e-1);
    &::before {
      content: "";
      position: absolute;
      top: calc(var(--cible) / 2);
      left: 10%;
      right: 10%;
      border-top: 2px dashed var(--trait-fort);
      translate: 0 -1px;
    }
  }
  .cran {
    --cran: 2.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--e-2);
    min-height: var(--cible);
    padding: 0;
    border: 0;
    background: none;
    color: var(--texte-doux);
    font-size: var(--t-2);
    font-weight: var(--graisse-moyen);
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    &:nth-child(2),
    &:nth-child(4) {
      --cran: 2.25rem;
    }
    &:nth-child(3) {
      --cran: 1.75rem;
    }
    & > input,
    &:is(button)::before {
      appearance: none;
      content: "";
      display: grid;
      place-items: center;
      width: var(--cran);
      height: var(--cran);
      margin: calc((var(--cible) - var(--cran)) / 2) 0;
      border: 2px solid var(--trait-fort);
      border-radius: 50%;
      background: var(--surface);
      cursor: pointer;
      transition:
        background-color var(--d-instant) var(--c-sortie),
        border-color var(--d-instant) var(--c-sortie),
        scale var(--d-instant) var(--c-pas);
    }
    &:hover > input,
    &:is(button):hover::before {
      border-color: var(--accent);
      scale: 1.06;
    }
    &:has(> input:checked),
    &[aria-checked="true"] {
      color: var(--texte);
      font-weight: var(--graisse-fort);
    }
    & > input:checked,
    &[aria-checked="true"]::before {
      border-color: var(--accent);
      background: var(--accent);
      box-shadow: inset 0 0 0 3px var(--surface), var(--ombre-accent);
      animation: kl-pas var(--d-instant) var(--c-pas);
    }
    & > input:focus-visible {
      outline: 2px solid var(--focus);
      outline-offset: 3px;
      box-shadow: 0 0 0 4px var(--balise);
    }
    & > input:checked:focus-visible {
      box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 4px var(--balise);
    }
    & > input:disabled,
    &:is(button):disabled {
      cursor: not-allowed;
      opacity: 0.45;
    }
  }
  .cran__libelle {
    max-width: 100%;
  }
  .crans > .cran:nth-child(2) .cran__libelle,
  .crans > .cran:nth-child(3) .cran__libelle,
  .crans > .cran:nth-child(4) .cran__libelle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  @container (min-width: 30rem) {
    .crans > .cran:nth-child(2) .cran__libelle,
    .crans > .cran:nth-child(3) .cran__libelle,
    .crans > .cran:nth-child(4) .cran__libelle {
      position: static;
      width: auto;
      height: auto;
      overflow: visible;
      clip-path: none;
      white-space: normal;
    }
  }
  @keyframes kl-pas {
    from {
      scale: 0.86;
    }
  }
  .dilemme {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: var(--e-2);
  }
  @container (min-width: 34rem) {
    .dilemme {
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      gap: var(--e-3);
    }
  }
  .dilemme__choix {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--e-3);
    min-height: var(--cible);
    padding: var(--e-3);
    border: 2px solid var(--trait);
    border-radius: var(--r-3);
    background: var(--surface);
    color: var(--texte);
    text-align: left;
    cursor: pointer;
    transition:
      translate var(--d-pose) var(--c-pas),
      box-shadow var(--d-pose) var(--c-sortie),
      border-color var(--d-vite) var(--c-sortie),
      opacity var(--d-pose) var(--c-sortie);
    & > input {
      position: absolute;
      inset: 0;
      opacity: 0;
      margin: 0;
      cursor: pointer;
    }
    &:hover {
      border-color: var(--trait-fort);
    }
    &:active {
      translate: 0 1px;
    }
  }
  .dilemme__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-2);
    background: var(--carte-planche, var(--fond-creux));
  }
  @container (min-width: 34rem) {
    .dilemme__image {
      aspect-ratio: 4 / 3;
    }
  }
  .dilemme__texte {
    font-family: var(--police-titre);
    font-size: var(--t-5);
    font-weight: 560;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    line-height: var(--interligne-titre);
    text-wrap: balance;
  }
  .dilemme__ou {
    align-self: center;
    justify-self: center;
    font-family: var(--police-titre);
    font-style: italic;
    font-size: var(--t-4);
    color: var(--texte-doux);
  }
  .dilemme__choix:is([aria-pressed="true"], [aria-checked="true"], :has(> input:checked)) {
    --b-ombre: var(--c-ombre-posee);
    border-color: var(--accent);
    translate: 0 -3px;
    box-shadow: var(--b-ombre);
  }
  .dilemme:has(.dilemme__choix[aria-pressed="true"], .dilemme__choix[aria-checked="true"], .dilemme__choix > input:checked)
    .dilemme__choix:not([aria-pressed="true"], [aria-checked="true"], :has(> input:checked)) {
    opacity: 0.4;
    &:is(:hover, :focus-visible, :focus-within) {
      opacity: 1;
    }
  }
  .progression {
    --fait: 0;
    --total: 12;
    display: flex;
    align-items: center;
    gap: var(--e-3);
    font-size: var(--t-2);
    color: var(--texte-doux);
    font-variant-numeric: tabular-nums;
    & strong {
      color: var(--texte);
    }
  }
  .progression__texte {
    flex: none;
    margin: 0;
    white-space: nowrap;
  }
  .progression__sentier {
    position: relative;
    flex: 1;
    min-width: 6rem;
    height: calc(2 * 0.25rem + 0.125rem);
    background: linear-gradient(var(--trait-fort), var(--trait-fort)) left center / 100% 2px no-repeat;
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--total) - 4px), transparent 0 calc(100% / var(--total)));
    mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--total) - 4px), transparent 0 calc(100% / var(--total)));
    &::before,
    &::after {
      content: "";
      position: absolute;
      left: 0;
      width: calc(var(--fait) / var(--total) * 100%);
      height: 0.25rem;
      transition: width var(--d-instant) var(--c-sortie);
    }
    &::before {
      top: 0;
      background: var(--balise);
    }
    &::after {
      bottom: 0;
      background: var(--balise-bas);
      transition-delay: var(--d-decalage);
    }
  }
  .revelation {
    --carte-courbes-couleur: var(--carte-courbes);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--e-4);
    padding: var(--e-10) var(--marge-page) var(--e-8);
    border-radius: var(--r-4);
    background: var(--carte-planche, var(--surface));
    color: var(--carte-sur-planche);
    text-align: center;
    overflow: hidden;
    animation: kl-revele-fond var(--d-pose) var(--c-sortie) 300ms both;
    &::before {
      animation: kl-apparait var(--d-pose) var(--c-sortie) 300ms both;
    }
  }
  .revelation__sentier {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--e-4);
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
    animation: kl-rejoint var(--d-ample) var(--c-entree) both;
    & li {
      --balise-barre: 0.25rem;
      width: 0.875rem;
      height: calc(2 * var(--balise-barre) + 0.125rem);
      background:
        linear-gradient(var(--balise), var(--balise)) top / 100% var(--balise-barre) no-repeat,
        linear-gradient(var(--balise-bas), var(--balise-bas)) bottom / 100% var(--balise-barre) no-repeat;
      rotate: var(--balise-inclinaison);
    }
    & li:nth-child(even) {
      translate: 0 0.375rem;
    }
  }
  .revelation__planche {
    width: min(100%, 17rem);
    & > .portrait {
      box-shadow: 0 0 0 1px color-mix(in oklab, var(--carte-sur-planche) 14%, transparent), var(--ombre-2);
    }
    & > .portrait .portrait__toile {
      transform-origin: 50% 70%;
      animation:
        kl-apparait var(--d-instant) var(--c-sortie) 540ms both,
        kl-aplats calc(3 * var(--d-pose)) steps(3, jump-none) 540ms both,
        kl-souffle var(--d-souffle) var(--c-souffle) 1260ms infinite alternate;
    }
    & .cartouche__nom,
    & .cartouche__latin {
      color: var(--carte-sur-planche);
    }
    & .cartouche__mention {
      border-color: color-mix(in oklab, var(--carte-sur-planche) 30%, transparent);
      color: var(--carte-sur-planche-doux);
    }
  }
  .revelation__titre {
    margin: 0;
    font-family: var(--police-titre);
    font-size: var(--t-7);
    font-weight: 560;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    line-height: 1.1;
    color: var(--carte-sur-planche);
    animation: kl-ecrit-ligne var(--d-ample) var(--c-sortie) 1260ms both;
    & em {
      color: var(--carte-planche-accent);
    }
  }
  .revelation__latin {
    max-width: 32ch;
    margin-inline: auto;
    font-family: var(--police-titre);
    font-size: var(--t-4);
    color: var(--carte-sur-planche-doux);
    animation: kl-ecrit-ligne var(--d-ample) var(--c-sortie) 1560ms both;
    & em {
      color: var(--carte-sur-planche);
    }
  }
  .revelation__traits {
    display: flex;
    flex-direction: column;
    gap: var(--e-2);
    margin: var(--e-2) 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--t-4);
    & li {
      animation: kl-monte var(--d-pose) var(--c-sortie) both;
      animation-delay: calc(1860ms + var(--i, 0) * var(--d-decalage));
    }
    & li:nth-child(2) { --i: 1; }
    & li:nth-child(3) { --i: 2; }
  }
  .revelation__affinites {
    margin-inline: auto;
    color: var(--carte-sur-planche-doux);
    animation: kl-monte var(--d-pose) var(--c-sortie) 2100ms both;
  }
  .revelation__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--e-3);
    margin-top: var(--e-4);
    animation: kl-monte var(--d-pose) var(--c-sortie) 2340ms both;
    & .bouton--fantome,
    & .bouton--secondaire {
      --b-texte: var(--carte-sur-planche);
      --b-trait: color-mix(in oklab, var(--carte-sur-planche) 45%, transparent);
      --b-fond-survol: color-mix(in oklab, var(--carte-sur-planche) 8%, transparent);
    }
  }
  .revelation__passer {
    --b-texte: var(--carte-sur-planche-doux);
    --b-fond-survol: color-mix(in oklab, var(--carte-sur-planche) 8%, transparent);
    position: absolute;
    top: var(--e-2);
    right: var(--e-2);
  }
  .revelation[data-temps="fini"] {
    &,
    &::before,
    & .revelation__titre,
    & .revelation__latin,
    & .revelation__traits li,
    & .revelation__affinites,
    & .revelation__actions {
      animation: none;
    }
    & .revelation__sentier {
      display: none;
    }
    & .revelation__planche > .portrait .portrait__toile {
      animation: kl-souffle var(--d-souffle) var(--c-souffle) infinite alternate;
    }
    & .revelation__passer {
      display: none;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .revelation__sentier {
      display: none;
    }
  }
  :root[data-calme] .revelation__sentier {
    display: none;
  }
  @keyframes kl-rejoint {
    70% {
      gap: 0;
      opacity: 1;
    }
    to {
      gap: 0;
      opacity: 0;
      scale: 0.6;
    }
  }
  @keyframes kl-revele-fond {
    from {
      background-color: var(--surface);
    }
  }
  @keyframes kl-apparait {
    from {
      opacity: 0;
    }
  }
  @keyframes kl-aplats {
    from {
      filter: grayscale(1) contrast(0.3) brightness(1.3);
    }
    to {
      filter: none;
    }
  }
  @keyframes kl-ecrit-ligne {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }
  @keyframes kl-monte {
    from {
      opacity: 0;
      translate: 0 var(--e-1);
    }
  }
  .resultat-type {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--e-3);
    padding: var(--e-6) var(--e-5) var(--e-5);
    border: 1px solid var(--trait);
    border-radius: var(--r-3);
    background: var(--surface);
    overflow: hidden;
    &::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: var(--e-2);
      background: var(--carte-planche, var(--balise));
    }
  }
  .resultat-type__nom {
    font-size: var(--t-6);
    font-weight: 620;
  }
  .resultat-type__latin {
    margin-top: calc(var(--e-2) * -1);
    font-family: var(--police-titre);
    font-size: var(--t-4);
    color: var(--texte-doux);
  }
  .resultat-type__phrase {
    font-size: var(--t-4);
  }
  .resultat-type__traits {
    display: flex;
    flex-direction: column;
    gap: var(--e-2);
    margin: 0;
    padding: 0;
    list-style: none;
    & li {
      --balise-barre: 0.1875rem;
      position: relative;
      padding-left: var(--e-6);
      &::before {
        content: "";
        position: absolute;
        left: 0.125rem;
        top: 0.45em;
        width: 0.75rem;
        height: calc(2 * var(--balise-barre) + 0.125rem);
        background:
          linear-gradient(var(--balise), var(--balise)) top / 100% var(--balise-barre) no-repeat,
          linear-gradient(var(--balise-bas), var(--balise-bas)) bottom / 100% var(--balise-barre) no-repeat;
        rotate: var(--balise-inclinaison);
      }
    }
  }
  .resultat-type__axes {
    display: flex;
    flex-direction: column;
    gap: var(--e-4);
    padding-top: var(--e-4);
    border-top: 1px solid var(--trait);
  }
  .axe {
    --part: 0.55;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(5rem, 2fr) minmax(0, 1fr);
    grid-template-areas:
      "gauche barre droite"
      "libelle libelle libelle";
    align-items: center;
    gap: var(--e-1) var(--e-3);
    font-size: var(--t-2);
    color: var(--texte-doux);
    &[data-intensite="nettement"] {
      --part: 0.92;
    }
  }
  .axe__pole {
    grid-area: gauche;
    overflow-wrap: anywhere;
    & ~ .axe__pole {
      grid-area: droite;
      text-align: right;
    }
  }
  .axe[data-penche="gauche"] .axe__pole:first-child,
  .axe[data-penche="droite"] .axe__pole ~ .axe__pole {
    color: var(--texte);
    font-weight: var(--graisse-fort);
  }
  .axe__barre {
    grid-area: barre;
    position: relative;
    height: var(--axe-hauteur);
    border-radius: var(--r-rond);
    background: var(--axe-piste);
    box-shadow: inset 0 0 0 1px var(--trait);
    &::before {
      content: "";
      position: absolute;
      left: 50%;
      top: -0.25rem;
      bottom: -0.25rem;
      width: 2px;
      translate: -50% 0;
      border-radius: 1px;
      background: var(--axe-repere);
    }
    &::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: calc(50% * var(--part));
      background: var(--axe-plein);
      transition: width var(--d-ample) var(--c-pas);
    }
  }
  .axe[data-penche="droite"] .axe__barre::after {
    left: 50%;
    border-radius: 0 var(--r-rond) var(--r-rond) 0;
  }
  .axe[data-penche="gauche"] .axe__barre::after {
    right: 50%;
    border-radius: var(--r-rond) 0 0 var(--r-rond);
  }
  .axe[data-penche="milieu"] .axe__barre::after {
    left: 50%;
    width: 0.75rem;
    translate: -50% 0;
    border-radius: var(--r-rond);
  }
  .axe__libelle {
    grid-area: libelle;
    justify-self: center;
    margin: 0;
    color: var(--texte);
    font-weight: var(--graisse-fort);
  }
  .choix-espece {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--e-4) var(--e-3);
    align-items: end;
    & > :first-child {
      grid-column: 1 / -1;
      justify-self: center;
      width: min(100%, 16rem);
    }
  }
  @media (min-width: 48rem) {
    .choix-espece {
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
      & > :first-child {
        grid-column: auto;
        width: 100%;
      }
    }
  }
  .choix-espece__option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--e-2);
    min-width: 0;
    cursor: pointer;
    & > input {
      position: absolute;
      inset: 0;
      z-index: 2;
      opacity: 0;
      margin: 0;
      cursor: pointer;
    }
    & .portrait {
      transition: box-shadow var(--d-vite) var(--c-sortie), translate var(--d-pose) var(--c-pas);
    }
    &:hover .portrait {
      --p-lisere: var(--trait-fort);
    }
    &:has(> input:checked) .portrait {
      box-shadow: 0 0 0 3px var(--accent), var(--c-ombre-posee);
      translate: 0 -3px;
    }
    &:has(> input:checked) .choix-espece__titre::after {
      content: " · choisi";
      color: var(--accent);
    }
    &:has(> input:focus-visible) .portrait {
      outline: 2px solid var(--focus);
      outline-offset: 4px;
    }
  }
  .choix-espece__titre {
    font-size: var(--t-1);
    font-weight: var(--graisse-fort);
    letter-spacing: var(--approche-capitales);
    text-transform: uppercase;
    color: var(--texte-doux);
  }
  .carte-vue {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: clamp(14rem, 40dvh, 26rem);
    border: 1px solid var(--trait);
    border-radius: var(--r-3);
    background: var(--carte-terre);
    transition: height var(--d-ample) var(--c-sortie);
    &[data-replie] {
      height: 5.5rem;
    }
  }
  .carte-vue--panneau {
    position: sticky;
    top: var(--e-4);
    height: calc(100dvh - 2 * var(--e-4));
    min-width: var(--carte-panneau-min);
  }
  .carte-vue__toile {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity var(--d-pose) var(--c-sortie);
  }
  .carte-vue[data-etat="prete"] .carte-vue__toile {
    opacity: 1;
  }
  .carte-vue__etat {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--e-3);
    max-width: none;
    margin: 0;
    padding: var(--e-6);
    color: var(--texte-doux);
    font-size: var(--t-2);
    text-align: center;
  }
  .carte-vue[data-etat="prete"] .carte-vue__etat {
    display: none;
  }
  .carte-vue[data-etat="chargement"] .carte-vue__etat::before,
  .carte-vue[data-etat="indisponible"] .carte-vue__etat::before {
    content: "";
    width: var(--balise-largeur);
    height: calc(2 * var(--balise-barre) + var(--balise-ecart));
    background:
      linear-gradient(var(--balise), var(--balise)) left top / 100% var(--balise-barre) no-repeat,
      linear-gradient(var(--balise-bas), var(--balise-bas)) left bottom / 100% var(--balise-barre) no-repeat;
    rotate: var(--balise-inclinaison);
  }
  .carte-vue[data-etat="chargement"] .carte-vue__etat::before {
    animation: kl-balise calc(var(--d-instant) * 4) var(--c-sortie) infinite alternate;
  }
  .carte-vue:is([data-etat="indisponible"], [data-vide])::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--trait);
    -webkit-mask: url("/img/courbes.svg") center / cover no-repeat;
    mask: url("/img/courbes.svg") center / cover no-repeat;
  }
  .carte-vue[data-etat="indisponible"] .carte-vue__etat {
    color: var(--texte);
    font-size: var(--t-3);
  }
  .carte-vue__controles {
    position: absolute;
    right: var(--e-2);
    top: var(--e-2);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--e-1);
    & .bouton--icone {
      --b-fond: var(--surface-haute);
      --b-trait: var(--trait);
      box-shadow: var(--ombre-1);
    }
  }
  .carte-vue[data-etat="indisponible"] .carte-vue__controles {
    display: none;
  }
  .carte-vue .maplibregl-ctrl-group {
    border: 1px solid var(--trait);
    border-radius: var(--r-2);
    background: var(--surface-haute);
    box-shadow: var(--ombre-1);
    overflow: hidden;
    & button {
      width: var(--cible);
      height: var(--cible);
    }
  }
  .carte-vue .maplibregl-ctrl-attrib {
    background: color-mix(in oklab, var(--surface-haute) 85%, transparent);
    color: var(--texte-doux);
    font-size: var(--t-1);
    & a {
      color: inherit;
    }
  }
  .epingle {
    --e-drapeau: 1.25rem;
    position: relative;
    display: grid;
    place-items: end center;
    width: var(--cible);
    height: var(--cible);
    padding: 0 0 2px;
    border: 0;
    background: none;
    cursor: pointer;
    transform-origin: 50% 100%;
    transition: scale var(--d-instant) var(--c-pas);
    &::before {
      content: "";
      position: absolute;
      left: calc(50% - 1px);
      bottom: 2px;
      width: 2px;
      height: var(--carte-epingle-taille);
      border-radius: 1px;
      background: var(--carte-epingle-contour);
      box-shadow: 0 0 0 1px var(--carte-terre);
    }
    &::after {
      content: "";
      position: absolute;
      left: calc(50% + 1px);
      bottom: calc(2px + var(--carte-epingle-taille) - 0.875rem);
      width: var(--e-drapeau);
      height: 0.875rem;
      border: 1.5px solid var(--carte-epingle-contour);
      border-radius: 2px;
      background:
        linear-gradient(var(--carte-epingle) 0 48%, var(--carte-epingle-contour) 48% 56%, var(--carte-epingle-bas) 56%);
      rotate: var(--balise-inclinaison);
      transform-origin: 0 100%;
      box-shadow: 0 0 0 1px var(--carte-terre);
    }
    &:not(.epingle--active, [aria-pressed="true"]):hover {
      scale: 1.08;
    }
  }
  .epingle--active,
  .epingle[aria-pressed="true"] {
    z-index: 3;
    scale: 1.18;
    animation: kl-plante var(--d-pose) var(--c-pas);
    &::after {
      box-shadow: 0 0 0 1px var(--carte-terre), 0 0 0 4px color-mix(in oklab, var(--balise) 55%, transparent);
    }
  }
  .epingle--groupe {
    place-items: center;
    padding: 0;
    &::before,
    &::after {
      content: none;
    }
  }
  .epingle__nombre {
    display: grid;
    place-items: center;
    min-width: var(--carte-epingle-taille);
    height: var(--carte-epingle-taille);
    padding-inline: var(--e-1);
    border: 1.5px solid var(--carte-epingle-contour);
    border-radius: var(--r-rond);
    background: var(--carte-epingle);
    color: var(--c-sur-balise);
    box-shadow: 0 0 0 1px var(--carte-terre), var(--ombre-1);
    font-size: var(--t-2);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }
  @keyframes kl-plante {
    from {
      translate: 0 -0.375rem;
    }
  }
  .bascule-vue {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: var(--e-1);
    padding: var(--e-1);
    border: 1px solid var(--trait);
    border-radius: var(--r-rond);
    background: var(--fond-creux);
    & [role="tab"] {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: var(--e-2);
      min-height: calc(var(--cible) - var(--e-2));
      min-width: var(--cible);
      padding-inline: var(--e-4);
      border: 0;
      border-radius: var(--r-rond);
      background: none;
      color: var(--texte-doux);
      font-size: var(--t-2);
      font-weight: var(--graisse-fort);
      white-space: nowrap;
      cursor: pointer;
      transition:
        background-color var(--d-vite) var(--c-sortie),
        color var(--d-vite) var(--c-sortie);
      &:hover {
        color: var(--texte);
      }
      & .icone {
        width: 1.125rem;
        height: 1.125rem;
      }
    }
    & [role="tab"][aria-selected="true"] {
      background: var(--texte);
      color: var(--fond);
    }
  }
  @media (min-width: 64rem) {
    .bascule-vue--mobile {
      display: none;
    }
  }
  .couche-legende {
    position: absolute;
    left: var(--e-2);
    bottom: var(--e-2);
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-1) var(--e-3);
    max-width: calc(100% - var(--e-4) - var(--cible));
    margin: 0;
    padding: var(--e-2) var(--e-3);
    border: 1px solid var(--trait);
    border-radius: var(--r-2);
    background: var(--surface-haute);
    box-shadow: var(--ombre-1);
    color: var(--texte);
    font-size: var(--t-1);
    font-weight: var(--graisse-moyen);
    list-style: none;
    & li {
      display: inline-flex;
      align-items: center;
      gap: var(--e-2);
    }
  }
  .couche-legende--libre {
    position: static;
    max-width: none;
  }
  .couche-legende__signe {
    flex: none;
    display: grid;
    place-items: center;
    width: 1rem;
    height: 0.75rem;
    &[data-signe="envie"] {
      border: 1.5px solid var(--carte-epingle-contour);
      border-radius: 2px;
      background: linear-gradient(var(--carte-epingle) 0 48%, var(--carte-epingle-contour) 48% 56%, var(--carte-epingle-bas) 56%);
      rotate: var(--balise-inclinaison);
    }
    &[data-signe="groupe"] {
      width: 1.25rem;
      height: 1.25rem;
      border: 1.5px solid var(--carte-epingle-contour);
      border-radius: var(--r-rond);
      background: var(--carte-epingle);
      color: var(--c-sur-balise);
      font-size: 0.625rem;
      font-weight: 700;
    }
    &[data-signe="quartier"] {
      width: 1.25rem;
      height: 0.875rem;
      border: 1.5px dashed var(--carte-quartier-trait);
      border-radius: 3px;
      background:
        repeating-linear-gradient(-45deg, var(--carte-quartier-trait) 0 1px, transparent 1px 4px),
        var(--carte-quartier);
    }
  }
  .puce-en-ligne {
    display: inline-flex;
    align-items: center;
    gap: var(--e-1);
    min-height: 1.75rem;
    padding: 0 var(--e-3) 0 var(--e-2);
    border: 1px solid var(--c-lac-trait);
    border-radius: var(--r-rond);
    background: var(--c-lac-voile);
    color: var(--texte);
    font-size: var(--t-2);
    font-weight: var(--graisse-fort);
    white-space: nowrap;
    & .icone {
      width: 1rem;
      height: 1rem;
      color: var(--c-lac);
      stroke-width: 2;
    }
  }
  .partie {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--e-4);
    padding: calc(var(--e-5) + var(--e-2)) var(--e-5) var(--e-5);
    border: 1px solid var(--trait);
    border-radius: var(--r-3);
    background: var(--surface);
    box-shadow: var(--ombre-1);
    overflow: hidden;
    &::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: var(--e-2);
      background:
        repeating-linear-gradient(90deg, var(--c-lac) 0 var(--e-2), transparent 0 calc(2 * var(--e-2))) top / 100% 50% no-repeat,
        repeating-linear-gradient(90deg, transparent 0 var(--e-2), var(--c-lac) 0 calc(2 * var(--e-2))) bottom / 100% 50% no-repeat,
        var(--c-lac-voile);
    }
    & > .bouton {
      align-self: flex-start;
    }
  }
  .partie__tete {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--e-2);
  }
  .partie__nom {
    font-size: var(--t-5);
    font-weight: 560;
  }
  .partie__meta {
    margin: 0;
    color: var(--texte-doux);
    font-size: var(--t-2);
  }
  .partie__places {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--e-3);
    color: var(--texte-doux);
    font-size: var(--t-2);
    font-variant-numeric: tabular-nums;
  }
  .partie__place-libre {
    width: 2.25rem;
    height: 2.25rem;
    border: 1.5px dashed var(--trait-fort);
    border-radius: 50%;
    background: var(--surface);
  }
  .partie__etat {
    display: inline-flex;
    align-items: center;
    gap: var(--e-2);
    margin: 0;
    color: var(--c-lac);
    font-size: var(--t-2);
    font-weight: var(--graisse-fort);
    & .icone {
      width: 1.125rem;
      height: 1.125rem;
    }
  }
  .partie[data-etat="ouverte"] .partie__etat {
    color: var(--vert);
  }
  .partie__consigne {
    display: flex;
    align-items: flex-start;
    gap: var(--e-2);
    margin: 0;
    padding: var(--e-3);
    border-radius: var(--r-2);
    background: var(--c-lac-voile);
    color: var(--texte);
    font-size: var(--t-2);
    & .icone {
      flex: none;
      width: 1.125rem;
      height: 1.125rem;
      margin-top: 0.125rem;
      color: var(--c-lac);
    }
  }
  .partie[data-etat="pleine"] .partie__etat {
    color: var(--texte-doux);
  }
  .partie[data-etat="finie"] {
    &::before {
      opacity: 0.4;
    }
    & .partie__etat {
      color: var(--texte-discret);
    }
    & .partie__nom {
      color: var(--texte-doux);
    }
  }
  .code-salon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "libelle libelle"
      "code bouton";
    align-items: center;
    gap: var(--e-1) var(--e-3);
    padding: var(--e-3) var(--e-3) var(--e-3) var(--e-4);
    border: 1.5px dashed var(--trait-fort);
    border-radius: var(--r-2);
    background: var(--fond-creux);
  }
  .code-salon__libelle {
    grid-area: libelle;
    color: var(--texte-doux);
    font-size: var(--t-1);
    font-weight: var(--graisse-fort);
    letter-spacing: var(--approche-capitales);
    text-transform: uppercase;
  }
  .code-salon__code {
    grid-area: code;
    min-width: 0;
    color: var(--texte);
    font-size: var(--t-6);
    font-weight: var(--graisse-fort);
    font-variant-numeric: tabular-nums slashed-zero;
    letter-spacing: 0.14em;
    line-height: 1.1;
    overflow-wrap: anywhere;
    user-select: all;
  }
  .code-salon__copier {
    grid-area: bouton;
  }
  .code-salon[data-copie] .code-salon__copier {
    --b-trait: var(--vert);
    --b-texte: var(--vert);
  }
  .photo-echange {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--e-5);
    margin: 0;
  }
  @media (min-width: 40rem) {
    .photo-echange[data-etat="depot"] {
      grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
      align-items: start;
    }
  }
  .photo-echange__apercu {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 13rem);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 2px dashed var(--trait-fort);
    border-radius: var(--r-3);
    background: var(--fond-creux);
    color: var(--texte-doux);
    & img,
    & canvas {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    &:has(img, canvas) {
      border-style: solid;
      border-color: var(--trait);
    }
  }
  .photo-echange__corps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--e-4);
  }
  .photo-echange__promesse {
    font-family: var(--police-titre);
    font-size: var(--t-5);
    font-weight: 560;
    line-height: var(--interligne-titre);
  }
  .photo-echange__regles {
    display: flex;
    flex-direction: column;
    gap: var(--e-2);
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--texte-doux);
    & li {
      position: relative;
      padding-left: var(--e-6);
      &::before {
        content: "";
        position: absolute;
        left: 0.25rem;
        top: 0.55em;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: var(--accent);
      }
    }
  }
  .photo-echange[data-etat="photo"] {
    width: min(100%, 20rem);
    gap: var(--e-3);
  }
  .photo-echange__cadre {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--r-3);
    background: var(--fond-creux);
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-1);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
  .photo-echange__toile {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .filigrane {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    color: rgb(255 255 255 / 0.5);
    font-size: var(--t-5);
    font-weight: var(--graisse-fort);
    letter-spacing: 0.06em;
    text-shadow: 0 0 2px rgb(0 0 0 / 0.45);
    white-space: nowrap;
    rotate: -24deg;
  }
  .tableau-position {
    display: block;
    width: 100%;
    font-size: var(--t-2);
    line-height: 1.45;
    & caption {
      display: block;
      padding-bottom: var(--e-3);
      text-align: left;
      color: var(--texte-doux);
    }
    & thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
    & tbody {
      display: flex;
      flex-direction: column;
      gap: var(--e-3);
    }
    & tr {
      display: block;
      padding: var(--e-4);
      border: 1px solid var(--trait);
      border-radius: var(--r-3);
      background: var(--surface);
    }
    & tbody th {
      display: block;
      margin-bottom: var(--e-2);
      font-family: var(--police-titre);
      font-size: var(--t-5);
      font-weight: 560;
      line-height: var(--interligne-titre);
      text-align: left;
      color: var(--texte);
    }
    & td {
      display: flex;
      flex-direction: column;
      gap: 0.125rem;
      padding-block: var(--e-2);
      border-top: 1px solid var(--trait);
      color: var(--texte);
      &::before {
        content: attr(data-libelle);
        color: var(--texte-doux);
        font-size: var(--t-1);
        font-weight: var(--graisse-fort);
        letter-spacing: 0.02em;
      }
    }
    & strong {
      font-weight: var(--graisse-fort);
    }
  }
  @media (min-width: 30rem) {
    .tableau-position td {
      display: grid;
      grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
      gap: var(--e-3);
    }
  }
  .tableau-position-cadre {
    container: tableau-position / inline-size;
  }
  @container tableau-position (min-width: 52rem) {
    .tableau-position {
      display: table;
      border-collapse: separate;
      border-spacing: 0;
      & caption {
        display: table-caption;
      }
      & thead {
        position: static;
        display: table-header-group;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        white-space: normal;
      }
      & tbody {
        display: table-row-group;
      }
      & tr {
        display: table-row;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
      }
      & th,
      & td {
        display: table-cell;
        margin: 0;
        padding: var(--e-3);
        border-top: 0;
        border-bottom: 1px solid var(--trait);
        text-align: left;
        vertical-align: top;
      }
      & thead th {
        border-bottom: 2px solid var(--trait-fort);
        color: var(--texte-doux);
        font-size: var(--t-1);
        font-weight: var(--graisse-fort);
        letter-spacing: var(--approche-capitales);
        text-transform: uppercase;
      }
      & tbody th {
        display: table-cell;
        margin: 0;
        font-family: var(--police-titre);
        font-size: var(--t-4);
      }
      & td::before {
        content: none;
      }
    }
  }
  .tableau-position--cartes {
    display: flex;
    flex-direction: column;
    gap: var(--e-3);
  }
  .tableau-position__usage {
    padding: var(--e-4);
    border: 1px solid var(--trait);
    border-radius: var(--r-3);
    background: var(--surface);
    font-size: var(--t-2);
    & :is(h3, h4) {
      margin-bottom: var(--e-2);
      font-size: var(--t-5);
    }
    & dl {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      margin: 0;
    }
    & dt {
      padding-top: var(--e-2);
      border-top: 1px solid var(--trait);
      color: var(--texte-doux);
      font-size: var(--t-1);
      font-weight: var(--graisse-fort);
    }
    & dd {
      margin: 0;
      padding: 0.125rem 0 var(--e-2);
    }
  }
  @media (min-width: 30rem) {
    .tableau-position__usage dl {
      grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
      gap: 0 var(--e-3);
      & dd {
        padding-top: var(--e-2);
        border-top: 1px solid var(--trait);
      }
    }
  }
  @media (prefers-contrast: more) {
    .courbes::before,
    .carte-vue:is([data-etat="indisponible"], [data-vide])::after {
      display: none;
    }
  }
  :is(.bouton, button.puce, a.puce, .dilemme__choix, .epingle, .bascule-vue [role="tab"], .toast__action, .code-salon__copier):focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--balise), var(--b-ombre, 0 0 #0000);
  }
  .carte--lien:has(.carte__lien:focus-visible) {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--balise), var(--ombre-1);
  }
  .carte--lien .carte__lien:focus-visible {
    outline: none;
    box-shadow: none;
  }
}
