/* Appli « Mes chats » : mêmes couleurs et même police que le site (src/styles/global.css). */
@font-face {
	font-family: 'Figtree';
	src: url('/polices/figtree.woff2') format('woff2');
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--vert-800: #014537;
	--vert-600: #015747;
	--vert-500: #2b8170;
	--vert-400: #74aea2;
	--vert-200: #cde0d1;
	--vert-50: #f3f6ee;
	--citron: #b5ec6a;
	--rose-fond: #fce4ee;
	--rose: #a8336a;
	--bleu-fond: #e0ebf7;
	--bleu: #245689;
	--sauge-fond: #dcefe3;
	--sauge: #235840;
	--sauge-bord: #3d8a63;
	--ambre-fond: #fbeecb;
	--ambre: #7a4f00;
	--ambre-bord: #b98a1f;
	--rouge: #a8172f;
	--rouge-fond: #fdeff1;
	--encre: #1c2220;
	--encre-2: #454b48;
	--encre-3: #616763;
	--filet: #e7dfd1;
	--filet-fort: #d5cab7;
	--papier: #fbf8f2;
	--carte: #ffffff;
	--sable: #f2ebdf;
	--ombre-s: 0 1px 2px rgb(28 34 32 / 0.05), 0 4px 14px -6px rgb(28 34 32 / 0.12);
	--ombre: 0 2px 4px rgb(28 34 32 / 0.04), 0 18px 36px -18px rgb(28 34 32 / 0.28);
	--ombre-verte: 0 12px 26px -12px rgb(1 87 71 / 0.7);
	--bas: env(safe-area-inset-bottom, 0px);
	--haut: env(safe-area-inset-top, 0px);
	color-scheme: light;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.45;
	color: var(--encre);
	background: var(--papier);
	-webkit-tap-highlight-color: transparent;
	overscroll-behavior-y: none;
}

h1,
h2,
h3,
p {
	margin: 0;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: inherit;
}

a {
	color: var(--vert-600);
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
}

:focus-visible {
	outline: 3px solid var(--vert-500);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

.app {
	position: relative;
	max-width: 480px;
	min-height: 100dvh;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}

.sans-js {
	padding: 24px;
	text-align: center;
}

/* ───── Structure d'un écran ───── */

.ecran {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: calc(var(--haut) + 20px) 16px calc(var(--bas) + 24px);
	gap: 18px;
}

.ecran--avec-pied {
	padding-bottom: calc(var(--bas) + 118px);
}

.pied {
	position: fixed;
	left: 50%;
	bottom: 0;
	width: 100%;
	max-width: 480px;
	transform: translateX(-50%);
	padding: 16px 16px calc(var(--bas) + 24px);
	background: linear-gradient(to top, var(--papier) 72%, rgb(251 248 242 / 0));
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 5;
}

/* Pied opaque, pour une question à trancher (changement de statut) : il ne laisse rien transparaître dessous. */
.pied--plein {
	padding-top: 18px;
	background: var(--carte);
	border-top: 1px solid var(--filet);
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -18px 36px -18px rgb(28 34 32 / 0.28);
}

.ecran--grand-pied {
	padding-bottom: calc(var(--bas) + 250px);
}

.barre {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 46px;
}

/*
 * La barre d'un écran (retour, titre) reste en haut quand on fait défiler. Elle déborde dans les marges de l'écran
 * pour couvrir ce qui passe dessous, sans changer de place au repos.
 */
.ecran > .barre:not(header),
.ecran > .entete {
	position: sticky;
	top: 0;
	z-index: 6;
	margin: calc(-1 * (var(--haut) + 10px)) -16px -14px;
	padding: calc(var(--haut) + 10px) 16px 14px;
	background: linear-gradient(to bottom, var(--papier) calc(100% - 12px), rgb(251 248 242 / 0));
}

.barre__titre {
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.barre__cote {
	width: 64px;
	flex: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--encre-3);
	text-align: right;
	white-space: nowrap;
}

.rond {
	width: 46px;
	height: 46px;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--carte);
	border: 1px solid var(--filet);
	color: var(--encre);
	font-weight: 800;
}

.rond--vert {
	color: var(--vert-600);
}

.titre {
	font-size: 32px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.titre--2 {
	font-size: 28px;
	line-height: 1.2;
}

.titre--3 {
	font-size: 21px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.aide {
	font-size: 16px;
	color: var(--encre-2);
}

.petit {
	font-size: 14px;
	color: var(--encre-3);
}

.pile {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pile--serree {
	gap: 8px;
}

/* ───── Boutons ───── */

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 58px;
	padding: 10px 22px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	background: var(--vert-600);
	color: var(--citron);
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	box-shadow: var(--ombre-verte);
	transition:
		background-color 0.15s,
		transform 0.1s;
}

.btn:active {
	transform: scale(0.985);
	background: var(--vert-800);
}

.btn[disabled] {
	opacity: 0.55;
	box-shadow: none;
	cursor: default;
}

.btn--contour {
	background: transparent;
	border-color: var(--vert-600);
	color: var(--vert-600);
	box-shadow: none;
}

.btn--contour:active {
	background: var(--vert-50);
}

.btn--moyen {
	min-height: 50px;
	font-size: 16px;
}

.btn--texte {
	width: auto;
	min-height: 48px;
	padding: 0 18px;
	align-self: center;
	background: none;
	box-shadow: none;
	color: var(--vert-600);
	font-size: 17px;
}

.btn--texte:active {
	background: none;
	opacity: 0.7;
}

.btn--discret {
	min-height: 44px;
	font-size: 15px;
	font-weight: 600;
	color: var(--encre-3);
}

.btn--danger {
	color: var(--rouge);
	font-weight: 600;
	font-size: 16px;
}

.icone {
	flex: none;
	display: inline-flex;
}

/* Sans cela, le dessin se pose sur la ligne de base du texte et descend sous son cadre. */
.icone svg {
	display: block;
}

/* ───── Onglets et listes ───── */

.onglets {
	position: relative;
	z-index: 5;
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--sable);
}

.onglet {
	flex: 1;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	color: var(--encre-2);
}

.onglet[aria-pressed='true'] {
	background: var(--carte);
	box-shadow: var(--ombre-s);
	font-weight: 700;
	color: var(--encre);
}

.compte {
	min-width: 24px;
	height: 22px;
	padding: 0 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--filet);
	color: var(--encre-2);
	font-size: 13px;
	font-weight: 700;
}

.onglet[aria-pressed='true'] .compte {
	background: var(--vert-600);
	color: #fff;
}

.liste {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.recherche-collante {
	position: sticky;
	top: var(--haut);
	z-index: 4;
	margin: -10px 0 -4px;
	padding: 10px 0 4px;
}

/* Son fond : il monte jusqu'en haut de l'écran et s'estompe en bas, là où les cartes passent dessous. */
.recherche-collante::before {
	content: '';
	position: absolute;
	z-index: -1;
	inset: calc(-1 * var(--haut)) -16px -12px;
	background: linear-gradient(to bottom, var(--papier) calc(100% - 12px), rgb(251 248 242 / 0));
}

.section-titre {
	margin-top: 6px;
	padding: 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--encre-3);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.carte-chat {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 84px;
	padding: 10px 12px 10px 10px;
	border-radius: 20px;
	background: var(--carte);
	border: 1px solid var(--filet);
	color: var(--encre);
}

.carte-chat:active {
	background: var(--vert-50);
}

.vignette {
	width: 64px;
	height: 64px;
	flex: none;
	border-radius: 14px;
	object-fit: cover;
	background: var(--sable);
}

.vignette--vide {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--encre-3);
}

.carte-chat__texte {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.carte-chat__haut {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.carte-chat__nom {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	font-size: 18px;
	font-weight: 700;
}

.carte-chat__nom > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.carte-chat__meta {
	font-size: 14px;
	color: var(--encre-3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sexe {
	width: 22px;
	height: 22px;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}

.sexe--f {
	background: var(--rose-fond);
	color: var(--rose);
}

.sexe--m {
	background: var(--bleu-fond);
	color: var(--bleu);
}

.sexe--grand {
	width: 26px;
	height: 26px;
}

.pastille {
	flex: none;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.pastille--adoption {
	background: var(--sauge-fond);
	color: var(--sauge);
}

.pastille--reserve {
	background: var(--ambre-fond);
	color: var(--ambre);
}

.pastille--adopte {
	background: var(--vert-600);
	color: #fff;
}

.pastille--neutre {
	background: var(--sable);
	color: var(--encre-2);
	font-weight: 600;
}

.vide {
	padding: 28px 18px;
	border-radius: 20px;
	background: var(--sable);
	text-align: center;
	color: var(--encre-2);
}

.bandeau {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--vert-50);
	border: 1px solid var(--vert-200);
	color: var(--encre);
	font-size: 15px;
	font-weight: 600;
}

.bandeau--ambre {
	background: var(--ambre-fond);
	border-color: #ecd9a0;
}

.bandeau--rouge {
	background: var(--rouge-fond);
	border-color: #f5c9d0;
	color: var(--rouge);
}

.bandeau > span:not(.roue, .icone) {
	flex: 1;
}

.note {
	display: flex;
	gap: 10px;
	padding: 14px;
	border-radius: 16px;
	background: var(--sable);
	font-size: 15px;
	color: var(--encre-2);
}

.note .icone {
	color: var(--vert-600);
	margin-top: 1px;
}

/* ───── Formulaires ───── */

.champ {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.champ__nom {
	font-size: 15px;
	font-weight: 700;
}

.champ__nom small {
	font-size: 15px;
	font-weight: 500;
	color: var(--encre-3);
}

.saisie {
	width: 100%;
	min-height: 54px;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1.5px solid var(--filet-fort);
	background: var(--carte);
	font-size: 18px;
	font-weight: 600;
	appearance: none;
}

.saisie:focus {
	outline: none;
	border-color: var(--vert-500);
	box-shadow: 0 0 0 3px rgb(43 129 112 / 0.2);
}

textarea.saisie {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	resize: none;
}

.saisie--code {
	text-align: center;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Code PIN : quatre grands chiffres bien espacés */
.saisie--pin {
	font-size: 34px;
	letter-spacing: 0.45em;
	padding-left: calc(16px + 0.45em);
}

.saisie--erreur {
	border-color: var(--rouge);
}

.erreur {
	font-size: 15px;
	font-weight: 600;
	color: var(--rouge);
}

.rangee {
	display: flex;
	gap: 8px;
}

.choix {
	flex: 1;
	min-height: 54px;
	padding: 6px 8px;
	border-radius: 14px;
	border: 1.5px solid var(--filet-fort);
	background: var(--carte);
	font-size: 17px;
	font-weight: 700;
	text-align: center;
}

.choix[aria-pressed='true'] {
	background: var(--vert-500);
	border-color: var(--vert-500);
	color: #fff;
}

.choix--adoption[aria-pressed='true'] {
	background: var(--sauge-fond);
	border-color: var(--sauge-bord);
	color: var(--sauge);
}

.choix--reserve[aria-pressed='true'] {
	background: var(--ambre-fond);
	border-color: var(--ambre-bord);
	color: var(--ambre);
}

.choix--adopte[aria-pressed='true'] {
	background: var(--vert-600);
	border-color: var(--vert-600);
	color: #fff;
}

.bascule {
	flex: 1;
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 14px;
	background: var(--sable);
}

.bascule button {
	flex: 1;
	min-height: 46px;
	border-radius: 11px;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	color: var(--encre-2);
}

.bascule button[aria-pressed='true'] {
	background: var(--carte);
	color: var(--encre);
	box-shadow: var(--ombre-s);
}

.puces {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.puce {
	min-height: 44px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	border: 1.5px solid var(--filet-fort);
	background: var(--carte);
	font-size: 15px;
	font-weight: 600;
}

.puce[aria-pressed='true'] {
	background: var(--vert-500);
	border-color: var(--vert-500);
	color: #fff;
}

.puce--suggestion {
	color: var(--encre-2);
}

.bloc {
	display: flex;
	flex-direction: column;
	padding: 0 14px;
	border-radius: 18px;
	background: var(--carte);
	border: 1px solid var(--filet);
}

.ligne {
	min-height: 54px;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	font-size: 17px;
	font-weight: 600;
	color: var(--encre);
}

.ligne + .ligne {
	border-top: 1px solid var(--filet);
}

.ligne > span.ligne__texte {
	flex: 1;
	min-width: 0;
}

.ligne .icone:first-child {
	color: var(--vert-600);
}

.ligne__fin {
	color: var(--encre-3);
	font-size: 15px;
}

.interrupteur {
	width: 52px;
	height: 32px;
	flex: none;
	padding: 3px;
	border-radius: 999px;
	background: #b9ae9b;
	transition: background-color 0.15s;
}

.interrupteur::after {
	content: '';
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 3px rgb(28 34 32 / 0.3);
	transition: transform 0.15s;
}

[aria-checked='true'] > .interrupteur {
	background: var(--vert-500);
}

[aria-checked='true'] > .interrupteur::after {
	transform: translateX(20px);
}

.progression {
	display: flex;
	gap: 6px;
}

.progression span {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: var(--filet);
}

.progression span.fait {
	background: var(--vert-500);
}

/* ───── Photos ───── */

.grille-photos {
	position: relative;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.photo {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	overflow: hidden;
	background: var(--sable);
}

/* Pendant qu'une photo est déplacée : elle suit le doigt, les autres glissent vers leur nouvelle case. */
.grille-photos--tri .photo {
	transition: transform 180ms ease;
}

.grille-photos--tri .photo__marque {
	opacity: 0;
}

.photo.photo--portee {
	z-index: 3;
	transition: none;
	box-shadow: 0 16px 30px -10px rgb(28 34 32 / 0.55);
}

.photo > button.photo__zone {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo__marque {
	position: absolute;
	left: 6px;
	bottom: 6px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--vert-600);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	pointer-events: none;
}

.photo__attente {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgb(251 248 242 / 0.7);
}

.photo-ajout {
	aspect-ratio: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 16px;
	border: 2px dashed var(--vert-400);
	background: var(--vert-50);
	color: var(--vert-600);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

/* ───── Fiche ───── */

.fiche-photo {
	position: relative;
	height: 232px;
	margin: calc(-1 * (var(--haut) + 20px)) -16px 0;
	background: var(--sable);
}

.fiche-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 28%;
}

.fiche-photo .rond {
	position: fixed;
	z-index: 6;
	left: max(16px, calc(50% - 224px));
	top: calc(var(--haut) + 20px);
	border-color: transparent;
	box-shadow: 0 1px 2px rgb(28 34 32 / 0.05), 0 4px 14px -6px rgb(28 34 32 / 0.3);
}

.fiche-corps {
	position: relative;
	margin: -46px -16px 0;
	padding: 20px 16px 0;
	border-radius: 28px 28px 0 0;
	background: var(--papier);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fiche-nom {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 0 4px;
}

.fiche-nom h1 {
	font-size: 30px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.02em;
	min-width: 0;
	overflow-wrap: anywhere;
}

.apercu {
	border-radius: 22px;
	overflow: hidden;
	background: var(--carte);
	border: 1px solid var(--filet);
	box-shadow: var(--ombre);
}

.apercu__photo {
	position: relative;
	height: 196px;
	background: var(--sable);
}

.apercu__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 28%;
}

.apercu__photo .pastille {
	position: absolute;
	left: 12px;
	top: 12px;
}

.apercu__nombre {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgb(28 34 32 / 0.78);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.apercu__corps {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
}

.apercu__nom {
	font-size: 24px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.etiquettes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* ───── Mise en ligne ───── */

.suivi {
	align-items: center;
	padding-top: calc(var(--haut) + 64px);
}

.medaillon {
	position: relative;
	width: 132px;
	height: 132px;
	flex: none;
}

.medaillon__anneau {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	border: 4px solid var(--vert-200);
	border-top-color: var(--vert-500);
	animation: tourne 1.1s linear infinite;
}

.medaillon--fini .medaillon__anneau {
	border-color: var(--vert-500);
	animation: none;
}

.medaillon img,
.medaillon__vide {
	position: absolute;
	left: 10px;
	top: 10px;
	width: 112px;
	height: 112px;
	border-radius: 999px;
	object-fit: cover;
	object-position: 50% 26%;
	background: var(--sable);
}

.medaillon__coche {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--vert-500);
	color: #fff;
	border: 4px solid var(--papier);
}

.etapes {
	width: 100%;
	display: flex;
	flex-direction: column;
	padding: 0 16px;
	border-radius: 18px;
	background: var(--carte);
	border: 1px solid var(--filet);
}

.etape {
	min-height: 64px;
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 17px;
	font-weight: 600;
}

.etape + .etape {
	border-top: 1px solid var(--filet);
}

.etape__rond {
	width: 30px;
	height: 30px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--vert-500);
	color: #fff;
}

.etape__rond--attente {
	background: none;
	border: 3.5px solid var(--vert-200);
	border-top-color: var(--vert-500);
	animation: tourne 1.1s linear infinite;
}

.etape__rond--plus-tard {
	background: none;
	border: 2px solid var(--filet-fort);
}

.centre {
	text-align: center;
	align-items: center;
}

/* ───── Divers ───── */

.chargement {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 60dvh;
	color: var(--encre-3);
	font-weight: 600;
}

.roue {
	flex: none;
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 4px solid var(--vert-200);
	border-top-color: var(--vert-500);
	animation: tourne 1.1s linear infinite;
}

.roue--petite {
	width: 22px;
	height: 22px;
	border-width: 3px;
}

@keyframes tourne {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.grille-photos--tri .photo {
		transition: none;
	}

	.roue,
	.medaillon__anneau,
	.etape__rond--attente {
		animation-duration: 6s;
	}

	.btn,
	.interrupteur,
	.interrupteur::after {
		transition: none;
	}
}

/* Les messages ne captent aucun appui : ce qu'ils recouvrent un instant (bouton retour, compte) reste utilisable. */
.messages {
	position: fixed;
	left: 50%;
	top: calc(var(--haut) + 12px);
	z-index: 40;
	width: min(448px, calc(100% - 32px));
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.message {
	padding: 13px 16px;
	border-radius: 16px;
	background: var(--encre);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	box-shadow: var(--ombre);
}

.message--erreur {
	background: var(--rouge);
}

.voile {
	position: fixed;
	inset: 0;
	z-index: 30;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgb(28 34 32 / 0.45);
}

.feuille {
	width: 100%;
	max-width: 480px;
	max-height: 86dvh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 16px calc(var(--bas) + 24px);
	border-radius: 24px 24px 0 0;
	background: var(--carte);
	box-shadow: 0 -18px 36px -18px rgb(28 34 32 / 0.28);
}

.proposition {
	max-height: 46dvh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--papier);
	border: 1px solid var(--filet);
	font-size: 16px;
}

.feuille__titre {
	padding: 0 4px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.feuille__texte {
	padding: 0 4px;
	font-size: 16px;
	color: var(--encre-2);
}

.code-affiche {
	padding: 18px;
	border-radius: 18px;
	background: var(--vert-50);
	border: 1px solid var(--vert-200);
	text-align: center;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: var(--vert-600);
	user-select: all;
}

.accueil-logo {
	width: 84px;
	height: 84px;
	border-radius: 22px;
	box-shadow: var(--ombre);
}

.liste-numerotee {
	margin: 0;
	padding-left: 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 16px;
	color: var(--encre-2);
}
