:root {
  --fond: #FEFCF6;
  --encre: #1A1712;
  --pale: #8C8578;
  --vert: #12805C;
  --rouge: #C22B1F;
  --bleu: #2B5FC2;
  --orange: #E07B1F;
  --bordeaux: #7B1E2B;
  --trait: 2px;
  --motif: #FAF7EE;
  --chrono: #D5D0C3;
  --marge: 18px;
  --rectangle: 585px;
  --rectangle-haut: 510px;
  --barre-bas: 56px;
  --bouton-form: 105px;
  --ecart-groupe: 8px;
  --retrait-champ: 60px
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0
}
button:focus,
input:focus,
select:focus {
  outline: none
}
select {
  appearance: none;
  -webkit-appearance: none
}
a,
button,
input,
label,
select,
textarea {
  -webkit-tap-highlight-color: transparent
}
:focus-visible {
  outline: var(--trait) solid var(--bleu);
  outline-offset: 2px
}
html {
  height: 100%
}
body {
  height: 100dvh;
  overflow: hidden;
  background: var(--fond);
  color: var(--encre);
  font-family: Verdana,Geneva,Arial,sans-serif;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom)
}
button {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre);
  background: transparent;
  border: var(--trait) solid var(--encre);
  padding: 0 16px;
  height: 34px;
  cursor: pointer;
  white-space: nowrap;
  flex: none
}
button:hover:not(:disabled) {
  background: var(--encre);
  color: var(--fond)
}
button:disabled {
  color: var(--pale);
  border-color: var(--pale);
  cursor: default
}
button.actif {
  background: var(--encre);
  color: var(--fond)
}
button.lien {
  border-color: transparent;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--pale);
  padding: 0 6px;
  text-decoration: underline
}
button.lien:hover:not(:disabled) {
  background: transparent;
  color: var(--encre)
}
.groupe {
  display: flex;
  gap: var(--ecart-groupe);
  align-items: center;
  flex-wrap: wrap
}
input[type="email"],
input[type="password"],
input[type="text"],
select {
  font-family: Consolas,Menlo,Amiri,"Courier New",monospace;
  font-size: 15px;
  color: var(--encre);
  background: #fff;
  border: var(--trait) solid var(--encre);
  padding: 0 10px;
  height: 38px;
  outline: none;
  max-width: 100%
}
input::placeholder {
  color: var(--pale)
}
select {
  cursor: pointer;
  padding-right: 26px
}
label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pale);
  margin-bottom: 6px
}
.champ {
  margin-bottom: 33px
}
.champ input[type="email"],
.champ input[type="password"],
.champ input[type="text"],
.champ select {
  width: 100%
}
.aide {
  font-size: 12px;
  line-height: 1.5;
  color: var(--pale);
  margin-top: 8px
}
.valeur {
  font-family: Consolas,"Courier New",monospace;
  font-size: 17px;
  color: var(--encre)
}
.pale {
  color: var(--pale)
}
.erreur-ligne {
  color: var(--rouge);
  font-size: 12px;
  line-height: 1.5;
  min-height: 18px;
  margin-bottom: 10px
}
.erreur-ligne:empty {
  min-height: 0;
  margin-bottom: 0
}
#erreurCompte,
#erreurCompte:empty {
  min-height: 1.5em;
  margin-bottom: 10px
}
#bandeau {
  flex: none;
  padding: 10px var(--marge);
  background: var(--orange);
  border-bottom: var(--trait) solid var(--encre);
  font-size: 15px;
  line-height: 1.5;
  text-align: center
}
#bandeauTexte {
  display: grid
}
#bandeauTexte .msg {
  grid-area: 1/1;
  visibility: hidden
}
#bandeauTexte .msg.actif {
  visibility: visible
}
#bandeauTexte.fixe {
  display: block
}
#bandeauTexte.fixe .msg {
  visibility: visible
}
#barre {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px var(--marge)
}
#barre nav {
  gap: 6px;
  flex-wrap: nowrap
}
#btnCompte {
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis
}
.chargement body > *:not(#chargeur) {
  opacity: 0
}
.vue {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column
}
#milieu {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: 14px var(--marge);
  padding-bottom: max(14px, calc(var(--au-dessus, 0px) + 14px - var(--barre-bas)));
  min-height: 0;
  overflow-y: auto
}
#bas,
#basListe {
  flex: none;
  height: var(--barre-bas);
  padding: 0 var(--marge);
  align-items: center
}
#annuler {
  position: absolute;
  top: calc(100% + var(--trait) + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  padding: 0;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
  border-color: transparent;
  flex: none
}
#annuler:hover:not(:disabled) {
  background: transparent;
  color: var(--encre);
  border-color: transparent
}
#basListe {
  display: flex;
  justify-content: flex-end
}
#ensemble {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: var(--rectangle);
  max-width: 100%;
  min-height: var(--rectangle-haut);
  padding: 22px;
  background: var(--fond);
  border: var(--trait) solid var(--encre);
  justify-content: center
}
#carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3.5vh, 34px);
  flex: 0 1 auto;
  min-height: 0;
  width: 100%
}
#recto {
  width: 100%;
  aspect-ratio: 736/369;
  flex: 0 1 auto;
  min-height: 0;
  background: none;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}
#recto::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  --coin: 26px;
  background: linear-gradient(var(--encre), var(--encre)) left top/var(--coin) var(--trait) no-repeat,linear-gradient(var(--encre), var(--encre)) left top/var(--trait) var(--coin) no-repeat,linear-gradient(var(--encre), var(--encre)) right top/var(--coin) var(--trait) no-repeat,linear-gradient(var(--encre), var(--encre)) right top/var(--trait) var(--coin) no-repeat,linear-gradient(var(--encre), var(--encre)) left bottom/var(--coin) var(--trait) no-repeat,linear-gradient(var(--encre), var(--encre)) left bottom/var(--trait) var(--coin) no-repeat,linear-gradient(var(--encre), var(--encre)) right bottom/var(--coin) var(--trait) no-repeat,linear-gradient(var(--encre), var(--encre)) right bottom/var(--trait) var(--coin) no-repeat
}
#recto.montreReponse.juste #rectoTexte {
  color: var(--vert)
}
#recto.montreReponse.faux  #rectoTexte {
  color: var(--rouge)
}
#image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}
#recto.piste-audio::before {
  content: '\266A';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  line-height: 1;
  color: var(--pale);
  pointer-events: none
}
#rectoTexte {
  font-family: Georgia,Amiri,"Segoe UI",Tahoma,serif;
  unicode-bidi: plaintext;
  font-size: clamp(22px, 6vw, 32px);
  line-height: 1.25;
  text-align: center;
  padding: 18px;
  overflow-wrap: break-word;
  max-height: 100%;
  overflow-y: auto
}
#rectoTexte.arabe {
  line-height: 1.9
}
#ligneSaisie {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%
}
#saisie {
  flex: 1 1 auto;
  min-width: 0
}
#saisie:disabled {
  background: #f7f5ef;
  border-color: var(--pale);
  color: var(--encre);
  cursor: default
}
#montrerReponse {
  flex: none;
  height: 38px
}
#apresEntree {
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%
}
#apresEntree.ecoute-seule #btnAgain,
#apresEntree.ecoute-seule #btnGood {
  display: none
}
#btnAgain,
#btnGood {
  min-width: 112px
}
#compteurs {
  margin-bottom: clamp(14px, 3vh, 30px);
  font-family: Consolas,"Courier New",monospace;
  font-size: 15px;
  color: var(--pale);
  flex: none;
  line-height: 1.2;
  min-height: 1.2em
}
#compteListe {
  font-family: Consolas,"Courier New",monospace;
  font-size: 19px;
  color: var(--pale)
}
#fin {
  position: absolute;
  inset: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  line-height: 1.6
}
#fin {
  font-family: Consolas,"Courier New",monospace;
  color: var(--chrono);
  gap: 6px
}
#finTitre {
  font-size: clamp(11px, 2.2vw, 15px);
  letter-spacing: 0.1em;
  text-transform: uppercase
}
#finChrono {
  font-size: clamp(24px, 5.5vw, 54px);
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em
}
#recherche {
  flex: 1 1 120px;
  min-width: 0;
  height: 34px;
  font-size: 14px
}
#champFiltreCategorie {
  position: relative;
  flex: none
}
#outilsListe #filtreCategorie {
  width: 178px;
  height: 34px;
  padding: 0 26px 0 10px;
  background: #fff;
  font-family: Consolas,"Courier New",monospace;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}
#outilsListe #filtreCategorie:hover {
  background: #fff;
  color: var(--encre)
}
#choixCategories {
  width: 100%
}
#champChoixLangue {
  position: relative
}
#champChoixLangue #choixLangue {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  background: #fff;
  border: var(--trait) solid var(--encre);
  font-family: Consolas,"Courier New",monospace;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}
#champChoixLangue #choixLangue:hover {
  background: #fff;
  color: var(--encre)
}
#listeLangues {
  width: 100%
}
#choixCategories button {
  font-size: 14px
}
#outilsListe {
  flex: 1 1 auto;
  min-width: 0
}
#basculerMots {
  min-width: 106px
}
#grille {
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: var(--marge);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 216px));
  justify-content: center;
  align-content: start;
  gap: 30px 22px
}
.sentinelle {
  grid-column: 1/-1;
  height: 1px
}
.cell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px
}
.cell-image {
  position: relative;
  width: 100%;
  aspect-ratio: 184/128;
  background: #fff;
  border: var(--trait) solid var(--encre);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}
.cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}
.cell-recto-texte {
  font-family: Georgia,Amiri,"Segoe UI",Tahoma,serif;
  unicode-bidi: plaintext;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  padding: 0 8px;
  overflow-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5
}
.cell-recto-texte.arabe {
  font-size: 17px;
  line-height: 1.9;
  -webkit-line-clamp: 3
}
.cell-image button {
  position: absolute;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  border-width: 1px;
  background: var(--fond)
}
.bouton-raz {
  top: 5px;
  right: 5px
}
#grille.mode-modifier .cell-image {
  cursor: pointer;
  transition: transform 120ms ease-out,border-color 120ms ease-out
}
#grille.mode-modifier .cell-image:hover {
  transform: translateY(-5px)
}
#grille.mode-modifier .cell-image {
  border-color: var(--bordeaux)
}
#modeModifier.actif,
#modeModifier.actif:hover:not(:disabled) {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--fond)
}
.cell-stats {
  display: flex;
  justify-content: center;
  gap: 7px;
  font-family: Consolas,"Courier New",monospace;
  font-size: 10px;
  color: var(--pale)
}
#ajout {
  overflow-y: auto;
  align-items: center;
  justify-content: safe center;
  padding-top: 14px;
  padding-bottom: calc(var(--au-dessus, 0px) + 14px)
}
#motifs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none
}
#motifs .ligne {
  white-space: nowrap;
  line-height: 46px;
  font-family: 'Pacifico','Amiri',cursive;
  font-size: 18px;
  color: var(--motif)
}
#formCarte {
  --retrait-champ: calc(34px + var(--ecart-groupe));
  width: 100%;
  max-width: var(--rectangle);
  min-height: var(--rectangle-haut);
  padding: 30px var(--ecart-groupe) 30px calc(var(--ecart-groupe) + var(--retrait-champ));
  flex: none;
  background: var(--fond);
  border: var(--trait) solid var(--encre)
}
#formCarte h1 {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  width: calc(100% - var(--retrait-champ));
  border-bottom: var(--trait) solid var(--encre)
}
#fichierImage {
  display: none
}
#choisirImage {
  height: 38px;
  width: calc(var(--bouton-form) * 2 + var(--ecart-groupe));
  max-width: 100%
}
#rangeeImage {
  display: flex;
  align-items: center;
  gap: 10px
}
#rangeeImage #choisirImage {
  flex: none
}
#nomImage {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
#nomImage.erreur {
  color: var(--rouge)
}
button.enErreur,
input.enErreur {
  border-color: var(--rouge)
}
button.enErreur:hover:not(:disabled) {
  border-color: var(--encre)
}
#choixType {
  margin-bottom: 33px
}
#carteAjoutee {
  margin-left: 12px;
  font-size: 12px;
  color: var(--vert);
  opacity: 0;
  transition: opacity 400ms ease-out
}
#carteAjoutee.visible {
  opacity: 1
}
#carteAjoutee.refus {
  color: var(--rouge)
}
#champCategorie {
  position: relative
}
.suggestions {
  position: absolute;
  top: calc(100% + var(--ecart-groupe));
  left: 0;
  z-index: 20;
  width: calc(100% - var(--retrait-champ));
  max-height: 204px;
  overflow-y: auto;
  background: #fff;
  border: var(--trait) solid var(--encre)
}
.suggestions button {
  display: block;
  width: 100%;
  height: 32px;
  border: none;
  padding: 0 10px;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-family: Consolas,"Courier New",monospace;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis
}
#actionsAjout button,
#choixType button {
  min-width: var(--bouton-form)
}
#categorieSaisie,
#motSaisie,
#traductionSaisie {
  width: calc(100% - var(--retrait-champ))
}
#motSaisie {
  font-family: Consolas,Amiri,"Courier New",monospace
}
.champ-liste {
  display: flex;
  align-items: center;
  gap: var(--ecart-groupe)
}
.champ-liste input {
  flex: none
}
#flecheCategorie {
  flex: none;
  width: 34px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--encre);
  display: flex;
  align-items: center;
  justify-content: center
}
#flecheCategorie:hover:not(:disabled) {
  background: transparent;
  color: var(--encre)
}
#flecheCategorie.ouverte svg {
  transform: scaleY(-1)
}
#actionsAjout {
  padding-top: 19px
}
#actionsAjout #reinitialiserCarte {
  margin-left: auto;
  width: 34px;
  min-width: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
  border-color: var(--rouge);
  color: var(--rouge)
}
#actionsAjout #reinitialiserCarte:hover:not(:disabled) {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff
}
#actionsAjout #reinitialiserCarte:disabled {
  border-color: var(--pale);
  color: var(--pale);
  cursor: default
}
#supprimerCarte {
  border-color: var(--rouge);
  color: var(--rouge)
}
#supprimerCarte:hover {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff
}
.modale {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26, 23, 18, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px
}
.modale-boite {
  width: 100%;
  max-width: 520px;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--fond);
  border: var(--trait) solid var(--encre);
  padding: 22px
}
.modale-haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: var(--trait) solid var(--encre)
}
.modale-haut h2 {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase
}
.fermer {
  width: 32px;
  padding: 0;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
  border-color: transparent
}
.fermer:hover:not(:disabled) {
  background: transparent;
  color: var(--encre)
}
#compteConnecte p {
  line-height: 1.6;
  margin-bottom: 18px
}
#modaleConfirmer .modale-boite {
  width: auto;
  min-width: 280px;
  max-width: min(520px, 100%)
}
#confirmerDetail {
  line-height: 1.6;
  margin-bottom: 22px;
  white-space: pre-line;
  text-align: center
}
#confirmerDetail:empty {
  display: none
}
#confirmerChampMdp {
  margin-bottom: 22px
}
#confirmerMdp {
  width: 100%
}
#confirmerMdp.faux {
  border-color: var(--rouge)
}
#confirmerErreurMdp {
  min-height: 18px;
  margin: 6px 0 0
}
#confirmerErreurMdp:empty {
  min-height: 18px;
  margin: 6px 0 0
}
#modaleConfirmer .groupe {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: fit-content;
  margin-inline: auto
}
#modaleConfirmer .occupe:disabled {
  color: var(--encre);
  border-color: var(--encre);
  cursor: pointer
}
#modaleConfirmer #confirmerOui.occupe:disabled {
  color: var(--rouge);
  border-color: var(--rouge)
}
#modaleConfirmer .occupe:disabled:hover {
  background: var(--encre);
  border-color: var(--encre);
  color: var(--fond)
}
#modaleConfirmer #confirmerOui.occupe:disabled:hover {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff
}
@media (min-width: 721px) {
  #modaleParametres .modale-boite {
    width: 420px;
    max-width: 100%
  }
}
#logoParametres {
  flex: none;
  width: 20px;
  height: 20px;
  display: block
}
#modaleParametres .modale-haut h2 {
  flex: 1 1 auto
}
.valeur {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.erreur-ligne + .section-reglages,
.section-reglages + .section-reglages {
  border-top: var(--trait) solid var(--encre);
  padding-top: 26px;
  margin-top: 4px
}
.section-reglages h3 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre);
  margin-bottom: 18px
}
.section-reglages .champ:last-child {
  margin-bottom: 26px
}
.bientot {
  display: inline-block;
  margin-left: 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pale);
  vertical-align: middle
}
.liens-legaux {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ecart-groupe);
  align-items: center
}
.liens-legaux button {
  padding: 0 12px
}
#parametres {
  margin-top: 26px;
  padding-top: 22px;
  border-top: var(--trait) solid var(--encre)
}
#parametres h3 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px
}
button.danger {
  border-color: var(--rouge);
  color: var(--rouge)
}
button.danger:hover:not(:disabled) {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff
}
button.danger:disabled {
  border-color: var(--pale);
  color: var(--pale);
  cursor: default
}
button.danger.actif,
button.danger.actif:hover:not(:disabled) {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff
}
#erreur {
  display: none;
  padding: 40px var(--marge);
  font-family: Consolas,"Courier New",monospace
}
#erreur h1 {
  font-size: 15px;
  color: var(--rouge);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase
}
#erreur ul {
  list-style: none
}
#erreur li {
  padding: 3px 0;
  line-height: 1.5
}
@media (max-width: 720px) {
  :root {
    --marge: 12px
  }
  #barre {
    padding: 10px var(--marge);
    gap: 6px
  }
  #barre button {
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.08em
  }
  #milieu {
    padding: 12px var(--marge);
    padding-bottom: max(12px, calc(var(--au-dessus, 0px) + 12px - var(--barre-bas)))
  }
  #recherche,
  input[type="email"],
  input[type="password"],
  input[type="text"] {
    font-size: 16px
  }
  #ligneSaisie {
    flex-direction: column;
    align-items: stretch;
    gap: 10px
  }
  #ensemble,
  #formCarte {
    min-height: 0
  }
  #finChrono {
    white-space: normal
  }
  #apresEntree {
    gap: 6px
  }
  #btnAgain,
  #btnGood {
    flex: 1 1 0;
    min-width: 0;
    height: 44px
  }
  #btnAudio {
    height: 44px
  }
  #compteurs {
    font-size: 17px;
    gap: 14px
  }
  :root {
    --barre-bas: 50px
  }
  #barre {
    flex-wrap: wrap
  }
  #outilsListe {
    order: 1;
    flex: 1 1 100%;
    gap: 6px
  }
  #recherche {
    flex: 1 1 100%
  }
  #outilsListe button,
  #outilsListe select {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 10px;
    padding: 0 8px
  }
  #champFiltreCategorie {
    flex: 1 1 auto;
    min-width: 0
  }
  #outilsListe #filtreCategorie {
    width: 100%;
    font-size: 10px;
    padding: 0 8px
  }
  #basculerMots {
    min-width: 0
  }
  #grille {
    gap: 22px 14px
  }
  #formCarte {
    --retrait-champ: calc(34px + var(--ecart-groupe));
    border: 0;
    padding-left: var(--marge);
    padding-right: var(--marge)
  }
  #fin {
    margin-top: 6vh
  }
  .modale {
    padding: 0;
    align-items: flex-end
  }
  .modale-boite {
    max-width: none;
    max-height: 92dvh;
    border-width: 0;
    border-top: var(--trait) solid var(--encre)
  }
  #modaleConfirmer {
    padding: 16px;
    align-items: center
  }
  #modaleConfirmer .modale-boite {
    width: auto;
    min-width: 0;
    max-width: 100%;
    max-height: 88dvh;
    border: var(--trait) solid var(--encre)
  }
  #modaleCompte .modale-boite,
  #modaleParametres .modale-boite {
    height: 100dvh;
    max-height: 100dvh;
    border-top-width: 0;
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
    padding-left: calc(22px + env(safe-area-inset-left));
    padding-right: calc(22px + env(safe-area-inset-right))
  }
  #erreurCompte,
  #erreurCompte:empty {
    min-height: 3em
  }
}
@media (pointer: coarse) {
  button {
    height: 44px
  }
  #barre button {
    height: 38px
  }
  .cell-image button {
    height: 26px;
    width: 26px
  }
  .fermer {
    height: 38px
  }
  #recherche {
    height: 38px
  }
  #outilsListe #filtreCategorie {
    height: 38px
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms!important;
    transition-duration: 0.01ms!important
  }
}
#alerteReseau {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px var(--marge);
  background: var(--rouge);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: center
}
#banderoleLegale {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--marge);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--pale);
  pointer-events: none
}
#banderoleLegale a {
  pointer-events: auto;
  color: inherit;
  text-decoration: none
}
#banderoleLegale a:hover {
  color: var(--encre);
  text-decoration: underline
}
.lien-texte {
  font-size: 12px;
  color: var(--pale);
  text-decoration: underline
}
.lien-texte:hover {
  color: var(--encre)
}
.liens-textes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start
}
#chargeur {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fond);
  user-select: none;
  cursor: default
}
#chargeur svg {
  transform-origin: 50% 50%;
  animation: tourne 10s linear infinite
}
#chargeur text {
  font-family: 'Covered By Your Grace','Comic Sans MS',cursive;
  font-size: 14px;
  fill: var(--encre);
  letter-spacing: 0.04em
}
@keyframes tourne {
  to {
    transform: rotate(360deg)
  }
}
#chargeur.parti {
  opacity: 0;
  transition: opacity 0.2s ease-out
}
@media (prefers-reduced-motion: reduce) {
  #chargeur svg {
    animation: none
  }
}
#clavierArabe {
  --touche: min(40px, calc((min(100vw - 2 * var(--marge), var(--rectangle)) - 64px) / 13));
  flex: none;
  margin-top: 14px;
  width: min(100%, var(--rectangle));
  position: relative;
  display: none;
  padding: 8px;
  background: var(--fond);
  border: var(--trait) solid var(--encre);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation
}
#clavierArabe.ouvert {
  display: block
}
#clavierArabe.endormi {
  pointer-events: none
}
#clavierArabe.endormi .touche {
  color: var(--pale);
  border-color: var(--pale)
}
.clavier-rangee {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px
}
.touche {
  font-family: Mirza,Amiri,Verdana,Geneva,Arial,sans-serif;
  width: var(--touche);
  height: max(34px, var(--touche));
  padding: 0;
  font-size: 28px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1
}
.touche-large {
  width: calc(var(--touche) * 2 + 4px);
  font-size: 15px
}
.touche-bascule {
  font-size: 22px
}
.touche-espace {
  flex: 1 1 auto;
  width: auto
}
.clavier-bas {
  margin-top: 6px;
  margin-bottom: 0
}
#saisie[dir="rtl"]::placeholder {
  text-align: left
}
@media (max-width: 720px) {
  #clavierArabe {
    --touche: min(40px, calc((100vw - 52px) / 13));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    width: 100%;
    margin-top: 0;
    border-width: var(--trait) 0 0 0;
    background: rgba(140, 133, 120, 0.22);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom))
  }
  #clavierArabe.endormi {
    display: none
  }
  .touche {
    height: 44px
  }
  .touche:not(:hover) {
    background: var(--fond)
  }
  .clavier-rangee {
    gap: 3px;
    margin-bottom: 8px
  }
  .clavier-bas {
    margin-top: 8px
  }
}