/* Notes — notes.dujardin.me
 *
 * La palette est celle de Tâches (et donc de Sono93), teinte pour teinte : des
 * sites de la même main doivent se reconnaître.
 *
 * Une différence de forme, voulue : Tâches écrit ses teintes en light-dark(),
 * que Safari ne connaît que depuis la 17.5. La cible de Notes descend à
 * Safari iOS 15 ; les deux jeux de teintes sont donc déclarés à part — le clair
 * par défaut, le sombre par la préférence du système ou par le choix enregistré.
 */

:root {
	color-scheme: light;

	--fond: #fff;
	--laterale: #f4f4f7;
	--surface: #f1f1f5;
	--surface-haute: #e6e6ee;
	/* La coloration du code (coloration.js) : mots-clés, textes, commentaires… */
	--code-mot: #cf222e;
	--code-texte: #0a3069;
	--code-commentaire: #6e7781;
	--code-nombre: #0550ae;
	--code-nom: #8250df;
	--code-attribut: #116329;
	--code-type: #953800;
	--bordure: #e1e1e9;
	--separateur: #e4e4ec;
	--survol: #eaeaf1;
	--texte: #16171a;
	--texte-doux: #3b3f47;
	--discret: #62687a;
	--efface: #6b7180;

	--accent: #7b2cbf;
	--accent-texte: #fff;
	--accent-voile: rgba(123, 44, 191, .12);
	--accent-halo: rgba(123, 44, 191, .35);

	--erreur: #c0272d;
	--succes: #0f7a52;
	--avertir: #a8850c;
	--surligne: rgba(231, 190, 35, .45);

	--ombre: rgba(0, 0, 0, .12);
	--voile-fond: rgba(0, 0, 0, .35);

	--rayon: 6px;
	--largeur-laterale: 232px;
	--largeur-liste: 320px;
}

/* Les teintes sombres, une fois pour les deux façons d'y arriver. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="clair"]) {
		color-scheme: dark;

		--fond: #0b0b0d;
		--laterale: #000;
		--surface: #17181c;
		--surface-haute: #212328;
		--code-mot: #ff7b72;
		--code-texte: #a5d6ff;
		--code-commentaire: #8b949e;
		--code-nombre: #79c0ff;
		--code-nom: #d2a8ff;
		--code-attribut: #7ee787;
		--code-type: #ffa657;
		--bordure: #2a2c33;
		--separateur: #1d1f25;
		--survol: #131418;
		--texte: #f2f3f5;
		--texte-doux: #c8ccd3;
		--discret: #9096a0;
		--efface: #5f6672;

		--accent: #c589f2;
		--accent-texte: #17171b;
		--accent-voile: rgba(197, 137, 242, .16);
		--accent-halo: rgba(197, 137, 242, .45);

		--erreur: #ff6b6b;
		--succes: #5ddba0;
		--avertir: #e7be23;
		--surligne: rgba(231, 190, 35, .35);

		--ombre: rgba(0, 0, 0, .35);
		--voile-fond: rgba(0, 0, 0, .6);
	}
}

:root[data-theme="sombre"] {
	color-scheme: dark;

	--fond: #0b0b0d;
	--laterale: #000;
	--surface: #17181c;
	--surface-haute: #212328;
	--code-mot: #ff7b72;
	--code-texte: #a5d6ff;
	--code-commentaire: #8b949e;
	--code-nombre: #79c0ff;
	--code-nom: #d2a8ff;
	--code-attribut: #7ee787;
	--code-type: #ffa657;
	--bordure: #2a2c33;
	--separateur: #1d1f25;
	--survol: #131418;
	--texte: #f2f3f5;
	--texte-doux: #c8ccd3;
	--discret: #9096a0;
	--efface: #5f6672;

	--accent: #c589f2;
	--accent-texte: #17171b;
	--accent-voile: rgba(197, 137, 242, .16);
	--accent-halo: rgba(197, 137, 242, .45);

	--erreur: #ff6b6b;
	--succes: #5ddba0;
	--avertir: #e7be23;
	--surligne: rgba(231, 190, 35, .35);

	--ombre: rgba(0, 0, 0, .35);
	--voile-fond: rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
	margin: 0;
	background: var(--fond);
	color: var(--texte);
	font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.hors-ecran {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Les symboles des pictogrammes, posés une fois dans la page. */
.symboles { position: absolute; width: 0; height: 0; overflow: hidden; }

.icone {
	width: 20px; height: 20px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

kbd {
	padding: 1px 5px;
	border: 1px solid var(--bordure);
	border-bottom-width: 2px;
	border-radius: 4px;
	background: var(--surface);
	font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- Le cadre ------------------------------------------------------------ */

.cadre { display: flex; height: 100%; }

.colonne {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.vue--nue {
	display: grid;
	place-items: center;
	min-height: 100%;
	padding: 24px 16px;
}

.vue--page {
	flex: 1;
	overflow-y: auto;
	display: flex;
	justify-content: center;
	padding: 24px 16px 64px;
}

.page-reglages { display: flex; flex-direction: column; }

/* --- La barre latérale --------------------------------------------------- */

.laterale {
	width: var(--largeur-laterale);
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--laterale);
	border-right: 1px solid var(--separateur);
	padding: 14px 10px 10px;
	overflow-y: auto;
}

.marque {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 8px 4px;
	font-weight: 600;
}

.logo { display: block; width: 26px; height: 26px; }
.logo svg { display: block; width: 100%; height: 100%; }
/* Le mauve de la marque est FIXE, comme le favicon et ceux de la fratrie : il
   ne suit pas l'accent, qui s'éclaircit en thème sombre. */
.logo-fond { fill: #7b2cbf; }
.logo-trace {
	fill: none;
	stroke: #fff;
	stroke-width: 2.8;
	stroke-linecap: round;
}

.menu { flex: 1; display: flex; flex-direction: column; gap: 1px; }

/* Les dossiers prennent toute la hauteur que le reste laisse, et défilent
   seuls : la Corbeille, l'application et le compte restent en vue. Sous 8 rem
   (écran très bas), c'est la latérale entière qui défile. */
.laterale .menu { min-height: 8rem; }
.laterale .menu-dossiers { flex: 0 1 auto; min-height: 0; overflow-y: auto; }

.menu-titre {
	margin: 6px 0 4px;
	padding: 0 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--efface);
}

.menu-dossiers { display: flex; flex-direction: column; gap: 1px; }

/* Les groupes de dossiers : un intertitre qui se replie, ses dossiers dessous. */
.menu-groupe-titre {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	margin-top: 6px;
	padding: 5px 8px;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--efface);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-align: left;
	cursor: pointer;
}
.menu-groupe-titre:hover { background: var(--survol); color: var(--texte-doux); }
.menu-groupe-titre .menu-groupe-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-groupe-titre .menu-compte { letter-spacing: 0; text-transform: none; font-weight: 400; }
.menu-groupe-chevron { width: 13px !important; height: 13px !important; transform: rotate(180deg); transition: transform .15s ease; }
.menu-groupe-titre[aria-expanded="false"] .menu-groupe-chevron { transform: rotate(90deg); }
.menu-groupe-titre--actif { color: var(--accent); }
.menu-groupe-titre.depot { background: var(--accent-voile); box-shadow: inset 0 0 0 1px var(--accent); }
/* Ses dossiers en léger retrait, sous un filet : un dossier hors groupe, juste
   après, ne passe pas pour l'un des siens. */
.menu-groupe { display: flex; flex-direction: column; gap: 1px; margin: 0 0 4px 14px; padding-left: 4px; border-left: 1px solid var(--separateur); }
.menu-groupe--replie { display: none; }
.menu-groupe-neuf { padding: 4px; }
.menu-groupe-neuf input { width: 100%; padding: 6px 8px; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond); font-size: 14px; }

.menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--texte-doux);
	text-align: left;
	width: 100%;
	cursor: pointer;
}

.menu-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item:hover { background: var(--survol); color: var(--texte); }

.menu-item[aria-current="page"] {
	background: var(--accent-voile);
	color: var(--accent);
	font-weight: 500;
}

.menu-item--discret { color: var(--discret); font-size: 14px; }

.menu-emoji {
	width: 20px;
	flex: none;
	text-align: center;
	font-size: 16px;
	line-height: 1;
}

.menu-nom { flex: 1; }

.menu-compte {
	margin-left: auto;
	flex: none;
	padding-left: 6px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--efface);
}
.menu-item[aria-current="page"] .menu-compte { color: var(--accent); }

/* Une cible de dépôt se signale pendant qu'une note ou un dossier la survole. */
.menu-item.depot { background: var(--accent-voile); box-shadow: inset 0 0 0 1px var(--accent); }

.dossier-neuf { padding: 0 2px; }

.dossier-neuf input,
.dossier-renomme input,
.etiquette-neuve input {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	background: var(--fond);
	font-size: 14px;
}

.pied {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--separateur);
}

.ligne-compte { display: flex; align-items: center; gap: 2px; }

.compte {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px;
	border-radius: var(--rayon);
	color: var(--texte-doux);
}
.compte span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte:hover { background: var(--survol); color: var(--texte); }

/* --- Les outils ------------------------------------------------------------ */

.outil {
	position: relative;
	display: inline-grid;
	place-items: center;
	min-width: 34px; height: 34px;
	padding: 0;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--discret);
	cursor: pointer;
}
.outil:hover { background: var(--survol); color: var(--texte); }
.outil[aria-pressed="true"] { color: var(--accent); }

.outil--texte { padding: 0 10px; font-size: 14px; }
.outil--danger { color: var(--erreur); }
/* Sur un grand écran seulement : au téléphone, ces réglages sont dans les réglages. */
@media (max-width: 760px) { .outil--large { display: none; } }

/* « Ranger dans » : un sélecteur natif posé, invisible, sur le pictogramme.
   Il reste le vrai contrôle — clavier, lecteur d'écran et liste native du
   téléphone compris — sans le poids visuel d'une liste déroulante. */
.outil--choix select {
	position: absolute;
	inset: 0;
	width: 100%;
	opacity: 0;
	cursor: pointer;
}
.outil--choix:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }

.bascule-theme .theme-clair,
.bascule-theme .theme-sombre { display: none; }
:root[data-theme="clair"] .theme-sombre { display: grid; }
:root[data-theme="sombre"] .theme-clair { display: grid; }

@media (prefers-color-scheme: light) {
	:root:not([data-theme]) .theme-sombre { display: grid; }
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .theme-clair { display: grid; }
}

/* --- La barre du haut ---------------------------------------------------- */

.haut {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--separateur);
}

.haut-titre { margin: 0; font-size: 17px; font-weight: 600; }
.haut-outils { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.burger {
	display: none;
	place-items: center;
	width: 36px; height: 36px;
	flex: none;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--texte-doux);
	cursor: pointer;
}
.burger:hover { background: var(--survol); }

.voile {
	position: fixed;
	inset: 0;
	background: var(--voile-fond);
	z-index: 15;
}

/* --- La recherche ---------------------------------------------------------- */

.recherche {
	position: relative;
	flex: 1;
	max-width: 560px;
	display: flex;
	align-items: center;
}

.recherche > .icone {
	position: absolute;
	left: 10px;
	color: var(--efface);
	pointer-events: none;
}

.recherche input {
	width: 100%;
	padding: 8px 70px 8px 38px;
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	background: var(--surface);
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
}

.recherche input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.recherche-touche {
	position: absolute;
	right: 10px;
	color: var(--efface);
	pointer-events: none;
}
.recherche input:focus ~ .recherche-touche,
.recherche input:not(:placeholder-shown) ~ .recherche-touche { display: none; }
/* « Ctrl K » caché, la croix qui vide le champ revient au bord. */
.recherche input:focus,
.recherche input:not(:placeholder-shown) { padding-right: 10px; }

.resultats {
	position: absolute;
	top: calc(100% + 6px);
	left: 0; right: 0;
	z-index: 30;
	max-height: min(60vh, 460px);
	overflow-y: auto;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: var(--fond);
	border: 1px solid var(--bordure);
	border-radius: calc(var(--rayon) * 1.5);
	box-shadow: 0 12px 32px var(--ombre);
}

.resultat {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0 10px;
	padding: 8px 10px;
	border-radius: var(--rayon);
	cursor: pointer;
}
.resultat[aria-selected="true"] { background: var(--accent-voile); }
.resultat--vide { color: var(--discret); cursor: default; }

.resultat-titre { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resultat-dossier { font-size: 12px; color: var(--efface); white-space: nowrap; }
.resultat-rubrique { padding: 6px 10px 2px; font-size: 12px; font-weight: 600; color: var(--efface); }
.resultat-aide { padding: 8px 10px 4px; font-size: 12px; color: var(--efface); }
.resultat-aide--erreur { color: var(--avertir, #b45309); }
.resultat--garder { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; }
.resultat--garder .icone { width: 16px; height: 16px; }
.resultat-oublier { display: grid; place-items: center; width: 24px; height: 24px; margin: -3px -4px 0 0; padding: 0; border: 0; border-radius: var(--rayon); background: none; color: var(--efface); cursor: pointer; }
.resultat-oublier:hover { background: var(--survol); color: var(--texte); }
.resultat-oublier .icone { width: 14px; height: 14px; }
.resultat-extrait {
	grid-column: 1 / -1;
	font-size: 13px;
	color: var(--discret);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --- Le plan : la liste et l'éditeur ------------------------------------------ */

.plan {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: var(--largeur-liste) 1fr;
}

.liste {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-right: 1px solid var(--separateur);
	overflow-y: auto;
}

.liste-tete {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 14px 12px 8px 16px;
}

.liste-titre {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.liste-titre #titre-liste { vertical-align: middle; }

/* L'emoji (ou l'icône) du dossier, devant son nom : un clic le change. */
.dossier-marque {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin: -4px 4px -4px -6px;
	padding: 0;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--discret);
	font-size: 18px;
	line-height: 1;
	vertical-align: middle;
	cursor: pointer;
}
.dossier-marque:hover, .dossier-marque[aria-expanded="true"] { background: var(--survol); }
.dossier-marque .icone { width: 20px; height: 20px; }

.choix-emoji { width: 320px; max-width: calc(100vw - 16px); }
.emoji-recherche { padding: 4px 4px 6px; }
.emoji-recherche input { width: 100%; padding: 6px 10px; font-size: 14px; }
.emojis-defile { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 4px; }
.emojis-groupe { margin: 8px 6px 4px; font-size: 12px; font-weight: 600; color: var(--discret); }
.emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.menu-contextuel .emojis .emoji {
	display: grid;
	place-items: center;
	width: auto;
	height: 34px;
	padding: 0;
	font-size: 20px;
}
.menu-contextuel .emojis .emoji[aria-pressed="true"] { background: var(--accent-voile); }

.liste-outils { display: flex; gap: 2px; }

/* À la souris, les outils du dossier ne paraissent qu'au survol de l'en-tête (ou
   au clavier, ou menu du tri ouvert) : le reste du temps, le nom du dossier a
   toute la ligne. Ils se posent alors par-dessus la fin du nom, sur un fondu.
   Au doigt, où rien ne se survole, ils restent à leur place. */
@media (hover: hover) {
	.liste-tete:not(.selection-barre) { position: relative; }
	.liste-tete:not(.selection-barre) .liste-outils {
		position: absolute;
		top: 0; right: 0; bottom: 0;
		align-items: center;
		padding: 6px 12px 0 28px;
		background: linear-gradient(to right, transparent, var(--fond) 24px);
		opacity: 0;
		pointer-events: none;
		transition: opacity .12s ease;
	}
	.liste-tete:not(.selection-barre):hover .liste-outils,
	.liste-tete:not(.selection-barre):focus-within .liste-outils,
	.liste-tete:not(.selection-barre) .liste-outils:has([aria-expanded="true"]) { opacity: 1; pointer-events: auto; }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
	.liste-tete .liste-outils { transition: none; }
}
.dossier-renomme { padding: 0 12px 8px 16px; }
.liste-note { margin: 0 16px 8px; font-size: 13px; color: var(--discret); }

/* La vue Fichiers : les images des notes, filtrées par dossier et par titre. */
.fichiers-filtres { display: flex; gap: 8px; margin: 0 16px 10px; }
.fichiers-filtres select,
.fichiers-filtres input {
	min-width: 0;
	padding: 6px 8px;
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	background: var(--fond);
	color: var(--texte);
	font-size: 14px;
}
.fichiers-filtres select { flex: 0 1 45%; }
.fichiers-filtres input { flex: 1 1 auto; }
.fichiers-liste { margin: 0; padding: 0 8px 24px; list-style: none; }
.fichiers-suite { height: 1px; }
.liste-poids { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--discret); white-space: nowrap; }
.fichier { display: flex; gap: 12px; padding: 8px; border-radius: var(--rayon); }
.fichier:hover { background: var(--survol); }
.fichier-vignette {
	flex: none;
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	background: var(--surface);
}
.fichier-vignette img { width: 100%; height: 100%; object-fit: cover; }
.fichier-infos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fichier-nom { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fichier-meta { font-size: 12px; color: var(--discret); }
.fichier-notes { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.fichier-notes--aucune { color: var(--discret); font-style: italic; }
.fichier-note { display: flex; gap: 6px; min-width: 0; color: var(--accent); }
.fichier-note:hover .fichier-titre { text-decoration: underline; }
.fichier-dossier { flex: none; color: var(--discret); }
.fichier-titre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notes { margin: 0; padding: 0 8px 24px; list-style: none; }

.note {
	position: relative;
	border-radius: var(--rayon);
}

.note-lien {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 9px 36px 9px 10px;
	border-radius: var(--rayon);
}
.note-lien:hover { background: var(--survol); }

/* Les archivées : sous un intertitre, un peu en retrait de couleur. */
.note-separateur {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 10px 4px;
	color: var(--efface);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.note-separateur::after { content: ''; flex: 1; border-top: 1px solid var(--separateur); }
.note--archivee .note-lien { opacity: 0.72; }
.note--archivee .note-lien:hover,
.note--archivee .note-lien[aria-current="true"] { opacity: 1; }
.note-lien[aria-current="true"] { background: var(--accent-voile); }

.note-titre {
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.note-extrait {
	font-size: 13px;
	color: var(--discret);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.note-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 12px;
	color: var(--efface);
}
.note-cases { font-size: 12px; color: var(--discret); font-variant-numeric: tabular-nums; }
.note-cases--finies { color: var(--succes); }

.note-etiquette::before { content: "#"; opacity: .7; }

.note-conflit { display: inline-flex; align-items: center; gap: 3px; color: var(--avertir); }
.note-conflit .icone { width: 14px; height: 14px; }

/* L'épingle : présente seulement quand elle dit quelque chose. Discrète au
   repos, franche sur la note épinglée, visible au survol pour épingler. */
.note-epingle {
	position: absolute;
	top: 7px; right: 4px;
	display: grid;
	place-items: center;
	width: 28px; height: 28px;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--efface);
	cursor: pointer;
	opacity: 0;
}
.note-epingle .icone { width: 16px; height: 16px; }
.note:hover .note-epingle, .note-epingle:focus-visible { opacity: 1; }
.note-epingle:hover { background: var(--surface-haute); color: var(--texte); }
.note-epingle[aria-pressed="true"] { opacity: 1; color: var(--accent); }
.note-epingle[aria-pressed="true"] .icone { fill: var(--accent-voile); }

/* Au doigt, pas de survol : l'épingle d'une note non épinglée reste cachée,
   et l'on épingle depuis l'éditeur. */
@media (hover: none) {
	.note-epingle[aria-pressed="false"] { display: none; }
}

/* La case de sélection : sous l'épingle, au survol ; sur toutes les notes dès
   qu'une est cochée. Elle ne décale rien : la marge de droite l'attend déjà. */
.note-coche {
	position: absolute;
	bottom: 7px; right: 4px;
	display: grid;
	place-items: center;
	width: 28px; height: 28px;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--efface);
	cursor: pointer;
	opacity: 0;
}
.note-coche .icone { width: 18px; height: 18px; }
.note:hover .note-coche, .note-coche:focus-visible, .notes--selection .note-coche { opacity: 1; }
.note-coche:hover { background: var(--surface-haute); color: var(--texte); }
.note-coche[aria-checked="true"] { color: var(--accent); }
.note-coche[aria-checked="true"] .icone { fill: var(--accent); stroke: var(--fond); }
.note--cochee .note-lien, .note--cochee .note-lien:hover { background: var(--accent-voile); }

/* Au doigt, pas de survol : la case n'apparaît qu'en sélection (« Sélectionner »,
   à l'appui long). */
@media (hover: none) {
	.notes:not(.notes--selection) .note-coche { display: none; }
}

.selection-barre .liste-titre { font-variant-numeric: tabular-nums; }

.note--tiree { opacity: .45; }
.note.depot::before,
.note.depot--apres::after {
	content: "";
	position: absolute;
	left: 6px; right: 6px;
	height: 2px;
	border-radius: 1px;
	background: var(--accent);
}
.note.depot::before { top: -1px; }
.note.depot.depot--apres::before { display: none; }
.note.depot--apres::after { bottom: -1px; }

.vide {
	margin: 40px 24px;
	text-align: center;
	color: var(--discret);
	font-size: 14px;
}

/* --- L'éditeur ------------------------------------------------------------------ */

.editeur {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.editeur-barre {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--separateur);
}

.editeur-retour { display: none; }

.modes {
	display: inline-flex;
	padding: 2px;
	border-radius: calc(var(--rayon) + 2px);
	background: var(--surface);
}

.mode {
	display: grid;
	place-items: center;
	width: 34px; height: 30px;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--discret);
	cursor: pointer;
}
.mode:hover { color: var(--texte); }
.mode[aria-pressed="true"] { background: var(--fond); color: var(--accent); box-shadow: 0 1px 3px var(--ombre); }

.editeur-outils { display: flex; gap: 2px; margin-left: auto; }

#epingler[aria-pressed="true"] .icone { fill: var(--accent-voile); }

.bandeau {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin: 10px 16px 0;
	padding: 8px 12px;
	border-radius: var(--rayon);
	background: var(--surface);
	color: var(--texte-doux);
	font-size: 14px;
}
.bandeau .icone { color: var(--avertir); width: 18px; height: 18px; }
.bandeau a { color: var(--accent); text-decoration: underline; }

.editeur-corps {
	flex: 1;
	min-height: 0;
	display: grid;
	position: relative;
}

/* Les titres proposés en tapant « [[ », sous le curseur (app.js, placerSuggestions). */
.suggestions-liens {
	position: absolute;
	top: 0;
	left: 16px;
	z-index: 5;
	max-width: min(28rem, calc(100% - 16px));
	max-height: min(18rem, 45%);
	overflow-y: auto;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: var(--fond);
	border: 1px solid var(--separateur);
	border-radius: 8px;
	box-shadow: 0 6px 24px rgb(0 0 0 / .18);
}
.suggestion-lien {
	padding: 6px 10px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.suggestion-lien[aria-selected="true"], .suggestion-lien:hover { background: var(--accent-halo); }

/* Les emojis proposés après « :cib » : l'emoji, puis son nom, en petit et discret. */
.suggestions-liens--emojis { max-width: min(17rem, calc(100% - 16px)); }
.suggestions-liens--emojis .suggestion-lien { display: flex; align-items: center; gap: 8px; padding: 4px 8px; }
.suggestion-emoji { flex: none; width: 1.4em; font-size: 18px; line-height: 1; text-align: center; }
.suggestion-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--texte-doux); }
.suggestion-lien[aria-selected="true"] .suggestion-nom { color: var(--texte); }

/* Le menu « / » : un signe dans une petite case, le libellé, et pour date, heure
   et jour ce qui s'insérera, en discret. */
.suggestions-liens--commandes { width: 17rem; max-width: min(17rem, calc(100% - 16px)); }
.suggestions-liens--commandes .suggestion-lien { display: flex; align-items: center; gap: 8px; padding: 4px 8px; }
.suggestion-signe {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 26px; height: 22px;
	border: 1px solid var(--separateur);
	border-radius: 5px;
	font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--texte-doux);
}
.suggestion-libelle { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.suggestions-liens--commandes .suggestion-nom { margin-left: auto; padding-left: 8px; font-size: 12px; }
/* La fenêtre des questions d'un modèle. */
.fenetre-fond {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgb(0 0 0 / 0.45);
}
.fenetre {
	width: min(420px, 100%);
	max-height: calc(100% - 32px);
	overflow-y: auto;
	padding: 20px;
	border-radius: var(--rayon-grand, 12px);
	background: var(--surface);
	box-shadow: 0 12px 40px rgb(0 0 0 / 0.3);
}
.fenetre-titre { margin: 0 0 4px; font-size: 18px; }
.fenetre-aide { margin: 0 0 16px; font-size: 13px; color: var(--efface); }
.fenetre-boutons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.suggestion-intertitre {
	margin: 6px 8px 2px;
	padding-top: 6px;
	border-top: 1px solid var(--separateur);
	color: var(--efface);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	pointer-events: none;
}

/* « Mentionnée dans » : les notes dont un [[lien]] mène ici. */
.mentions {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding: 8px 20px;
	border-top: 1px solid var(--separateur);
	font-size: 13px;
}
.mentions-titre { color: var(--texte-doux); }
.mention { color: var(--accent); text-decoration: none; }
.mention:hover { text-decoration: underline; }

.editeur-corps[data-mode="saisie"] { grid-template-columns: 1fr; }
.editeur-corps[data-mode="saisie"] .apercu { display: none; }
.editeur-corps[data-mode="apercu"] { grid-template-columns: 1fr; }
.editeur-corps[data-mode="apercu"] textarea { display: none; }
.editeur-corps[data-mode="cote"] { grid-template-columns: 1fr 1fr; }
.lecture-html { display: none; }
.editeur-corps[data-mode="html"] { grid-template-columns: 1fr; }
.editeur-corps[data-mode="html"] textarea,
.editeur-corps[data-mode="html"] .apercu,
.editeur-corps[data-mode="html"] .miroir { display: none; }
.editeur-corps[data-mode="html"] .lecture-html { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.editeur.note-html .modes,
.editeur.note-html #dicter,
.editeur.note-html #imprimer,
.editeur.note-html #bascule-machine,
.editeur.note-html #bascule-focus,
.editeur.note-html .compteur { display: none !important; }
.editeur-corps[data-mode="cote"] .apercu { border-left: 1px solid var(--separateur); }

/* Le plein écran : l'éditeur seul dans la fenêtre, dans son mode. En saisie
   (et en aperçu), le texte garde une largeur qui se lit, au milieu ; la zone,
   elle, prend toute la fenêtre — son ascenseur reste au bord de l'écran. Le
   miroir du mode focus prend les mêmes marges. Côte à côte, les deux moitiés
   prennent tout. */
.sortir-plein { display: none; }
body.plein-ecran .laterale,
body.plein-ecran .haut,
body.plein-ecran .liste,
body.plein-ecran .editeur-barre { display: none; }
body.plein-ecran .plan { grid-template-columns: 1fr; }
body.plein-ecran .editeur { position: relative; }
body.plein-ecran .editeur-corps[data-mode="saisie"] #texte,
body.plein-ecran .editeur-corps[data-mode="saisie"] .miroir,
body.plein-ecran .editeur-corps[data-mode="apercu"] .apercu {
	padding-inline: max(clamp(16px, 4vw, 40px), calc((100% - 52em) / 2));
}
body.plein-ecran .sortir-plein {
	display: grid;
	position: absolute;
	top: 8px;
	right: 12px;
	z-index: 5;
	opacity: .25;
	transition: opacity .15s;
}
body.plein-ecran .sortir-plein:hover,
body.plein-ecran .sortir-plein:focus-visible { opacity: 1; }

/* Le texte se compose et se lit en texte : une police proportionnelle, une
   largeur de ligne qui se lit, et assez d'air autour. */
#texte {
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 20px clamp(16px, 4vw, 40px) 40px;
	border: 0;
	resize: none;
	background: var(--fond);
	color: var(--texte);
	font-size: 16px;
	line-height: 1.6;
	tab-size: 4;
}
#texte:focus-visible { outline: none; }
#texte[readonly] { color: var(--texte-doux); }

/* Le mode focus (app.js, « Le compteur et le mode focus ») : le champ devient
   transparent au-dessus d'un miroir qui porte les couleurs. Les deux partagent
   la même case de la grille, les mêmes marges, la même police. */
.miroir { display: none; }

.editeur-corps.focus-actif #texte,
.editeur-corps.focus-actif .miroir {
	grid-row: 1;
	grid-column: 1;
}

.editeur-corps.focus-actif .miroir {
	display: block;
	align-self: start;
	justify-self: start;
	overflow: hidden;
	padding: 20px clamp(16px, 4vw, 40px) 40px;
	background: var(--fond);
	color: var(--texte);
	font-size: 16px;
	line-height: 1.6;
	tab-size: 4;
	white-space: pre-wrap;
	overflow-wrap: break-word;
	pointer-events: none;
}

.editeur-corps.focus-actif #texte {
	position: relative;
	background: transparent;
	color: transparent;
	caret-color: var(--texte);
}

.miroir .estompe { opacity: .3; }

/* Le défilement machine à écrire (app.js) : assez de vide sous le texte pour
   que la dernière ligne monte aux deux tiers ; le miroir du mode focus suit. */
html[data-machine] #texte,
html[data-machine] .editeur-corps .miroir { padding-bottom: 35vh; }

.mesure {
	position: absolute;
	top: 0;
	left: -9999px;
	visibility: hidden;
	box-sizing: border-box;
	white-space: pre-wrap;
	overflow-wrap: break-word;
	pointer-events: none;
}

.apercu {
	min-height: 0;
	overflow-y: auto;
	/* L'aperçu est reconstruit d'un bloc : le recalage du navigateur, qui suit
	   un nœud disparu, le faisait glisser seul de quelques pixels à chaque fois. */
	overflow-anchor: none;
	padding: 20px clamp(16px, 4vw, 40px) 40px;
	/* À gauche, de quoi loger le chevron qui replie une section. */
	padding-left: max(30px, clamp(16px, 4vw, 40px));
	font-size: 16px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.apercu > :first-child { margin-top: 0; }
.apercu h1, .apercu h2, .apercu h3, .apercu h4, .apercu h5, .apercu h6 { margin: 1.2em 0 .4em; line-height: 1.3; }
.apercu h1 { font-size: 1.6em; }
.apercu h2 { font-size: 1.35em; }
.apercu h3 { font-size: 1.15em; }
.apercu h4, .apercu h5, .apercu h6 { font-size: 1em; }
.apercu p { margin: 0 0 .8em; }
.apercu ul, .apercu ol { margin: 0 0 .8em; padding-left: 1.4em; }
.apercu li > ul, .apercu li > ol { margin-bottom: 0; }
.apercu a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* Un lien vers une autre note : souligné en pointillés tant qu'elle n'existe pas. */
.apercu a.lien-note { text-decoration-thickness: 1px; }
.apercu a.lien-note--absente { color: var(--texte-doux); text-decoration-style: dashed; }
.apercu blockquote {
	margin: 0 0 .8em;
	padding: 2px 0 2px 14px;
	border-left: 3px solid var(--accent-halo);
	color: var(--texte-doux);
}
.apercu hr { border: 0; border-top: 1px solid var(--bordure); margin: 1.2em 0; }
.apercu code {
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--surface-haute);
	font: .9em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.apercu pre {
	margin: 0 0 .8em;
	padding: 10px 12px;
	border-radius: var(--rayon);
	background: var(--surface);
	overflow-x: auto;
}
.apercu pre code { padding: 0; background: none; }
/* Un bloc de code : sa langue et ses boutons au-dessus, le code dessous. Replié,
   il ne montre que ses premières lignes, qui s'effacent vers le bas. */
/* L'en-tête est une barre à part — fond un ton plus soutenu, trait dessous —,
   pour qu'elle ne passe pas pour une première ligne vide du code. */
.bloc-code { margin: 0 0 .8em; border-radius: var(--rayon); background: var(--surface); overflow: hidden; }
.bloc-code pre { margin: 0; padding-top: 10px; background: none; }
.bloc-code-outils {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 4px 2px 12px;
	min-height: 30px;
	background: var(--surface-haute);
	border-bottom: 1px solid var(--separateur);
}
.bloc-code-langue { flex: 1; min-width: 0; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--efface); }
.bloc-code-langue--devinee { font-style: italic; opacity: .7; }
.bloc-code-bouton {
	display: inline-grid;
	place-items: center;
	width: 28px; height: 26px;
	padding: 0;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--discret);
	cursor: pointer;
}
.bloc-code-bouton .icone { width: 16px; height: 16px; transition: transform .15s ease; }
/* Replié, le chevron pointe vers le bas : de quoi déplier. */
.bloc-code--replie .bloc-code-bouton--chevron .icone { transform: rotate(180deg); }
.bloc-code-bouton:hover { background: var(--survol); color: var(--texte); }

/* Les couleurs du code (coloration.js, classes de highlight.js). */
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-doctag, .hljs-template-tag { color: var(--code-mot); }
.hljs-string, .hljs-regexp, .hljs-char, .hljs-template-variable, .hljs-addition { color: var(--code-texte); }
.hljs-comment, .hljs-quote, .hljs-meta, .hljs-deletion { color: var(--code-commentaire); }
.hljs-comment, .hljs-quote { font-style: italic; }
.hljs-number, .hljs-symbol, .hljs-bullet, .hljs-link, .hljs-variable, .hljs-property { color: var(--code-nombre); }
.hljs-title, .hljs-section, .hljs-selector-id, .hljs-selector-class { color: var(--code-nom); }
.hljs-attr, .hljs-attribute, .hljs-name, .hljs-tag, .hljs-selector-attr, .hljs-selector-pseudo { color: var(--code-attribut); }
.hljs-type, .hljs-built_in, .hljs-params, .hljs-subst { color: var(--code-type); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 600; }
.bloc-code--replie pre {
	max-height: 7.5em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
	mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* La bulle d'information (« Code copié… »), en bas, au milieu. */
.bulle-info {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	transform: translateX(-50%);
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--texte);
	color: var(--fond);
	font-size: 14px;
	box-shadow: 0 4px 16px var(--ombre);
	pointer-events: none;
}
/* Les tableaux : bordures fines, en-tête sur fond doux, une ligne sur deux
   légèrement teintée. Trop large pour la colonne, le tableau défile dans sa
   boîte plutôt que d'écraser ses colonnes. */
.apercu .tableau { max-width: 100%; overflow-x: auto; margin: 0 0 .8em; }
.apercu table { border-collapse: collapse; font-size: .95em; line-height: 1.45; }
.apercu th, .apercu td { padding: 6px 12px; border: 1px solid var(--bordure); text-align: left; vertical-align: top; }
.apercu th { background: var(--surface); font-weight: 600; white-space: nowrap; }
.apercu tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 45%, transparent); }
.apercu .aligne-centre { text-align: center; }
.apercu .aligne-droite { text-align: right; font-variant-numeric: tabular-nums; }

.apercu mark { background: var(--surligne); color: inherit; border-radius: 2px; }

/* Replier une section : le chevron dans la marge, au survol du titre. */
.apercu :is(h1, h2, h3, h4, h5, h6) { position: relative; }
.section-chevron {
	position: absolute;
	left: -26px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-grid;
	place-items: center;
	width: 22px; height: 22px;
	padding: 0;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--discret);
	cursor: pointer;
	opacity: 0;
	transition: opacity .12s ease;
}
.section-chevron .icone { width: 15px; height: 15px; transform: rotate(180deg); transition: transform .15s ease; }
:is(h1, h2, h3, h4, h5, h6):hover > .section-chevron,
.section-chevron:focus-visible,
.section-repliee > .section-chevron { opacity: 1; }
.section-repliee > .section-chevron .icone { transform: rotate(90deg); }
.section-chevron:hover { background: var(--survol); color: var(--texte); }
.section-repliee::after { content: " …"; color: var(--discret); font-weight: 400; }
.cache-par-repli { display: none !important; }
@media (hover: none) { .section-chevron { opacity: .55; } }

/* Le sommaire, `[[sommaire]]` : les titres de la note, en retrait selon leur
   niveau, sous un trait à gauche — un repère, pas un bloc qui crie. */
.sommaire { margin: 0 0 1em; padding: 4px 0 4px 14px; border-left: 3px solid var(--accent-voile); font-size: .95em; }
.sommaire ul { margin: 0; padding: 0; list-style: none; }
.sommaire li { margin: 2px 0; }
.sommaire a { color: var(--texte-doux); text-decoration: none; }
.sommaire a:hover { color: var(--accent); text-decoration: underline; }
.sommaire p { margin: 0; color: var(--discret); font-style: italic; }
.sommaire-niveau-1 { padding-left: 1.1em; }
.sommaire-niveau-2 { padding-left: 2.2em; }
.sommaire-niveau-3, .sommaire-niveau-4, .sommaire-niveau-5 { padding-left: 3.3em; }

/* Les images des notes (/fichiers/…) : à la largeur du texte, au plus. */
.apercu a.lien-image { display: inline-block; max-width: 100%; vertical-align: top; text-decoration: none; }
.apercu img.image-note { display: block; max-width: 100%; height: auto; margin: .3em 0; border: 1px solid var(--bordure); border-radius: var(--rayon); }

/* La visionneuse : l'image en grand sur un fond noir à 80 % (markdown.js, agrandir). */
.visionneuse {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 48px 24px 24px;
	background: rgba(0, 0, 0, .8);
	cursor: zoom-out;
}
.visionneuse[hidden] { display: none; }
.visionneuse-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.visionneuse-figure img {
	display: block;
	max-width: min(96vw, 100%);
	max-height: calc(100vh - 120px);
	object-fit: contain;
	border-radius: var(--rayon);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
	cursor: default;
}
.visionneuse-figure figcaption { color: #eee; font-size: 14px; text-align: center; }
.visionneuse-fermer {
	position: fixed;
	top: calc(12px + env(safe-area-inset-top, 0px));
	right: 16px;
	width: 40px; height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.visionneuse-fermer:hover, .visionneuse-fermer:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }
.visionneuse-fleche {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 44px; height: 64px;
	border: 0;
	border-radius: var(--rayon);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}
.visionneuse-fleche[hidden] { display: none; }
.visionneuse-fleche--avant { left: 12px; }
.visionneuse-fleche--apres { right: 12px; }
.visionneuse-fleche:hover, .visionneuse-fleche:focus-visible { background: rgba(255, 255, 255, .2); outline: none; }
.visionneuse-rang { margin-left: 10px; color: #aaa; font-variant-numeric: tabular-nums; }
.visionneuse-rang:empty { display: none; }
body.visionneuse-ouverte { overflow: hidden; }
.apercu a.lien-image, a.fichier-vignette { cursor: zoom-in; }
.apercu .lien-image--absente { color: var(--discret); font-size: .9em; }

/* Notes de bas de page : l'appel en exposant, les notes en fin d'aperçu. */
.apercu sup.renvoi { font-size: .72em; line-height: 0; }
.apercu sup.renvoi a { text-decoration: none; padding: 0 1px; }
.apercu .notes-de-bas { margin-top: 1.6em; font-size: .9em; color: var(--texte-doux); }
.apercu .notes-de-bas hr { margin: 0 0 .8em; width: 30%; }
.apercu .notes-de-bas li { margin-bottom: .3em; }
.apercu .notes-de-bas li > a { text-decoration: none; }

/* Une case à cocher : la case, puis le texte ; une sous-liste passe à la ligne,
   alignée sur le texte. En flex, elle se collait au bout de la ligne. */
.apercu .tache {
	list-style: none;
	margin-left: -1.4em;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 8px;
	align-items: baseline;
}
.apercu .tache > ul, .apercu .tache > ol { grid-column: 2; }
.apercu .tache input { margin: 0; accent-color: var(--accent); cursor: pointer; transform: translateY(1px); }
.apercu .tache--faite > span { color: var(--discret); text-decoration: line-through; }

.editeur-pied {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	min-height: 40px;
	padding: 6px 16px;
	border-top: 1px solid var(--separateur);
	font-size: 13px;
}

.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }

.etiquette {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 1px 4px 1px 8px;
	border-radius: 999px;
	background: var(--surface);
	color: var(--texte-doux);
}
.etiquette::before { content: "#"; opacity: .6; }

.etiquette-retirer {
	display: grid;
	place-items: center;
	width: 18px; height: 18px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--efface);
	cursor: pointer;
}
.etiquette-retirer .icone { width: 12px; height: 12px; }
.etiquette-retirer:hover { background: var(--surface-haute); color: var(--texte); }

.etiquette-neuve input { width: 140px; padding: 3px 8px; font-size: 13px; }

.lien {
	padding: 0;
	border: 0;
	background: none;
	color: var(--discret);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.lien:hover { color: var(--accent); }

.enregistrement { margin-left: auto; color: var(--efface); white-space: nowrap; }
.enregistrement:empty { display: none; }
.compteur { margin-left: auto; color: var(--efface); opacity: .8; white-space: nowrap; font-variant-numeric: tabular-nums; }
.enregistrement:not(:empty) + .compteur { margin-left: 12px; }
.enregistrement[data-etat="erreur"] { color: var(--erreur); }

/* Aucune note ouverte, sur grand écran : une phrase plutôt qu'un trou. */
@media (min-width: 761px) {
	body:not(.note-ouverte).pret .plan::after {
		content: "Choisir une note, ou en commencer une nouvelle.";
		display: grid;
		place-items: center;
		color: var(--efface);
		font-size: 14px;
	}
}

/* L'appel à la synthèse : une pastille, seule couleur de la barre. Discrète —
   un voile d'accent, pas un aplat — et seulement quand la note est longue. */
.cta-synthese {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 5px 12px 5px 10px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--accent-voile);
	color: var(--accent);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.cta-synthese .icone { width: 16px; height: 16px; }
.cta-synthese:hover { border-color: var(--accent-halo); }
.cta-synthese:not([hidden]) + .editeur-outils { margin-left: 4px; }

/* La dictée : le micro des outils. Pendant l'enregistrement, il passe au rouge
   et montre le temps écoulé ; pendant la transcription, un petit cercle tourne
   à sa place, avec « Transcription… ». */
.dicter[aria-pressed="true"], .dicter[aria-busy="true"] {
	gap: 4px;
	padding: 0 10px 0 8px;
	grid-auto-flow: column;
	background: color-mix(in srgb, var(--erreur) 12%, transparent);
	color: var(--erreur);
}
.dicter-minuteur { font-size: 13px; font-variant-numeric: tabular-nums; }
/* On tient le micro pour choisir : ni défilement, ni menu d'appui long, ni sélection. */
.dicter { touch-action: none; -webkit-touch-callout: none; user-select: none; }
.choix-voix { min-width: 180px; }
.choix-voix button.survole { background: var(--survol); color: var(--texte); }
.dicter[aria-busy="true"] { background: var(--accent-voile); color: var(--accent); }
.dicter[aria-busy="true"] .icone { display: none; }
.dicter[aria-busy="true"]::before {
	content: "";
	width: 12px; height: 12px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: tourne .8s linear infinite;
}
.dicter:disabled { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .dicter[aria-busy="true"]::before { animation: none; } }

#panneau-synthese .panneau-tete h2 { display: flex; align-items: center; gap: 8px; }
#panneau-synthese .panneau-tete .icone { color: var(--accent); }
#panneau-synthese[aria-busy="true"] .panneau-note::after {
	content: "";
	display: inline-block;
	width: 10px; height: 10px;
	margin-left: 8px;
	border: 2px solid var(--accent);
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -1px;
	animation: tourne .8s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #panneau-synthese[aria-busy="true"] .panneau-note::after { animation: none; } }

.synthese-texte { padding: 4px 2px; font-size: 15px; overflow: visible; }
.synthese-texte:empty { display: none; }
.synthese-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.synthese-actions .bouton { width: auto; flex: 1 1 auto; }

@media (max-width: 760px) {
	.cta-synthese span { display: none; }
	.cta-synthese { padding: 6px; }
}

/* --- Panneaux et annonces --------------------------------------------------------- */

.panneau {
	position: fixed;
	top: 0; right: 0; bottom: 0;
	z-index: 20;
	width: min(440px, 100%);
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background: var(--fond);
	border-left: 1px solid var(--bordure);
	box-shadow: 0 0 30px var(--ombre);
	overflow-y: auto;
}

.panneau-tete { display: flex; align-items: center; justify-content: space-between; }
.panneau-tete h2 { margin: 0; font-size: 17px; }
.panneau-note { margin: 0; font-size: 13px; color: var(--discret); }

.versions { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }

.version {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	text-align: left;
	cursor: pointer;
}
.version:hover { background: var(--survol); }
.version[aria-current="true"] { background: var(--accent-voile); }
.version-quand { font-weight: 500; font-size: 14px; }
.version-source { font-size: 12px; color: var(--discret); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.version-vue { display: flex; flex-direction: column; gap: 10px; }
.version-vue .apercu {
	max-height: 50vh;
	padding: 12px;
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	font-size: 14px;
}
/* Une version se lit, elle ne se coche pas. */
.version-vue .apercu input { pointer-events: none; }

.raccourcis { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.raccourcis dt { white-space: nowrap; }
.raccourcis dd { margin: 0; color: var(--texte-doux); }
.raccourcis code { font-size: 13px; }
.raccourcis-titre { margin: 20px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--efface); }

.annonce {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 40;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100% - 32px);
	padding: 10px 14px;
	border-radius: calc(var(--rayon) * 1.5);
	background: var(--texte);
	color: var(--fond);
	font-size: 14px;
	box-shadow: 0 8px 24px var(--ombre);
}

.annonce-action {
	flex: none;
	padding: 4px 8px;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* Le menu du clic droit. */
.menu-contextuel {
	position: fixed;
	z-index: 50;
	min-width: 220px;
	padding: 4px;
	border: 1px solid var(--bordure);
	border-radius: calc(var(--rayon) * 1.5);
	background: var(--fond);
	box-shadow: 0 12px 32px var(--ombre);
}

.menu-contextuel button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 7px 10px;
	border: 0;
	border-radius: var(--rayon);
	background: none;
	color: var(--texte-doux);
	text-align: left;
	cursor: pointer;
}
.menu-contextuel button:hover,
.menu-contextuel button:focus-visible { background: var(--survol); color: var(--texte); outline: none; }
.menu-contextuel .icone { width: 18px; height: 18px; color: var(--discret); }
.menu-contextuel kbd { margin-left: auto; color: var(--efface); }
.menu-contextuel [data-action="jeter"] { color: var(--erreur); }
.menu-contextuel [data-action="jeter"] .icone { color: inherit; }

/* La page des dossiers du menu : « Retour », un trait, puis la liste. Elle
   défile quand il y a plus de dossiers que de place, le menu restant collé au
   pointeur — sans quoi il sortirait par le bas de l'écran. */
.menu-contextuel [data-action="retour"] { margin-bottom: 4px; border-bottom: 1px solid var(--separateur); border-radius: var(--rayon) var(--rayon) 0 0; }
.menu-contextuel .menu-dossiers { max-height: min(46vh, 320px); overflow-y: auto; }
.menu-dossier-emoji { width: 18px; font-size: 15px; line-height: 1; text-align: center; }

/* Le dossier où la note est déjà : montré pour situer, hors d'atteinte pour ne
   pas faire croire qu'on vient de la ranger. */
.menu-contextuel [data-action="ranger"][aria-current="true"] { background: var(--accent-voile); color: var(--texte); cursor: default; }
.menu-dossier-ici { margin-left: auto; color: var(--efface); font-size: 12px; }

/* Le titre en cours de renommage, à la place exacte du titre. */
.note-renomme {
	width: 100%;
	margin: -2px 0;
	padding: 1px 6px;
	border: 1px solid var(--accent);
	border-radius: var(--rayon);
	background: var(--fond);
	font-weight: 500;
}

/* --- Formulaires et cartes (connexion, réglages) ------------------------------------ */

.carte {
	width: min(380px, 100%);
	background: var(--surface);
	border: 1px solid var(--bordure);
	border-radius: calc(var(--rayon) * 2);
	padding: 28px;
	box-shadow: 0 8px 30px var(--ombre);
}

.carte--large { width: min(600px, 100%); box-shadow: none; align-self: flex-start; }

.carte .marque { justify-content: center; padding: 0 0 18px; font-size: 18px; }
.carte h2 { margin: 0 0 4px; font-size: 18px; }
.carte .accroche { margin: 0 0 16px; color: var(--discret); font-size: 14px; }

.carte h3 {
	margin: 28px 0 6px;
	padding-top: 24px;
	border-top: 1px solid var(--separateur);
	font-size: 15px;
}
.carte h3:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.champ { display: block; margin-bottom: 14px; }
.champ span { display: block; margin-bottom: 5px; font-size: 13px; color: var(--texte-doux); }

.champ input,
.champ select {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	background: var(--fond);
}

.champ input:focus-visible,
.champ select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.bouton {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 14px;
	border: 0;
	border-radius: var(--rayon);
	background: var(--accent);
	color: var(--accent-texte);
	font-weight: 600;
	text-align: center;
	cursor: pointer;
}
.bouton:hover { filter: brightness(1.08); }

.bouton--sobre { background: var(--surface-haute); color: var(--texte-doux); }
.bouton--sobre:hover { background: var(--survol); filter: none; color: var(--texte); }
.bouton--petit { width: auto; padding: 6px 10px; font-size: 13px; font-weight: 500; }

.bouton--nouvelle { justify-content: flex-start; padding: 9px 10px; }

/* « Nouvelle note » et, accolé, le ▾ des modèles : un seul bouton en deux. */
.nouvelle-groupe { display: flex; gap: 1px; }
.nouvelle-groupe .bouton--nouvelle { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bouton--modele { flex: none; width: auto; padding: 9px 8px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.icone--bas { transform: rotate(180deg); }

/* Le menu des modèles, sous le ▾ (position posée par app.js). */
.menu-modeles { position: fixed; width: 260px; max-height: min(60vh, 420px); overflow-y: auto; }
.menu-modeles-titre { margin: 2px 8px 6px; font-size: 12px; font-weight: 600; color: var(--efface); }
.menu-modeles-vide { margin: 4px 8px 6px; font-size: 14px; color: var(--discret); }
.menu-modeles hr { margin: 4px 0; border: 0; border-top: 1px solid var(--separateur); }
.menu-modeles .menu-modeles-gerer { color: var(--discret); }
.menu-modeles .menu-modeles-entree { display: flex; align-items: center; gap: 8px; }
.menu-modeles-icone { flex: none; width: 1.4em; text-align: center; font-size: 15px; }

/* Le menu du tri : l'ordre choisi porte une coche. */
.menu-tri { width: 230px; }
.menu-tri [aria-checked="true"] { color: var(--accent); font-weight: 500; }
.menu-tri [aria-checked="true"]::after { content: "✓"; margin-left: auto; }

/* Le nuage et le mot de passe, côte à côte : l'un ou l'autre ouvre le même compte. */
.separateur-ou { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--discret); font-size: 14px; }
.separateur-ou::before, .separateur-ou::after { content: ""; flex: 1; border-top: 1px solid var(--bordure); }

.message {
	margin: 0 0 16px;
	padding: 9px 12px;
	border-radius: var(--rayon);
	font-size: 14px;
}
.message p { margin: 0 0 6px; }
.message p:last-child { margin-bottom: 0; }
.message--erreur { background: var(--accent-voile); color: var(--erreur); }
.message--succes { background: var(--accent-voile); color: var(--succes); }

.sous-carte { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--discret); }
.sous-carte a { color: var(--accent); }

.liste-sobre { margin: 0 0 14px; padding: 0; list-style: none; }
.liste-sobre li { padding: 8px 0; border-bottom: 1px solid var(--separateur); }
.liste-sobre li:last-child { border-bottom: 0; }
.liste-sobre small { display: block; color: var(--efface); font-size: 12px; }

.liste-jetons li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.pastille {
	display: inline-block;
	margin-left: 6px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--accent-voile);
	color: var(--accent);
	font-size: 11px;
	font-weight: 600;
}

.formulaire-ligne { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: end; }
.formulaire-ligne .bouton { grid-column: 1 / -1; }

.jeton-clair {
	width: 100%;
	margin: 6px 0;
	padding: 8px 10px;
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	background: var(--fond);
	color: var(--texte);
	font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.etapes { margin: 0 0 14px; padding-left: 20px; }
.etapes li { margin: 4px 0; }
.routes code { font-size: 12.5px; }
.lien-contrat { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.exemple {
	margin: 0 0 14px;
	padding: 10px 12px;
	overflow-x: auto;
	border: 1px solid var(--bordure);
	border-radius: var(--rayon);
	background: var(--fond);
	font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
	white-space: pre;
}

.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 8px 0 0; padding: 0; list-style: none; }

.pied-carte { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--separateur); }

code {
	padding: 1px 4px;
	border-radius: 3px;
	background: var(--surface-haute);
	font-size: .92em;
}

/* --- La page d'épreuves ------------------------------------------------------------- */

.epreuves { margin: 0 0 8px; padding: 0; list-style: none; font-size: 13px; }
.epreuves li { padding: 2px 0; }
.epreuves .ok { color: var(--discret); }
.epreuves .rate { color: var(--erreur); }

/* --- Les colonnes repliées -------------------------------------------------------------- */
/* Le double chevron de la liste replie les deux colonnes de gauche : le tiroir
   devient une bande d'icônes (le + d'une note neuve, l'emoji de chaque dossier,
   le pied), la liste des notes disparaît, l'éditeur prend la place. Rien de tout
   cela sous 900 px, où le tiroir est déjà un tiroir. */

.deplier-colonnes { display: none; }
.icone--tournee { transform: rotate(180deg); }

@media (min-width: 901px) {
	body.colonnes-repliees { --largeur-laterale: 58px; }
	body.colonnes-repliees .laterale { padding: 12px 8px 10px; align-items: stretch; }
	body.colonnes-repliees .liste { display: none; }
	body.colonnes-repliees .plan { grid-template-columns: 1fr; }
	body.colonnes-repliees .deplier-colonnes { display: inline-grid; align-self: center; }

	body.colonnes-repliees .marque-nom,
	body.colonnes-repliees .bouton--nouvelle > span,
	body.colonnes-repliees #choisir-modele,
	body.colonnes-repliees .menu-newsletter,
	body.colonnes-repliees .menu-titre,
	body.colonnes-repliees #nouveau-dossier,
	body.colonnes-repliees #dossier-neuf,
	body.colonnes-repliees .menu-groupe-titre,
	body.colonnes-repliees .menu-item > span:not(.menu-emoji),
	body.colonnes-repliees .compte > span,
	body.colonnes-repliees #ouvrir-aide { display: none; }

	body.colonnes-repliees .marque { justify-content: center; padding: 4px 0; }
	body.colonnes-repliees .nouvelle-groupe .bouton--nouvelle { justify-content: center; padding: 9px 0; border-radius: var(--rayon); }
	body.colonnes-repliees .menu-item { justify-content: center; padding: 7px 0; }
	body.colonnes-repliees .menu-item .menu-emoji,
	body.colonnes-repliees .menu-item .icone { margin: 0; }
	body.colonnes-repliees .ligne-compte { flex-direction: column; gap: 4px; }
	body.colonnes-repliees .menu-groupe--replie { display: flex; }
	body.colonnes-repliees .menu-groupe { margin: 0; padding: 0; border: 0; }
	body.colonnes-repliees .compte { justify-content: center; padding: 6px 0; flex: none; width: 100%; }
}

@media (max-width: 900px) {
	.replier-colonnes { display: none; }
}

/* --- Sous 1100 px : la liste se resserre ----------------------------------------------- */

@media (max-width: 1100px) {
	:root { --largeur-liste: 280px; }
}

/* --- Sous 900 px : la latérale devient un tiroir --------------------------------------- */

@media (max-width: 900px) {
	.laterale {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 20;
		transform: translateX(calc(-100% - 40px));
		transition: transform .18s ease;
		box-shadow: 0 0 30px var(--ombre);
		border-right: 0;
	}

	body.tiroir-ouvert .laterale { transform: none; }
	.burger { display: grid; }
}

/* --- Sous 760 px : une colonne à la fois ------------------------------------------------ */
/* La liste, ou la note ouverte, jamais les deux : sur un téléphone, deux
   colonnes n'en font qu'une illisible. « Côte à côte » y retombe sur la saisie
   (voir app.js). */

@media (max-width: 760px) {
	.plan { grid-template-columns: 1fr; }
	.liste { border-right: 0; }
	body.note-ouverte .liste { display: none; }
	body:not(.note-ouverte) .editeur { display: none; }
	.editeur-retour { display: inline-grid; }
	.mode--large { display: none; }
	.recherche-touche { display: none; }
	.recherche input { padding-right: 12px; }
	.editeur-barre { gap: 4px; padding: 6px 8px; }
	.editeur-outils { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.laterale { transition: none; }
}

/* --- L'impression -------------------------------------------------------------------------- */
/*
 * Sur le papier, la note et rien d'autre : ni barre latérale, ni liste, ni
 * barre d'outils — et ni l'en-tête ni le pied de page que le navigateur ajoute
 * d'office (adresse, date, numéro de page).
 *
 * **C'est la marge de page nulle qui les fait disparaître** : le navigateur les
 * dessine dans la marge, et sans marge il n'a plus où les mettre. Le blanc
 * autour du texte est donc refait à l'intérieur, et `box-decoration-break:
 * clone` le reporte sur chaque page — sans lui, seule la première aurait sa
 * marge du haut et seule la dernière celle du bas.
 */

.impression { display: none; }

@media print {
	@page { margin: 0; }

	body.a-imprimer > *:not(#impression) { display: none !important; }

	body.a-imprimer {
		background: #fff;
		color: #111;
	}

	body.a-imprimer .impression {
		display: block;
		padding: 18mm 20mm;
		-webkit-box-decoration-break: clone;
		box-decoration-break: clone;
		font: 11.5pt/1.55 Georgia, "Times New Roman", serif;
		color: #111;
		overflow-wrap: anywhere;
	}

	.impression > :first-child { margin-top: 0; }
	.impression h1, .impression h2, .impression h3,
	.impression h4, .impression h5, .impression h6 {
		margin: 1.1em 0 .4em;
		font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
		line-height: 1.25;
		break-after: avoid;
		page-break-after: avoid;
	}
	.impression h1 { font-size: 20pt; }
	.impression h2 { font-size: 16pt; }
	.impression h3 { font-size: 13.5pt; }
	.impression h4, .impression h5, .impression h6 { font-size: 11.5pt; }
	.impression p { margin: 0 0 .7em; orphans: 3; widows: 3; }
	.impression ul, .impression ol { margin: 0 0 .7em; padding-left: 1.4em; }
	.impression li { break-inside: avoid; }
	.impression a { color: inherit; text-decoration: underline; }
	.impression blockquote {
		margin: 0 0 .7em;
		padding-left: 12pt;
		border-left: 2pt solid #999;
		color: #333;
	}
	.impression hr { border: 0; border-top: .75pt solid #999; margin: 1em 0; }
	.impression code {
		padding: 0 2pt;
		border: .5pt solid #ccc;
		border-radius: 2pt;
		background: none;
		font: 10pt/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
	}
	.impression pre {
		margin: 0 0 .7em;
		padding: 6pt 8pt;
		border: .5pt solid #ccc;
		border-radius: 3pt;
		white-space: pre-wrap;
		break-inside: avoid;
	}
	.impression pre code { border: 0; padding: 0; }
	/* Sur le papier, toujours les couleurs du thème clair. */
	.impression {
		--code-mot: #cf222e; --code-texte: #0a3069; --code-commentaire: #6e7781; --code-nombre: #0550ae;
		--code-nom: #8250df; --code-attribut: #116329; --code-type: #953800;
	}
	.impression .bloc-code-outils { display: none; }
	.impression .bloc-code--replie pre { max-height: none; -webkit-mask-image: none; mask-image: none; }
	.impression .tableau { margin: 0 0 .8em; }
	.impression table { border-collapse: collapse; font-size: 10.5pt; line-height: 1.4; }
	.impression th, .impression td { padding: 3pt 7pt; border: .5pt solid #999; text-align: left; vertical-align: top; }
	.impression th { background: #eee; font-weight: 600; }
	.impression thead { display: table-header-group; }   /* l'en-tête se répète sur chaque page */
	.impression tr { break-inside: avoid; page-break-inside: avoid; }
	.impression .aligne-centre { text-align: center; }
	.impression .aligne-droite { text-align: right; font-variant-numeric: tabular-nums; }

	.impression .tache {
		list-style: none;
		margin-left: -1.4em;
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 6pt;
		align-items: baseline;
	}
	.impression .tache > ul, .impression .tache > ol { grid-column: 2; margin-bottom: 0; }
	.impression .tache input { margin: 0; accent-color: #111; }
	.impression .tache--faite > span { color: #666; text-decoration: line-through; }
}

/* --- Une note partagée (lire.php) ------------------------------------------------------ */

body.page-lecture { height: auto; min-height: 100%; overflow: auto; }
.lecture { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.lecture-note { overflow: visible; padding: 0; font-size: 17px; }
.lecture-pied { margin: 40px 0 0; padding-top: 14px; border-top: 1px solid var(--separateur); color: var(--efface); font-size: 13px; }
.apercu .tache input:disabled { cursor: default; }

/* Le panneau du partage, dans l'application */
.partage-lien { display: flex; gap: 8px; margin: 8px 0; }
.partage-lien .jeton-clair { margin: 0; flex: 1; min-width: 0; }
.partage-lien .bouton { width: auto; flex: none; }

/* Coller une newsletter */
.menu-newsletter { margin-top: 4px; }
.zone-collage {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	min-height: 140px; margin: 4px 0 14px; padding: 16px;
	border: 2px dashed var(--bordure); border-radius: calc(var(--rayon) * 1.5);
	color: var(--discret); text-align: center; cursor: text;
}
.zone-collage:focus-visible, .zone-collage:focus { outline: none; border-color: var(--accent); color: var(--texte); }
.zone-collage .icone { width: 28px; height: 28px; }
.newsletter-garder .bouton { width: 100%; }
.champ select { color: var(--texte); font: inherit; }

/* Le mode d'emploi du collage : au clavier, ou au doigt. */
.au-doigt { display: none; }
@media (pointer: coarse) {
	.au-doigt { display: block; }
	.au-clavier { display: none; }
}
