/* ==========================================================================
   TraqueCiel — feuille de style de l'application
   Écran unique plein cadre, en superposition de la caméra.

   Contexte d'usage : application de plein air, ciel variable, plein soleil.
   Contrainte principale : le texte doit rester lisible sur une image de caméra
   en mouvement. D'où des voiles sombres opaques, jamais de flou, et un seul
   accent coloré : l'ambre des instruments de bord, lisible sur ciel clair
   comme sur ciel sombre et sans confusion avec les éléments du ciel.
   ========================================================================== */

/* --- Jetons de design ------------------------------------------------------ */

:root {
	/* Couleurs */
	--ambre: #F5A524;
	--ambre-fonce: #D98A0B;
	--ambre-clair: #FFD08A;
	--vert: #3DD68C;
	--rouge: #FF6B6B;
	--bleu: #6BB6FF;
	--texte: #F7F9FB;
	--texte-2: rgba(247, 249, 251, .74);
	--texte-3: rgba(247, 249, 251, .58);

	/* Surfaces superposées à la caméra */
	--voile: rgba(8, 10, 13, .58);
	--voile-fort: rgba(8, 10, 13, .84);
	--surface: rgba(15, 18, 22, .94);
	--surface-pleine: #0F1216;
	--surface-2: rgba(255, 255, 255, .07);
	--bordure: rgba(255, 255, 255, .16);

	/* Rayons modérés : seuls le déclencheur et les panneaux sont arrondis */
	--r-s: 6px;
	--r-m: 10px;
	--r-l: 14px;
	--r-xl: 22px;

	/* Espacements */
	--e1: 4px;
	--e2: 8px;
	--e3: 12px;
	--e4: 16px;
	--e5: 20px;
	--e6: 24px;

	/* Typographie */
	--police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--ombre-panneau: 0 -6px 28px rgba(0, 0, 0, .42);

	/* Zones sûres iOS (encoche et barre de geste) */
	--zone-haut: env(safe-area-inset-top, 0px);
	--zone-bas: env(safe-area-inset-bottom, 0px);
}

/* --- Base ----------------------------------------------------------------- */

* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow: hidden;
	background: #0B0D10;
	color: var(--texte);
	font-family: var(--police);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overscroll-behavior: none;
}

.valeur-cachee {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

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

/* --- Structure ------------------------------------------------------------ */

.app {
	position: relative;
	width: 100%;
	height: 100%;
	height: 100dvh;
	overflow: hidden;
}

.ecran {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
}

.ecran[hidden] {
	display: none;
}

/* Filet de sécurité : l'attribut hidden doit toujours l'emporter, même sur un
   élément dont l'affichage est défini en flex ailleurs dans cette feuille. */
[hidden] {
	display: none !important;
}

/* Panneaux ancrés en bas de l'écran */
.ecran-panneau {
	justify-content: flex-end;
	z-index: 6;
}

/* Photo figée au moment de la capture, en fond des écrans de résultat */
.fond-photo {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: #0B0D10;
}

.fond-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fond-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(8, 10, 13, .5) 0%, rgba(8, 10, 13, .1) 42%, rgba(8, 10, 13, .58) 100%);
}

/* --- Couche caméra -------------------------------------------------------- */

.camera {
	position: absolute;
	inset: 0;
	background: #10151B;
}

#video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #10151B;
}

/* Affiché à la place de la vidéo quand la caméra n'est pas disponible.
   L'application reste utilisable : seul le cadrage à l'écran est perdu. */
.camera-indisponible {
	position: absolute;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--e3);
	padding: var(--e6);
	text-align: center;
	background:
		radial-gradient(120% 70% at 50% 22%, rgba(107, 182, 255, .12), transparent 60%),
		linear-gradient(170deg, #1B2028 0%, #12161B 60%, #0B0D10 100%);
}

.camera-indisponible.visible {
	display: flex;
}

.camera-indisponible svg {
	width: 40px;
	height: 40px;
	color: var(--texte-3);
}

.camera-indisponible p {
	margin: 0;
	max-width: 34ch;
	font-size: 13px;
	color: var(--texte-2);
}

.camera-indisponible strong {
	display: block;
	font-size: 15px;
	font-weight: 620;
	color: var(--texte);
	margin-bottom: var(--e1);
}

/* Assombrissement de l'aperçu pour garantir la lisibilité des surcouches */
.camera::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(8, 10, 13, .55) 0%, rgba(8, 10, 13, 0) 26%, rgba(8, 10, 13, 0) 46%, rgba(8, 10, 13, .72) 100%);
	pointer-events: none;
}

/* --- Barre d'état des capteurs -------------------------------------------- */

.barre-haut {
	position: relative;
	z-index: 5;
	padding: calc(var(--zone-haut) + var(--e4)) var(--e4) var(--e6);
}

/* Grille à colonnes fixes : en flex, les libellés passent à la ligne */
.statuts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--e2);
}

.statut {
	background: var(--voile);
	border: 1px solid var(--bordure);
	border-radius: var(--r-s);
	padding: 7px 8px;
	min-width: 0;
}

.statut .ligne {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--texte-3);
}

.statut .ligne svg {
	width: 13px;
	height: 13px;
}

.statut .cle {
	font-size: 9px;
	font-weight: 650;
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.statut .valeur {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 620;
	color: var(--texte);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* État d'un capteur, porté par un attribut pour rester lisible dans le HTML */
.statut[data-etat="pret"] .pastille { background: var(--vert); }
.statut[data-etat="attente"] .pastille { background: var(--ambre); animation: battement 1.4s ease-in-out infinite; }
.statut[data-etat="defaut"] .pastille { background: var(--rouge); }
.statut[data-etat="attente"] .valeur { color: var(--ambre); }
.statut[data-etat="defaut"] .valeur { color: var(--rouge); }

.pastille {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: none;
	background: #7C8792;
}

@keyframes battement {
	0%, 100% { opacity: 1; }
	50% { opacity: .3; }
}

/* --- Réticule de visée ---------------------------------------------------- */

.zone-visee {
	position: relative;
	z-index: 4;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.reticule {
	position: absolute;
	left: 50%;
	top: 42%;
	width: min(268px, 68vw);
	height: min(268px, 68vw);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.reticule svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* --- Instrument d'élévation ---------------------------------------------- */
/* L'échelle et la ligne d'horizon sont un même instrument, décalé vers le bas
   de l'élévation mesurée : viser à 30° doit faire descendre l'horizon d'autant
   sous le réticule. Sans ce décalage, l'affichage mentirait sur la direction
   réellement visée. */

.instrument {
	position: absolute;
	left: 0;
	right: 0;
	top: 42%;
	height: 0;
	z-index: 4;
	pointer-events: none;
}

.instrument .ligne-horizon {
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	/* La ligne s'efface au centre pour ne pas surcharger le réticule,
	   tout en restant nette là où se trouve son étiquette. */
	background: linear-gradient(90deg,
		rgba(255, 255, 255, .38) 0%,
		rgba(255, 255, 255, .10) 40%,
		rgba(255, 255, 255, .10) 60%,
		rgba(255, 255, 255, .38) 100%);
}

.instrument .ligne-horizon span {
	position: absolute;
	right: 12px;
	top: -16px;
	font-size: 10px;
	color: rgba(255, 255, 255, .7);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.instrument .graduation {
	position: absolute;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, .72);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.instrument .graduation::after {
	content: "";
	display: block;
	width: 14px;
	height: 1px;
	background: rgba(255, 255, 255, .6);
}

/* --- Lecture de la visée -------------------------------------------------- */

.mesure {
	position: relative;
	z-index: 5;
	padding: 0 var(--e4) var(--e4);
	text-align: center;
}

.mesure .paire {
	display: inline-flex;
	gap: var(--e5);
	background: var(--voile);
	border: 1px solid var(--bordure);
	border-radius: var(--r-m);
	padding: var(--e3) var(--e5);
}

.mesure .cle {
	display: block;
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--texte-3);
}

.mesure .bloc {
	display: block;
	text-align: left;
}

.mesure .valeur {
	display: block;
	font-size: 26px;
	font-weight: 620;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.02em;
	line-height: 1.15;
	color: var(--texte);
}

.mesure .valeur small {
	font-size: 14px;
	font-weight: 550;
	color: var(--texte-2);
}

.mesure .valeur.attente {
	color: var(--texte-3);
}

.mesure .sol {
	margin-top: var(--e2);
	font-size: 11px;
	color: var(--texte-2);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}

/* --- Barre d'action ------------------------------------------------------ */

.barre-bas {
	position: relative;
	z-index: 5;
	padding: 0 var(--e5) calc(var(--zone-bas) + var(--e5));
	text-align: center;
}

.declencheur {
	width: 74px;
	height: 74px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .92);
	background: var(--ambre);
	color: #1A1206;
	display: grid;
	place-items: center;
	margin: 0 auto var(--e2);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .42);
	cursor: pointer;
	transition: transform .12s ease, background-color .12s ease;
}

.declencheur:active {
	transform: scale(.95);
}

.declencheur svg {
	width: 30px;
	height: 30px;
}

.declencheur[disabled] {
	background: #5A626C;
	border-color: rgba(255, 255, 255, .38);
	color: rgba(255, 255, 255, .5);
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.libelle-action {
	font-size: 13px;
	font-weight: 620;
	color: var(--texte);
	text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

.libelle-action span {
	display: block;
	font-size: 11px;
	font-weight: 500;
	color: var(--texte-2);
	margin-top: 2px;
}

/* --- Boutons ------------------------------------------------------------- */

.btn {
	font: inherit;
	font-size: 14px;
	font-weight: 620;
	border-radius: var(--r-m);
	border: 1px solid transparent;
	padding: 11px 16px;
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--e2);
	cursor: pointer;
	transition: background-color .12s ease;
}

.btn svg {
	width: 17px;
	height: 17px;
	flex: none;
}

.btn-primaire {
	background: var(--ambre);
	color: #1A1206;
}

.btn-primaire:active {
	background: var(--ambre-fonce);
}

.btn-secondaire {
	background: rgba(255, 255, 255, .13);
	color: var(--texte);
	border-color: var(--bordure);
}

.btn-secondaire:active {
	background: rgba(255, 255, 255, .2);
}

.btn-fantome {
	background: transparent;
	color: var(--texte-2);
	border-color: var(--bordure);
}

.btn-fantome:active {
	color: var(--texte);
	background: rgba(255, 255, 255, .08);
}

.btn-large {
	width: 100%;
}

.btn[disabled] {
	opacity: .45;
	cursor: not-allowed;
}

.actions-ligne {
	display: flex;
	gap: var(--e2);
	justify-content: center;
	flex-wrap: wrap;
	padding: 0 var(--e5) calc(var(--zone-bas) + var(--e5));
}

/* --- Panneaux bas -------------------------------------------------------- */

.panneau {
	position: relative;
	z-index: 8;
	background: var(--surface);
	border-top: 1px solid var(--bordure);
	border-radius: var(--r-xl) var(--r-xl) 0 0;
	box-shadow: var(--ombre-panneau);
	padding: var(--e5) var(--e5) calc(var(--zone-bas) + var(--e5));
	max-height: 78dvh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.poignee {
	width: 38px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .28);
	margin: 0 auto var(--e4);
}

/* Repère de défilement : signale qu'il reste du contenu sous le bord du
   panneau, sans ajouter d'élément décoratif superflu ailleurs. */
.degrade-bas {
	position: sticky;
	bottom: calc(var(--e5) * -1);
	height: 28px;
	margin: 0 calc(var(--e5) * -1) calc((var(--zone-bas) + var(--e5)) * -1);
	background: linear-gradient(to top, var(--surface), rgba(15, 18, 22, 0));
	pointer-events: none;
}

.panneau h2 {
	margin: 0 0 var(--e1);
	font-size: 18px;
	font-weight: 650;
	color: var(--texte);
	letter-spacing: -.01em;
}

.panneau .intro {
	margin: 0 0 var(--e4);
	font-size: 13px;
	color: var(--texte-2);
}

/* --- Badges -------------------------------------------------------------- */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 650;
	border-radius: var(--r-s);
	padding: 4px 7px;
}

.badge svg {
	width: 13px;
	height: 13px;
}

.badge-forte {
	background: rgba(61, 214, 140, .16);
	color: var(--vert);
	border: 1px solid rgba(61, 214, 140, .35);
}

.badge-moyenne {
	background: rgba(245, 165, 36, .16);
	color: var(--ambre);
	border: 1px solid rgba(245, 165, 36, .38);
}

.badge-faible {
	background: rgba(255, 255, 255, .09);
	color: var(--texte-2);
	border: 1px solid var(--bordure);
}

/* --- Fiche de vol -------------------------------------------------------- */

.titre-vol {
	display: flex;
	align-items: center;
	gap: var(--e3);
	margin: var(--e3) 0 var(--e1);
}

.titre-vol .marqueur {
	width: 26px;
	height: 26px;
	color: var(--ambre);
	flex: none;
}

.titre-vol h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 660;
}

.sous-titre-vol {
	margin: 0 0 var(--e4);
	font-size: 13px;
	color: var(--texte-2);
}

.grille-donnees {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--e3) var(--e4);
	padding: var(--e4) 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	margin-bottom: var(--e4);
}

.donnee .cle {
	font-size: 10px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--texte-3);
}

.donnee .valeur {
	font-size: 17px;
	font-weight: 620;
	color: var(--texte);
	font-variant-numeric: tabular-nums;
}

.donnee .valeur small {
	font-size: 12px;
	font-weight: 550;
	color: var(--texte-2);
}

.donnee .valeur.manque {
	font-size: 14px;
	font-weight: 520;
	color: var(--texte-3);
}

.pied-fiche {
	margin: var(--e3) 0 0;
	font-size: 11px;
	color: var(--texte-3);
	text-align: center;
	line-height: 1.6;
}

/* --- Liste des candidats ------------------------------------------------- */

.candidat {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--e2) var(--e3);
	align-items: center;
	width: 100%;
	padding: var(--e3) 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.candidat:active {
	background: rgba(255, 255, 255, .05);
}

.candidat .nom {
	font-size: 15px;
	font-weight: 640;
	color: var(--texte);
}

.candidat .nom em {
	font-style: normal;
	font-size: 13px;
	font-weight: 520;
	color: var(--texte-2);
}

.candidat .detail {
	grid-column: 1;
	font-size: 12px;
	color: var(--texte-2);
	font-variant-numeric: tabular-nums;
}

.candidat .ecart {
	text-align: right;
}

.candidat .ecart .valeur {
	font-size: 15px;
	font-weight: 640;
	font-variant-numeric: tabular-nums;
}

.candidat .ecart .valeur.eloigne {
	font-weight: 550;
	color: var(--texte-3);
}

.candidat .ecart .cle {
	display: block;
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--texte-3);
}

.jauge {
	grid-column: 1 / -1;
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .1);
	overflow: hidden;
}

.jauge i {
	display: block;
	height: 100%;
	background: var(--ambre);
}

.jauge i.faible {
	background: #7C8792;
}

/* --- Message d'information (encart) ------------------------------------- */

.encart {
	display: flex;
	gap: var(--e3);
	padding: var(--e4);
	border: 1px solid var(--bordure);
	border-radius: var(--r-m);
	background: var(--voile-fort);
	text-align: left;
}

.encart svg {
	width: 20px;
	height: 20px;
	flex: none;
	margin-top: 1px;
}

.encart .titre {
	margin: 0 0 3px;
	font-size: 14px;
	font-weight: 620;
	color: var(--texte);
}

.encart .texte {
	margin: 0;
	font-size: 12px;
	color: var(--texte-2);
}

.encart.alerte {
	border-color: rgba(245, 165, 36, .5);
}

.encart.alerte svg {
	color: var(--ambre);
}

.encart.danger {
	border-color: rgba(255, 107, 107, .5);
}

.encart.danger svg {
	color: var(--rouge);
}

.encart.info svg {
	color: var(--bleu);
}

/* --- Messages centrés (aucun résultat, erreur) -------------------------- */

.message-centre {
	text-align: center;
}

.message-centre .picto {
	width: 42px;
	height: 42px;
	margin: 0 auto var(--e3);
	color: var(--texte-3);
}

.message-centre .picto.rouge {
	color: var(--rouge);
}

.message-centre .picto.ambre {
	color: var(--ambre);
}

.message-centre p {
	margin: 0 0 var(--e4);
	font-size: 13px;
	color: var(--texte-2);
	text-align: left;
}

.message-centre .compte {
	margin-bottom: var(--e3);
	font-size: 12px;
	color: var(--ambre);
	font-variant-numeric: tabular-nums;
}

.pile-boutons {
	display: flex;
	flex-direction: column;
	gap: var(--e2);
}

/* --- Squeelettes et étapes d'analyse ------------------------------------ */

.squelette {
	height: 13px;
	border-radius: var(--r-s);
	background: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .17), rgba(255, 255, 255, .07));
	background-size: 220% 100%;
	animation: glissement 1.5s linear infinite;
}

.squelette + .squelette {
	margin-top: var(--e2);
}

.sq-court { width: 42%; }
.sq-moyen { width: 68%; }

@keyframes glissement {
	from { background-position: 210% 0; }
	to { background-position: -110% 0; }
}

.etapes {
	display: flex;
	gap: var(--e2);
	margin: var(--e4) 0;
}

.etape {
	flex: 1;
	padding-top: 6px;
	border-top: 2px solid rgba(255, 255, 255, .14);
	font-size: 11px;
	color: var(--texte-3);
	text-align: left;
}

.etape.faite {
	border-top-color: var(--vert);
	color: var(--texte-2);
}

.etape.encours {
	border-top-color: var(--ambre);
	color: var(--texte);
}

/* --- Aperçu photo ------------------------------------------------------- */

.apercu {
	position: absolute;
	inset: 0 0 auto 0;
	height: 44dvh;
	overflow: hidden;
}

.apercu img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.apercu::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(8, 10, 13, .5), rgba(8, 10, 13, 0) 50%, rgba(8, 10, 13, .9));
}

/* --- Historique --------------------------------------------------------- */

.entete-panneau {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--e3);
	margin-bottom: var(--e3);
}

.compteur {
	font-size: 12px;
	color: var(--texte-2);
	font-variant-numeric: tabular-nums;
}

.onglets {
	display: flex;
	gap: var(--e5);
	margin-bottom: var(--e3);
}

.onglets button {
	font: inherit;
	font-size: 13px;
	font-weight: 560;
	padding: 0 0 7px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--texte-3);
	cursor: pointer;
}

.onglets button[aria-selected="true"] {
	color: var(--texte);
	border-bottom-color: var(--ambre);
}

.liste-entrees {
	margin: 0;
	padding: 0;
	list-style: none;
}

.entree {
	display: grid;
	grid-template-columns: 74px 1fr auto;
	gap: var(--e3);
	align-items: center;
	padding: var(--e3) 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.vignette {
	width: 74px;
	height: 54px;
	border-radius: var(--r-s);
	overflow: hidden;
	background: #1B2028;
}

.vignette img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.entree .vol {
	font-size: 14px;
	font-weight: 640;
	color: var(--texte);
}

.entree .vol span {
	font-size: 12px;
	font-weight: 520;
	color: var(--texte-2);
}

.entree .meta {
	font-size: 11px;
	color: var(--texte-3);
	font-variant-numeric: tabular-nums;
}

.entree .distance {
	font-size: 12px;
	color: var(--texte-2);
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.entree .distance small {
	display: block;
	font-size: 10px;
	color: var(--texte-3);
}

.entree .actions-entree {
	grid-column: 1 / -1;
	display: flex;
	gap: var(--e2);
	margin-top: var(--e1);
}

.lien-discret {
	border: 0;
	background: none;
	padding: 4px 0;
	font: inherit;
	font-size: 12px;
	color: var(--texte-3);
	cursor: pointer;
	text-decoration: underline;
}

.lien-discret:active {
	color: var(--texte);
}

/* --- Réglages de visée -------------------------------------------------- */

.champ {
	margin: var(--e4) 0;
	text-align: left;
}

.champ label {
	display: block;
	margin-bottom: var(--e2);
	font-size: 13px;
	font-weight: 560;
	color: var(--texte);
}

.champ .aide {
	margin: var(--e2) 0 0;
	font-size: 12px;
	color: var(--texte-3);
}

.champ input[type="range"] {
	width: 100%;
	height: 32px;
	accent-color: var(--ambre);
}

.champ .valeur-reglage {
	font-variant-numeric: tabular-nums;
	color: var(--ambre);
	font-weight: 620;
}

/* --- Bandeau de notification ------------------------------------------- */

/* Le bandeau doit rester hors du contenu. Les panneaux étant ancrés en bas,
   il est placé en haut de l'écran ; sur l'écran de visée il passe sous la
   barre des capteurs, qui est la seule zone occupée en haut. */
.notification {
	position: fixed;
	top: calc(var(--zone-haut) + 10px);
	left: var(--e4);
	right: var(--e4);
	z-index: 40;
	padding: var(--e3) var(--e4);
	border-radius: var(--r-m);
	border: 1px solid var(--bordure);
	background: var(--voile-fort);
	font-size: 13px;
	color: var(--texte);
	text-align: center;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .18s ease, transform .18s ease;
	pointer-events: none;
}

#app[data-ecran="visee"] .notification {
	top: calc(var(--zone-haut) + 104px);
}

.notification.visible {
	opacity: 1;
	transform: translateY(0);
}

/* --- Divers ------------------------------------------------------------- */

.lien-pied {
	display: block;
	padding: var(--e4) 0 0;
	font-size: 11px;
	color: var(--texte-3);
	text-align: center;
}

.lien-pied a {
	color: var(--texte-2);
	text-decoration: underline;
}

/* --- Accessibilité et préférences -------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.pastille,
	.squelette {
		animation: none;
	}

	.declencheur,
	.notification {
		transition: none;
	}
}

/* Sur un grand écran, l'interface est centrée et bornée : les éléments de
   visée restent à portée du pouce et les panneaux ne s'étirent pas. */
@media (min-width: 620px) {
	.barre-haut,
	.mesure,
	.barre-bas,
	.actions-ligne {
		max-width: 480px;
		margin-left: auto;
		margin-right: auto;
	}

	.ligne-horizon {
		left: calc(50% - 240px);
		right: calc(50% - 240px);
	}

	.echelle-el {
		right: calc(50% - 228px);
	}

	.panneau {
		max-width: 480px;
		margin: 0 auto;
	}
}
