/* Style "terminal" du CV. */
.terminal {
	--t-bg: #0b0f17;
	--t-fg: #c9d1d9;
	--t-dim: #6e7681;
	--t-acc: #79c0ff;
	--t-head: #ffffff;
	--t-dir: #79c0ff;
	--t-file: #e3b341;
	--t-cmd: #7ee787;
	--t-prompt: #7ee787;
	--t-err: #ff7b72;
	position: fixed;
	inset: 0;
	overflow-y: auto;
	color-scheme: dark;
	scrollbar-color: #30363d transparent;
	background: var(--t-bg);
	color: var(--t-fg);
	font: 15px/1.6 ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}
body.is-terminal { background: #0b0f17; }
body.is-terminal .ctrl {
	background: #161b22;
	border-color: #30363d;
	color: #c9d1d9;
	box-shadow: none;
}
body.is-terminal .ctrl:hover, body.is-terminal .ctrl:focus-visible { border-color: #7ee787; }

.term-screen {
	padding: 24px 24px 40vh;
	max-width: 1000px;
	margin: 0 auto;
}
.term-line { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.6em; }
.term-input-line { display: flex; align-items: baseline; }
.term-prompt, .t-prompt { color: var(--t-prompt); white-space: pre; }
.term-input {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--t-fg);
	font: inherit;
	font-size: max(16px, 1em); /* pas de zoom automatique sur mobile */
	caret-color: var(--t-cmd);
}

.t-dim { color: var(--t-dim); }
.t-acc { color: var(--t-acc); }
.t-head { color: var(--t-head); font-weight: 700; }
.t-err { color: var(--t-err); }
a.t-acc { text-decoration: underline; text-underline-offset: 3px; }

/* Noms cliquables (dossiers, fichiers, commandes) */
.term-link {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
	white-space: pre;
	text-decoration: underline dotted;
	text-underline-offset: 4px;
}
.term-link {
	margin: 0 -3px;
	padding: 0 3px;
	border-radius: 4px;
	transition: background-color .12s ease;
}
/* Au survol, le nom s'allume comme un bouton : on comprend qu'il se clique. */
.term-link:hover, .term-link:focus-visible {
	background: rgba(121, 192, 255, .16);
	text-decoration-style: solid;
	outline: none;
}
.term-link.t-dir { color: var(--t-dir); font-weight: 700; }
.term-link.t-file { color: var(--t-file); }
.term-link.t-cmd { color: var(--t-cmd); }

@media (max-width: 600px) {
	.terminal { font-size: 13px; }
	.term-screen { padding: 64px 12px 40vh; }
}
@media (min-width: 601px) {
	.term-screen { padding-top: 64px; }
}
