/**
 * Mon espace (espace.js) : le shell au milieu de l'écran, aux couleurs du thème ; sur le voile, sa carte aux angles en vague naît d'une
 * fente et s'ouvre (l'animation : espace.js). En tête le logo, la croix à droite, le retour à gauche ; dessous, l'écran du moment.
 */
.di-shell {
	outline: none;
	width: min(440px, calc(100vw - 32px));
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	overflow: visible;
	color: var(--di-texte);
	background: none;
	border: 0;
}

.di-shell::backdrop {                                      /* le voile : il s'assombrit à l'ouverture, s'éclaircit au repli */
	background: var(--di-voile);
	transition: opacity .26s ease;
}

@starting-style {
	.di-shell[open]::backdrop {
		opacity: 0;
	}
}

.di-shell.is-ferme::backdrop {
	opacity: 0;
}

.di-shell__corps {
	position: relative;                                     /* la fiche d'un petit livre s'y pose, par-dessus tout */
	--di-vague: 16px;
	display: flex;
	flex-direction: column;
	max-height: min(600px, calc(100dvh - 48px));            /* la taille de son contenu (la connexion : juste ce qu'il faut)… */
	overflow: hidden;
	background: var(--di-fond);
	transform-origin: 50% 50%;
}

.di-shell__corps.is-plein {                               /* …ouvert (l'espace, un fil), une taille fixe : d'un onglet, d'un écran à l'autre, il ne bouge pas ; seul le
	                                                          contenu défile ; d'une taille à l'autre, sa hauteur glisse (espace.js) */
	height: min(600px, calc(100dvh - 48px));
}

.di-shell__tete {                                          /* le logo au milieu ; le retour, la croix de part et d'autre */
	display: grid;
	grid-template-columns: 40px 1fr 40px;
	align-items: center;
	flex: none;
	padding: 12px 10px 4px;
}

.di-shell__retour {
	grid-column: 1;
}

.di-shell:dir(rtl) .di-shell__retour .di-icone {        /* en arabe, le retour regarde à droite */
	scale: -1 1;
}

.di-shell__logo {
	grid-column: 2;
	justify-self: center;
	width: 120px;
	aspect-ratio: 1240 / 385;
	background: var(--di-texte);
	mask: url("/wp-content/uploads/2026/10/Dinislam.png") center / contain no-repeat;
}

.di-shell__fermer {
	grid-column: 3;
}

.di-shell__contenu {                                       /* l'écran du moment : il défile seul, la tête reste */
	flex: 1;
	min-height: 0;
	padding: 6px 20px 22px;
	overflow: hidden auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.di-shell__contenu:has(> .di-shell__panneau) {          /* l'accueil : le titre et les onglets restent, le panneau seul défile */
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.di-shell__contenu > .di-shell__titre,
.di-shell__contenu > .di-onglets {
	flex: none;
}

.di-shell__panneau {
	flex: 1;
	min-height: 0;
	margin: 0 -20px -22px;
	padding: 2px 20px 22px;
	overflow: hidden auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.di-shell [hidden] {
	display: none;
}

.di-shell__titre {
	margin: 4px 0 12px;
	font: 600 var(--di-titre-inter) / var(--di-interligne-titre) var(--di-police-titre);
	text-align: center;
	overflow-wrap: anywhere;
}

.di-shell__doux {
	color: var(--di-doux);
	font-size: var(--di-texte-micro);
}

.di-shell__etat {
	margin: 12px auto 0;
	max-width: 32ch;
	color: var(--di-doux);
	font-size: var(--di-texte-petit);
	text-align: center;
}

/* L'attente : trois points qui respirent */
.di-shell__attente {
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 40px 0;
}

.di-shell__attente i {
	width: 8px;
	height: 8px;
	background: var(--di-doux);
	border-radius: 50%;
	animation: di-shell-point 1s ease-in-out infinite;
}

.di-shell__attente i:nth-child(2) {
	animation-delay: .15s;
}

.di-shell__attente i:nth-child(3) {
	animation-delay: .3s;
}

@keyframes di-shell-point {
	50% {
		opacity: .3;
		scale: .7;
	}
}

/* Un champ, son bouton dedans (la connexion, l'inscription, le pseudonyme) */
.di-shell__formulaire label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--di-doux);
	font-size: var(--di-texte-petit);
	text-align: center;
}

.di-shell .di-champ__capsule {                            /* un champ : celui de toute l'application (composants.css : .di-champ__capsule, 3px d'angles), l'étoile qui envoie au bout */
	padding-inline-end: 3px;
}

.di-shell__formulaire [data-connexion-retour] {           /* le retour de la connexion : celui de la tête du shell le remplace (espace.js), rien ne s'ajoute sous le champ */
	display: none;
}

.di-shell__lien,
.di-shell__liens button {
	display: block;
	margin: 12px auto 0;
	padding: 4px 8px;
	color: var(--di-accent);
	font: 600 var(--di-texte-petit) var(--di-police);
	background: none;
	border: 0;
	cursor: pointer;
}

/* L'inscription : ses quatre étapes, une à la fois (compte.js), comme la connexion : le nom du champ au-dessus, au milieu ; dessous la
   capsule, le champ et au bout l'étoile qui envoie (les étiquettes s'effacent : leurs enfants se rangent dans la grille) */
.di-shell__inscription {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
}

.di-shell__inscription label {
	display: contents;
}

.di-shell__inscription label > span {
	grid-column: 1 / -1;
	margin-bottom: 8px;
	color: var(--di-doux);
	font-size: var(--di-texte-petit);
	text-align: center;
}

.di-shell__inscription input {                             /* la capsule, à gauche : le champ (d'une étape à l'autre, le même à l'œil : seul son nom change) */
	grid-column: 1;
	min-width: 0;
	min-height: 46px;
	padding: 0 0 0 14px;
	color: var(--di-texte);
	font: 500 var(--di-texte-courant) var(--di-police);
	background: var(--di-carte-haute);
	border: 0;
	border-radius: 3px 0 0 3px;                             /* les angles de tous les champs */
	outline: none;
}

.di-shell__inscription input::placeholder {               /* le mot de passe : « Au moins 12 caractères », dans le champ même */
	color: var(--di-doux);
}

.di-shell__inscription .di-shell__rosace {                 /* …à droite : l'étoile, sur la même capsule */
	grid-row: 2;
	grid-column: 2;
	width: 46px;
	height: 46px;
	background: var(--di-carte-haute);
	border-radius: 0 3px 3px 0;
}

.di-shell__inscription .di-shell__rosace::before {
	inset: 2px 4px 2px 0;
}

.di-shell__inscription .di-shell__etat,
.di-shell__inscription .di-shell__liens {
	grid-column: 1 / -1;
}

/* Le bouton principal : écrire, envoyer, se déconnecter */
.di-shell__principal {
	--di-vague: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	margin: 0 0 12px;
	color: #fff;
	font: 600 var(--di-texte-courant) var(--di-police);
	background: var(--di-accent-plein);
	border: 0;
	cursor: pointer;
}

.di-shell__principal--doux {
	margin-top: 0;                                          /* sous une boîte : son écart de 12px suffit */
	color: var(--di-texte);
	background: var(--di-carte);
}

.di-shell__principal:disabled {
	opacity: .5;
}

.di-shell__principal .di-icone {
	width: 18px;
	height: 18px;
}

/* Des puces : un choix parmi quelques-uns (le genre d'un fil, son statut, la partie de l'admin) */
.di-shell__puces {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;                                              /* le même écart partout : celui des onglets */
	justify-content: center;
	margin: 0 0 12px;
}

.di-shell__puce {
	position: relative;
	padding: 6px 12px;
	color: var(--di-texte);
	font: 500 var(--di-texte-petit) var(--di-police);
	background: var(--di-carte);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.di-shell__puce[aria-pressed="true"],
.di-shell__puce:has(:checked) {
	color: #fff;
	background: var(--di-accent-plein);
}

.di-shell__puce input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Les onglets dans le shell : un peu plus serrés */
.di-shell .di-onglets {                                   /* d'un bord à l'autre : SU, s'il est là, tout à droite */
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.di-shell .di-onglet {                                     /* cinq onglets tiennent sur la largeur : leurs noms en petit, sur une ligne */
	font-size: var(--di-texte-micro);
	white-space: nowrap;
}

.di-shell .di-onglet__capsule {
	width: 52px;
	height: 42px;
}

.di-shell .di-onglet .di-sticker {
	width: 27px;
	height: 27px;
}

.di-shell .di-onglet__capsule {
	position: relative;
}

.di-sticker--notification {                               /* des messages à lire, sur l'onglet Messages : la bulle rouge, « +2 », qui clignote */
	animation: di-clignote 1.4s ease-in-out infinite;
}

@keyframes di-clignote {
	50% {
		opacity: .35;
	}
}

@media (prefers-reduced-motion: reduce) {
	.di-sticker--notification {
		animation: none;
	}
}

/* Une liste de lignes : les coups de cœur, les fils, les cœurs, les comptes */
.di-shell__liste {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.di-shell__rond:disabled {                     /* une réponse attendue : l'anneau du recueil qui tourne (coran.css : di-recueil-tourne) */
	position: relative;
}

.di-shell__rond:disabled::before {
	position: absolute;
	inset: 0;
	width: 22px;
	height: 22px;
	margin: auto;
	content: "";
	border: 2px solid color-mix(in srgb, var(--di-accent) 18%, transparent);
	border-top-color: var(--di-accent);
	border-radius: 50%;
	animation: di-recueil-tourne .9s linear infinite;
}

.di-shell__rond:disabled::before {                        /* sur le bouton de l'accent : l'anneau blanc, son icône cachée */
	width: 18px;
	height: 18px;
	border-color: rgb(255 255 255 / .3);
	border-top-color: #fff;
}

.di-shell__rond:disabled .di-icone {
	visibility: hidden;
}

.di-shell__rond:disabled {
	opacity: 1;
}

/* Pas encore de coup de cœur : une sourate en petit, dessous sa bascule ; le doigt touche le cœur, il bondit et se remplit, puis
   redevient vide, et recommence (le geste du cœur : favoris.js) */
.di-shell__carte-coeur {
	padding-bottom: 20px;
}

.di-shell__mini-bascule {
	--di-vague: 5px;
	display: flex;
	gap: 2px;
	align-items: center;
	margin-top: 12px;
	padding: 3px;
	background: var(--di-carte);
}

.di-shell__mini-bascule .di-icone {
	box-sizing: content-box;
	width: 13px;
	height: 13px;
	padding: 3px 5px;
	color: var(--di-doux);
}

.di-shell__mini-bascule > .di-icone:first-child {          /* la façon du moment, sur sa pastille */
	color: #fff;
	background: var(--di-accent-plein);
	border-radius: 4px;
}

.di-shell__mini-coeur {
	position: relative;
	display: grid;
}

.di-shell__mini-coeur .di-icone {
	animation: di-shell-coeur 3.2s ease infinite;
}

.di-shell__mini-coeur::after {                             /* l'endroit du doigt : un rond de l'accent qui s'élargit et s'efface (celui des signets) */
	position: absolute;
	inset: -4px;
	content: "";
	border: 2px solid var(--di-accent);
	border-radius: 50%;
	opacity: 0;
	animation: di-etiquette-doigt 3.2s ease-out infinite;
}

@keyframes di-shell-coeur {
	0%,
	30% {
		color: var(--di-doux);
		fill: none;
		scale: 1;
	}

	38% {
		color: #e0565b;
		fill: #e0565b;
		scale: 1.35;
	}

	46% {
		scale: .92;
	}

	54%,
	88% {
		color: #e0565b;
		fill: #e0565b;
		scale: 1;
	}

	100% {
		color: var(--di-doux);
		fill: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.di-shell__mini-coeur .di-icone {
		color: #e0565b;
		fill: #e0565b;
		animation: none;
	}

	.di-shell__mini-coeur::after,
	.di-shell [aria-busy="true"]::before {
		animation: none;
	}
}

/* Une boîte, l'identité des sections de CIS : sa tête d'un ton plus marqué (son titre ; à droite, ce qu'on y ajoute), un filet, puis
   son corps ; d'une boîte à l'autre, 12px */
.di-shell__boite {
	--di-vague: 10px;
	margin: 0 0 12px;
	background: var(--di-carte);
}

.di-shell__liste .di-shell__boite {                         /* une boîte dans une liste : l'écart de la liste suffit */
	margin: 0;
}

.di-shell__boite-tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 40px;
	padding: 0 16px;
	background: var(--di-carte-haute);
	border-bottom: 1px solid var(--di-fond);
}

.di-shell__boite-tete h3 {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font: 600 var(--di-texte-petit) var(--di-police);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.di-shell__boite-corps {
	padding: 4px 16px;
}

.di-shell__boite-corps > .di-shell__formulaire {
	padding: 10px 0;
}

.di-shell__cache {                                         /* un nom pour les lecteurs d'écran seulement (la tête de la boîte le dit déjà) */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* Une fiche : chaque ligne, son nom à gauche, sa valeur tout à droite, un filet entre deux */
.di-shell__fiche {
	margin: 0;
}

.di-shell__fiche > div {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 0;
}

.di-shell__fiche > div + div {
	border-top: 1px solid var(--di-fond);
}

.di-shell__fiche dt {
	flex: none;
	color: var(--di-doux);
	font-size: var(--di-texte-petit);
}

.di-shell__fiche dd {
	min-width: 0;
	margin: 0;
	font-size: var(--di-texte-petit);
	font-weight: 500;
	text-align: end;
	overflow-wrap: anywhere;
}

.di-shell__ligne {
	--di-vague: 9px;
	display: flex;
	align-items: center;
	background: var(--di-carte);
}

.di-shell__ligne-corps {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 2px 12px;
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	color: inherit;
	font: inherit;
	text-align: start;
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
}

div.di-shell__ligne-corps {                                /* un compte (l'admin) : son nom, puis ses lignes, l'une sous l'autre */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	cursor: default;
}

.di-shell__ligne-corps > * {
	min-width: 0;
	overflow-wrap: anywhere;
}

.di-shell__numero {
	grid-row: span 2;
	color: var(--di-accent);
	font: 600 var(--di-texte-petit) var(--di-police);
}

.di-shell__nom {
	font: 600 var(--di-titre-nom) / 1.1 var(--di-police-titre);
}

.di-shell__ligne-corps .di-shell__doux {
	grid-column: 2;
}

.di-shell__compte {
	grid-row: 1 / span 2;
	grid-column: 3;
	color: #e0565b;
	font: 600 var(--di-texte-petit) var(--di-police);
}

.di-shell__coeur {
	display: grid;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #e0565b;
	background: none;
	border: 0;
	cursor: pointer;
	place-items: center;
}

.di-shell__coeur .di-icone {
	fill: currentColor;
}

/* Un fil dans la liste : son genre, la date, un point s'il a une réponse à lire ; son extrait ; son statut */
.di-shell__ligne-tete {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	gap: 8px;
}

.di-shell__extrait {
	grid-column: 1 / 3;
	font-size: var(--di-texte-courant);
}

.di-shell__point {
	width: 8px;
	height: 8px;
	margin-inline-start: auto;
	background: #e0565b;
	border-radius: 50%;
}

.di-shell__genre {
	padding: 2px 8px;
	color: #fff;
	font: 600 var(--di-texte-micro) / 1.5 var(--di-police);
	background: var(--di-genre, #5f91c6);
	border-radius: 999px;
}

.di-shell__genre--idee {
	--di-genre: #d59047;
}

.di-shell__genre--bug {
	--di-genre: #9270b9;
}

.di-shell__genre--compagnon {                              /* demander un compagnon : Éd sur le vert de sa couverture, en clair */
	--di-genre: #e3efe2;
}

.di-shell__genre-icone svg:not(.di-icone) {
	width: 18px;
	height: auto;
	image-rendering: pixelated;
	shape-rendering: crispEdges;
}

.di-shell__genre--signalement {
	--di-genre: #e0565b;
}

.di-shell__statut {
	grid-column: 3;
	color: var(--di-doux);
	font: 600 var(--di-texte-micro) var(--di-police);
}

.di-shell__statut--nouveau {
	color: var(--di-accent);
}

.di-shell__statut--traite {
	color: var(--di-vert);
}

/* Une discussion (écrire, un fil), à la façon de SEA : sa tête, les bulles qui défilent, la console en bas qui reste */
.di-shell__contenu:has(> .di-shell__discussion) {           /* l'écran entier pour elle : seules les bulles défilent */
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.di-shell__discussion {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.di-shell__fil-tete {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 12px;
}

.di-shell__fil-tete .di-shell__puces {
	flex-basis: 100%;
	margin: 4px 0 0;
}

.di-shell__fil-tete .di-shell__lien {
	margin: 0;
}

.di-shell__fil {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
	margin: 0 -20px;
	padding: 4px 28px 12px;                                 /* l'air des pointes, de chaque côté */
	overflow: hidden auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
	list-style: none;
}

/* Un message : sa bulle ; ceux du concepteur, Éd au-dessus (son avatar) et la bulle dessous, de toute la largeur (une longue
   discussion s'y lit bien) ; les siens à droite */
.di-shell__message {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: flex-start;
	max-width: 86%;
}

.di-shell__message.is-moi {
	align-items: flex-end;
	align-self: flex-end;
}

.di-shell__message:has(> .di-shell__avatar) {
	align-self: stretch;
	max-width: none;
}

.di-shell__avatar {                                        /* Éd, le compagnon du concepteur : le petit livre vert en pixel art, net, sans cercle */
	display: grid;
	flex: none;
	width: 40px;
	height: 40px;
	margin: 0 0 6px 4px;
	place-items: center;
}

.di-shell__message.is-moi .di-shell__avatar {
	margin: 0 4px 6px 0;
}

.di-shell__avatar svg {
	width: 34px;
	height: auto;
	image-rendering: pixelated;
	shape-rendering: crispEdges;
}

/* Une bulle : les angles arrondis, sauf en haut du côté de qui l'a écrite, prolongé d'une petite pointe vers lui (au même fond) */
.di-shell__bulle {
	position: relative;
	min-width: 0;
	padding: 10px 14px 8px;
	background: var(--di-carte);
	border-radius: 14px;
	border-top-left-radius: 0;
}

.di-shell__bulle::after {
	position: absolute;
	top: 0;
	left: -8px;
	width: 8px;
	height: 10px;
	content: "";
	background: inherit;
	clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.di-shell__bulle.is-moi {
	color: #fff;
	background: var(--di-accent-plein);
	border-top-left-radius: 14px;
	border-top-right-radius: 0;
}

.di-shell__bulle.is-moi::after {
	right: -8px;
	left: auto;
	clip-path: polygon(0 0, 100% 0, 0 100%);
}

.di-shell__avatar + .di-shell__bulle {                      /* sous Éd : de toute la largeur, tous les angles arrondis, la pointe en haut, dressée vers lui (sous son milieu) */
	align-self: stretch;
	max-width: none;
	border-radius: 14px;
}

.di-shell__avatar + .di-shell__bulle::after {
	top: -8px;
	left: 18px;
	right: auto;
	width: 12px;
	height: 8px;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.di-shell__message.is-moi .di-shell__avatar + .di-shell__bulle::after {
	right: 18px;
	left: auto;
}

.di-shell:dir(rtl) .di-shell__bulle {                       /* en arabe : le miroir */
	scale: -1 1;
}

.di-shell:dir(rtl) .di-shell__bulle > * {
	scale: -1 1;
}

.di-shell__bulle p {
	margin: 0 0 2px;
	font-size: var(--di-texte-courant);
	line-height: 1.45;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.di-shell__galerie {                                      /* les petits livres du concepteur, sous ses règles, dans leur propre capsule : six, en pixel art, nets, deux par deux */
	display: grid;
	grid-template-columns: repeat(2, 40px);
	gap: 8px;
	padding: 10px;
	border-radius: 14px;
}

.di-shell__galerie::after {                                /* une capsule à part : sans pointe */
	display: none;
}

.di-shell__galerie button {                               /* un petit livre : touché, sa fiche */
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	background: var(--di-fond);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	place-items: center;
	transition: scale .15s ease;
}

.di-shell__galerie button:active {
	scale: .9;
}

.di-shell__galerie svg {
	width: 30px;
	height: 30px;
	image-rendering: pixelated;
}

.di-shell__heure {
	display: block;
	color: var(--di-doux);
	font-size: var(--di-texte-micro);
	text-align: end;
}

.di-shell__bulle.is-moi .di-shell__heure {
	color: rgb(255 255 255 / .75);
}

/* La console (celle de SEA) : une capsule, au besoin les genres en tête, le champ, et en bas à droite l'envoi dans son rond ; prise, son
   contour s'allume de l'accent */
.di-shell__console {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 8px;
	padding: 10px 10px 8px;
	background: var(--di-carte);
	border-radius: 3px;                                     /* les angles de tous les champs */
	outline: 2px solid transparent;
	outline-offset: -2px;
	transition: outline-color .2s ease;
}

.di-shell__console:focus-within {
	outline-color: color-mix(in srgb, var(--di-accent) 45%, transparent);
}

.di-shell__choix-genre {                                  /* le genre, dans la console : le bouton du filtre (sa tête), sa liste dessous */
	margin: -10px -10px 0;
	overflow: hidden;
	border-radius: 3px 3px 0 0;
}

.di-shell__choix-genre .di-shell__filtre-bouton {
	min-height: 42px;
	background: var(--di-carte-haute);
}

.di-shell__choix-genre .di-shell__genre-icone {
	width: 24px;
	height: 24px;
	border-radius: 7px;
}

.di-shell__choix-genre .di-shell__genre-icone .di-icone {
	width: 14px;
	height: 14px;
}

.di-shell__choix-genre [data-nom] {
	flex: 1;
}

.di-shell__a {                                             /* « À : », devant le destinataire (l'admin qui écrit à un inscrit) */
	color: var(--di-doux);
	font-weight: 500;
}

.di-shell__inscrit {                                       /* un inscrit dans la liste : son pseudonyme, dessous son courriel */
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.di-shell__inscrit small {
	overflow: hidden;
	color: var(--di-doux);
	font-size: var(--di-texte-micro);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.di-shell__choix-genre .di-shell__filtre-liste {           /* une longue liste (les inscrits) : elle défile */
	max-height: 220px;
	overflow-y: auto;
}

.di-shell__filtre-bouton.di-shell__genre-bouton > .di-icone:last-child {   /* au bout, l'icône du filtre (pas un chevron) : ouverte, elle s'allume de l'accent */
	rotate: 0deg;
	transition: color .2s ease;
}

.di-shell__filtre-bouton.di-shell__genre-bouton[aria-expanded="true"] > .di-icone:last-child {
	rotate: 0deg;
	color: var(--di-accent);
}

.di-shell__console textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 24px;
	max-height: 140px;
	padding: 4px 6px;
	color: var(--di-texte);
	font: var(--di-texte-courant) / 1.5 var(--di-police);
	background: none;
	border: 0;
	outline: none;
	resize: none;
}

.di-shell__console textarea::placeholder {
	color: var(--di-doux);
}

.di-shell__console-bas {
	display: flex;
	align-items: center;
	gap: 8px;
}

.di-shell__console-etat {
	flex: 1;
	margin: 0;
	color: #e0565b;
	font-size: var(--di-texte-micro);
}

.di-shell__rond {                                          /* l'envoi : la flèche dans son rond, tout à droite ; plein de l'accent quand il y a à envoyer */
	position: relative;
	display: grid;
	flex: none;
	width: 34px;
	height: 34px;
	margin-inline-start: auto;
	padding: 0;
	color: var(--di-doux);
	background: var(--di-fond);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	place-items: center;
	transition: background-color .2s ease, color .2s ease, scale .15s ease;
}

.di-shell__rond.is-pret {
	color: #fff;
	background: var(--di-accent-plein);
}

.di-shell__rond:active {
	scale: .9;
}

.di-shell__rond .di-icone {
	width: 17px;
	height: 17px;
}

.di-shell:lang(ar) .di-shell__titre,
.di-shell:lang(ar) .di-shell__nom {
	font-family: var(--di-police-arabe);
}

/* Le filtre de l'admin (Messages) : une boîte, en tête son bouton « Filtre » et ce qui est montré ; ouverte, dessous, chaque genre sur sa ligne,
   son icône dans une pastille de sa couleur, son nom, son interrupteur (composants.css), en petit */
.di-shell__filtre {
	--di-vague: 10px;
	margin: 0 0 12px;
	background: var(--di-carte);
}

.di-shell__filtre-bouton {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	color: var(--di-texte);
	font: 600 var(--di-texte-petit) var(--di-police);
	text-align: start;
	background: var(--di-carte-haute);              /* la tête de la boîte (.di-shell__boite-tete) */
	border: 0;
	cursor: pointer;
}

.di-shell__filtre-bouton .di-icone {
	width: 18px;
	height: 18px;
}

.di-shell__filtre-bouton [data-resume] {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-weight: 500;
	text-align: end;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.di-shell__filtre-bouton > .di-icone:last-child {
	color: var(--di-doux);
	transition: rotate .25s var(--di-courbe);
}

.di-shell__filtre-bouton[aria-expanded="true"] > .di-icone:last-child {
	rotate: 180deg;
}

.di-shell__filtre-liste {                                  /* elle se déplie et se replie en glissant (espace.js : deplier) */
	display: grid;
	overflow: hidden;
	padding: 2px 14px 6px;
}

.di-shell__filtre-ligne + .di-shell__filtre-ligne {
	border-top: 1px solid var(--di-fond);
}

.di-shell__filtre-ligne {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
	color: var(--di-texte);
	font: 500 var(--di-texte-petit) var(--di-police);
	text-align: start;
	background: none;
	border: 0;
	cursor: pointer;
}

.di-shell__filtre-ligne > span:nth-child(2) {
	flex: 1;
}

.di-shell__filtre-ligne > .di-interrupteur {               /* l'interrupteur, toujours tout à droite, à sa taille */
	flex: none;
}

.di-shell__filtre-ligne .di-interrupteur {                 /* l'interrupteur de l'application, en petit */
	scale: .7;
	margin: -6px -3px;
}

.di-shell__genre-icone {                                   /* l'icône d'un genre, blanche, dans une pastille de sa couleur */
	display: grid;
	width: 28px;
	height: 28px;
	color: #fff;
	background: var(--di-genre, #5f91c6);
	border-radius: 8px;
	place-items: center;
}

.di-shell__genre-icone .di-icone {
	width: 16px;
	height: 16px;
}

/* Le bouton d'un champ (la connexion, l'inscription, le pseudonyme) : l'étoile à huit branches de la lecture (coran.css : .di-lecteur__lecture), en dégradé de l'accent,
   l'icône blanche au milieu ; pendant l'envoi, l'anneau blanc tourne dedans */
.di-shell__rosace {
	position: relative;
	display: grid;
	flex: none;
	width: 42px;
	height: 42px;
	padding: 0;
	color: #fff;
	background: none;
	border: 0;
	cursor: pointer;
	place-items: center;
	transition: scale .15s ease;
}

.di-shell__rosace::before {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(135deg, var(--di-degrade-1), var(--di-accent-plein));
	mask: var(--di-rosace) center / contain no-repeat;
}

.di-shell__rosace:active {
	scale: .9;
}

.di-shell__rosace .di-icone {
	position: relative;
	width: 18px;
	height: 18px;
}

.di-shell__rosace .di-anneau-vague {                       /* l'attente, celle de CIS : l'anneau en vagues, blanc, ouvert sur un quart, qui tourne ; cachée au repos */
	position: absolute;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 72 28;
	opacity: 0;
	scale: .5;
	transition: opacity .2s ease, scale .25s var(--di-ressort);
	animation: di-recueil-tourne .9s linear infinite;
}

.di-shell__rosace:disabled .di-anneau-vague {               /* validé, la réponse attendue : le chevron s'efface, l'anneau paraît à sa place */
	opacity: 1;
	scale: 1;
}

.di-shell__rosace .di-icone {
	transition: opacity .2s ease, scale .25s ease;
}

.di-shell__rosace:disabled .di-icone {
	opacity: 0;
	scale: .5;
}

.di-shell__rosace:disabled {
	cursor: default;
	opacity: 1;
}

/* Le nom d'un champ qui change : un squelette qui scintille le couvre (compte.js : squelette, devoiler), à la taille de son texte */
.di-shell__formulaire label > span:first-child,
.di-shell__inscription label > span {
	justify-self: center;
	align-self: center;
	width: fit-content;
	border-radius: 6px;
}

.is-squelette {
	color: transparent;
	background: linear-gradient(90deg, var(--di-carte) 25%, var(--di-carte-haute) 50%, var(--di-carte) 75%) 0 0 / 200% 100%;
	animation: di-squelette 1.2s ease-in-out infinite;
}

@keyframes di-squelette {
	to {
		background-position: -200% 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-squelette,
	.di-shell__rosace .di-anneau-vague {
		animation: none;
	}
}

.di-shell__signe {                                         /* la croix, sous le champ : sans place au repos ; elle l'ouvre, bondit, s'efface (espace.js) */
	display: grid;
	height: 0;
	overflow: hidden;
	color: #e0565b;
	place-items: end center;
}

.di-shell__signe .di-icone {
	width: 22px;
	height: 22px;
	opacity: 0;
}

/* Les coups de cœur : chaque sourate comme dans le recueil (coran.css : .di-sourates), son étoile sertie au-dessus ; le cœur sur sa
   capsule, en haut à droite */
.di-shell__sourates {
	--di-sourates-sol: var(--di-fond);
	padding-top: 14px;                                      /* l'air au-dessus de la première étoile : 12px, comme partout */
}

.di-shell__sourates li {
	position: relative;
}

.di-shell__sourates .di-shell__coeur {
	position: absolute;
	top: calc(var(--di-etoile, 72px) / 2 - 6px);
	right: 2px;
	z-index: 3;
}

.di-shell__boite-corps > .di-shell__principal {
	margin-bottom: 14px;
}

/* Participer : les actions, chacune une ligne (son icône dans sa pastille, son nom, le chevron) */
.di-shell__actions {
	display: grid;
}

.di-shell__action {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	color: var(--di-texte);
	font: 500 var(--di-texte-petit) var(--di-police);
	text-align: start;
	background: none;
	border: 0;
	cursor: pointer;
}

.di-shell__action + .di-shell__action {
	border-top: 1px solid var(--di-fond);
}

.di-shell__action > span:nth-child(2) {
	flex: 1;
}

.di-shell__action > .di-icone {
	width: 16px;
	height: 16px;
	color: var(--di-doux);
}

.di-shell:dir(rtl) .di-shell__action > .di-icone {
	scale: -1 1;
}

.di-shell__filtre-liste > .di-marques-vide {               /* personne dans la liste (les inscrits) : l'image du recueil vide, au milieu */
	padding: 8px 0;
}

.di-shell__panneau > .di-shell__principal:last-child {      /* Écrire, sous les fils : 12px au-dessus, comme partout */
	margin: 12px 0 0;
}

/* Le cœur d'une réponse du concepteur : en bas à gauche de la bulle ; aimée, plein et rouge */
.di-shell__aimer {
	display: grid;
	margin: 4px 0 -2px -4px;
	padding: 4px;
	color: var(--di-doux);
	background: none;
	border: 0;
	cursor: pointer;
	place-items: center;
}

.di-shell__aimer[hidden] {
	display: none;
}

.di-shell__aimer .di-icone {
	width: 18px;
	height: 18px;
	transition: color .2s ease;
}

.di-shell__aimer[aria-pressed="true"] .di-icone {
	color: #e0565b;
	fill: currentColor;
}

.di-shell__aimer:disabled {
	cursor: default;
}

/* SU, les cœurs : la date du cœur en tête ; la réponse aimée dessous, en italique, touchée elle ouvre le fil */
.di-shell__aime {
	color: #e0565b;
	font-size: var(--di-texte-micro);
	font-weight: 600;
	white-space: nowrap;
}

.di-shell__reponse-aimee {
	display: block;
	width: 100%;
	margin: 0 0 8px;
	padding: 10px 12px;
	color: var(--di-texte);
	font: italic var(--di-texte-petit) / 1.45 var(--di-police);
	text-align: start;
	background: var(--di-fond);
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

.di-shell__effacer {                                       /* effacer le message, en bas à gauche de la console : paraît dès qu'il y a du texte */
	display: grid;
	flex: none;
	width: 32px;
	height: 32px;
	padding: 0;
	color: var(--di-doux);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	place-items: center;
	animation: di-fondu .2s ease;
	transition: color .2s ease, rotate .35s var(--di-courbe);
}

.di-shell__effacer[hidden] {
	display: none;
}

.di-shell__effacer:active {
	color: var(--di-texte);
	rotate: -180deg;
}

.di-shell__effacer .di-icone {
	width: 17px;
	height: 17px;
}

/* La fiche d'un petit livre (espace.js : ficheLivre), comme l'« Information » du bureau : un voile sur le shell, au milieu sa carte, le livre
   en grand, son nom, sa description */
.di-shell__fiche-livre {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: grid;
	padding: 24px;
	background: var(--di-voile);
	cursor: pointer;
	place-items: center;
}

.di-shell__fiche-carte {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 260px;
	padding: 22px 20px 20px;
	text-align: center;
	background: var(--di-fond);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgb(0 0 0 / .18);
}

.di-shell__fiche-dessin svg {
	width: 96px;
	height: 96px;
	image-rendering: pixelated;
}

.di-shell__fiche-carte h3 {
	margin: 4px 0 0;
	font: 600 var(--di-titre-inter) / var(--di-interligne-titre) var(--di-police-titre);
}

.di-shell__fiche-carte p {
	margin: 0;
	color: var(--di-doux);
	font-size: var(--di-texte-petit);
	line-height: 1.5;
}

.di-shell__fiche-carte {                                   /* le crayon du concepteur s'y place, en haut à droite */
	position: relative;
}

.di-shell__fiche-crayon {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	width: 32px;
	height: 32px;
	padding: 0;
	color: var(--di-doux);
	background: var(--di-carte);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	place-items: center;
}

.di-shell__fiche-crayon .di-icone {
	width: 16px;
	height: 16px;
}

.di-shell__fiche-carte.is-edition :is(h3, p, .di-shell__fiche-crayon) {   /* le mode édition : les textes laissent la place à leurs champs */
	display: none;
}

.di-shell__fiche-edition {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	cursor: auto;
}

.di-shell__fiche-edition :is(input, textarea) {             /* les champs de toute l'application : 3px d'angles */
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	color: var(--di-texte);
	font: var(--di-texte-petit) / 1.45 var(--di-police);
	background: var(--di-carte-haute);
	border: 0;
	border-radius: 3px;
	outline: none;
	resize: none;
}

.di-shell__fiche-edition input {
	font-weight: 600;
	text-align: center;
}

.di-shell__fiche-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.di-shell__fiche-actions .di-shell__lien {
	margin: 0;
}

/* Rien encore : la carte du recueil vide, son icône au repos (sans l'anneau qui tourne : rien n'attend) */
.di-recueil-vide.is-repos .di-recueil-vide__attente::before {
	display: none;
}

.di-recueil-vide.is-repos .di-recueil-vide__attente .di-icone {
	animation: none;
}

/* La toute première fois qu'une liste arrive : trois lignes de squelette qui scintillent, à la place des siennes */
.di-shell__squelette {
	display: grid;
	gap: 12px;
}

.di-shell__squelette i {
	display: block;
	height: 64px;
	border-radius: 10px;
}

.di-shell__squelette i:nth-child(2) {
	opacity: .7;
}

.di-shell__squelette i:nth-child(3) {
	opacity: .45;
}

.di-shell__galerie--compte {                               /* ses compagnons, dans leur boîte : en rang, sans fond de bulle */
	grid-template-columns: repeat(auto-fill, 40px);
	padding: 10px 0;
	background: none;
}
