/* La page « Notre charte » (02/12/2026, deploy/plateforme/charte.py) : un sommaire en pastilles, la raison d'être, la
   question en grand et ses six questions numérotées, les six règles en cartes (grands chiffres 01 à 06), les règles de
   l'assistant IA et l'exemple de la mention, ce qui reste ouvert. Le reste suit .doc et .vision-doc d'assets/awoui.css.
   Rien qu'avec les jetons d'assets/tokens.css : les trois thèmes (sombre, clair, nuit) suivent seuls. Aucun liseré de
   couleur sur un côté. */

.charte-doc { --carte: color-mix(in srgb, var(--bg-2) 62%, transparent); }

/* le sommaire */
.charte-sommaire {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
}
.charte-doc .charte-sommaire a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px 7px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--carte);
	color: var(--text);
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
}
.charte-doc .charte-sommaire a:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.charte-sommaire svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* la raison d'être : la phrase seule, en grand (ses guillemets suffisent, pas d'ornement) */
.charte-doc .charte-raison {
	margin: 8px 0 18px;
	color: var(--text);
	font-family: var(--fd);
	font-size: clamp(19px, 2.4vw, 23px);
	line-height: 1.5;
	font-weight: 500;
	text-wrap: pretty;
}

/* la question : en grand, sur un fond doux */
.charte-doc .charte-question {
	margin: 10px 0 20px;
	padding: clamp(22px, 4vw, 34px) clamp(20px, 4vw, 36px);
	border-radius: var(--r-lg);
	background: var(--accent-soft);
	border: 1px solid var(--accent-line);
	color: var(--text);
	font-family: var(--fd);
	font-size: clamp(22px, 3.2vw, 30px);
	line-height: 1.32;
	font-weight: 600;
	text-align: center;
	text-wrap: balance;
}

/* les six questions : un numéro rond, le nom du principe, la question */
.charte-doc .charte-questions {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
	display: grid;
	gap: 10px;
}
.charte-doc .charte-questions li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}
.charte-n {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	margin-top: 1px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-soft);
	border: 1px solid var(--accent-line);
	color: var(--accent);
	font-family: var(--fd);
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.charte-questions strong { margin-right: 4px; }

/* les six règles */
.charte-regles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 18px 0 8px;
}
@media (max-width: 640px) {
	.charte-regles { grid-template-columns: minmax(0, 1fr); }
}
.charte-regle {
	padding: 20px 20px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--carte);
	box-shadow: var(--sh-1);
}
.charte-regle-tete {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}
.charte-num {
	font-family: var(--fd);
	font-size: 38px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.charte-doc .charte-regle h3 {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
}
.charte-doc .charte-ref {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 13px;
	letter-spacing: .02em;
}
.charte-doc .charte-regle-texte {
	margin: 0 0 10px;
	color: var(--text);
	font-weight: 600;
	line-height: 1.45;
}
.charte-doc .charte-engagements,
.charte-doc .charte-assistant,
.charte-doc .charte-ouverts {
	list-style: none;
	padding: 0;
	margin: 0;
}
.charte-doc .charte-engagements li,
.charte-doc .charte-assistant li,
.charte-doc .charte-ouverts li {
	position: relative;
	margin: 0 0 7px;
	padding-left: 24px;
	font-size: 15.5px;
	line-height: 1.5;
}
/* la coche : deux traits, sans image */
.charte-engagements li::before,
.charte-assistant li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: .38em;
	width: 6px;
	height: 11px;
	border: solid var(--accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* l'assistant IA */
.charte-doc .charte-assistant { margin: 4px 0 20px; }
.charte-doc .charte-assistant li { font-size: 16.5px; margin-bottom: 10px; }
.charte-mention {
	margin: 8px 0 22px;
	padding: 18px 20px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--r);
}
.charte-doc .charte-mention p { margin: 0 0 10px; }
.charte-doc .charte-mention .charte-mention-titre {
	margin-bottom: 4px;
	color: var(--text);
	font-family: var(--fd);
	font-weight: 600;
	font-size: 15px;
}
.charte-doc .charte-mention-exemple {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 11px 14px;
	border-radius: var(--r-sm);
	background: var(--carte);
	border: 1px solid var(--line);
	color: var(--text);
	font-size: 15px;
	line-height: 1.45;
}
.charte-mention-exemple svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.7;
	stroke-linejoin: round;
}

/* ce qui reste ouvert : un rond vide, à cocher un jour */
.charte-ouverts li::before {
	content: "";
	position: absolute;
	left: 1px;
	top: .3em;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	border: 1.5px solid var(--muted);
}

.charte-doc .charte-gestes {
	margin-top: 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.charte-doc .charte-date {
	margin-top: 22px;
	font-size: .88em;
	opacity: .7;
}
