/* Agora DODES, Cercles : page publique.
   Palette reprise du site : vert Agora, jaune des bulles du schéma, orange du pied de page. */
.ac-cercles {
	--ac-vert: #1b5e3b;
	--ac-vert-clair: #d9e8df;
	--ac-jaune: #fdd85d;
	--ac-orange: #e39c00;
	--ac-encre: #23302a;
	--ac-gris: #5f6b64;
	max-width: 760px;
	margin: 0 auto;
	color: var(--ac-encre);
	font-family: inherit;
	line-height: 1.55;
}

.ac-cercles .ac-titre {
	font-size: 1.5em;
	color: var(--ac-vert);
	margin: 0 0 .6em;
	padding: 0;
	border: 0;
	font-weight: 700;
}

/* Messages */
.ac-message {
	border-left: 4px solid var(--ac-vert);
	background: #f3f7f4;
	padding: .9em 1.1em;
	margin: 0 0 1.8em;
}
.ac-message p { margin: 0; padding: 0; }
.ac-message p + p { margin-top: .5em; }
.ac-message--erreur { border-left-color: #b3261e; background: #fbf0ef; }
.ac-message--info { border-left-color: var(--ac-orange); background: #fdf6e8; }

/* Liste des cercles */
.ac-liste { border: 0; margin: 0 0 2em; padding: 0; min-width: 0; }

.ac-cercle { position: relative; border-top: 1px solid var(--ac-vert-clair); }
.ac-cercle:last-child { border-bottom: 1px solid var(--ac-vert-clair); }

.ac-case {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.ac-cercle__corps {
	display: flex;
	gap: 1em;
	align-items: flex-start;
	padding: 1.05em .4em;
	cursor: pointer;
}
.ac-cercle--acquis .ac-cercle__corps { cursor: default; }

.ac-bulle {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	margin-top: .05em;
	border-radius: 50%;
	border: 2px solid var(--ac-vert);
	background: #fff;
	position: relative;
	transition: background-color .15s ease, transform .15s ease;
}
.ac-bulle::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 4px;
	width: 7px;
	height: 13px;
	border: solid var(--ac-vert);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
	opacity: 0;
}

.ac-case:checked + .ac-cercle__corps .ac-bulle,
.ac-bulle--pleine {
	background: var(--ac-jaune);
	transform: scale(1.06);
}
.ac-case:checked + .ac-cercle__corps .ac-bulle::after,
.ac-bulle--pleine::after { opacity: 1; }

.ac-case:focus-visible + .ac-cercle__corps .ac-bulle {
	outline: 3px solid var(--ac-orange);
	outline-offset: 3px;
}
.ac-case:disabled + .ac-cercle__corps { opacity: .8; }

.ac-cercle__texte { display: flex; flex-direction: column; gap: .15em; }
.ac-cercle__nom { font-weight: 700; font-size: 1.12em; color: var(--ac-vert); }
.ac-cercle__desc { color: var(--ac-encre); }
.ac-cercle__note { color: var(--ac-gris); font-size: .9em; font-style: italic; }
.ac-cercle__note:empty { display: none; }

/* Identité */
.ac-identite {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.2em;
}
.ac-champ { margin: 0 0 1em; padding: 0; }
.ac-champ--large { grid-column: 1 / -1; }
.ac-champ label { display: block; font-weight: 600; margin-bottom: .3em; }
.ac-cercles input[type="text"],
.ac-cercles input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: .7em .8em;
	border: 1px solid #b9c7be;
	border-radius: 2px;
	background: #fff;
	font: inherit;
	color: inherit;
}
.ac-cercles input[readonly] { background: #f3f5f3; }
.ac-cercles input:focus-visible { outline: 3px solid var(--ac-orange); outline-offset: 1px; border-color: var(--ac-vert); }

.ac-accord { margin: .4em 0 1.4em; padding: 0; }
.ac-accord label { display: flex; gap: .7em; align-items: flex-start; font-size: .92em; color: var(--ac-gris); }
.ac-accord input { margin-top: .3em; flex: 0 0 auto; accent-color: var(--ac-vert); }

/* Boutons */
.ac-actions { margin: 0; padding: 0; }
.ac-bouton {
	display: inline-block;
	padding: .8em 1.6em;
	border: 2px solid var(--ac-vert);
	border-radius: 2px;
	background: var(--ac-vert);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.ac-bouton:hover { background: #144a2e; }
.ac-bouton:focus-visible { outline: 3px solid var(--ac-orange); outline-offset: 3px; }
.ac-bouton--secondaire { background: #fff; color: var(--ac-vert); }
.ac-bouton--secondaire:hover { background: #f3f7f4; }

.ac-lien {
	background: none;
	border: 0;
	padding: 0;
	color: var(--ac-vert);
	text-decoration: underline;
	font: inherit;
	font-size: .92em;
	cursor: pointer;
}
.ac-lien:focus-visible { outline: 3px solid var(--ac-orange); outline-offset: 2px; }

/* Mes cercles */
.ac-gestion { margin-bottom: 2.6em; }
.ac-gestion__email { color: var(--ac-gris); margin: -.3em 0 1.2em; }
.ac-mes-cercles { list-style: none; margin: 0; padding: 0; }
.ac-mes-cercles__item {
	display: flex;
	gap: 1em;
	align-items: center;
	padding: .9em .4em;
	border-top: 1px solid var(--ac-vert-clair);
}
.ac-mes-cercles__item:last-child { border-bottom: 1px solid var(--ac-vert-clair); }
.ac-mes-cercles__texte { flex: 1 1 auto; display: flex; flex-direction: column; }
.ac-quitter { margin: 0; flex: 0 0 auto; }

.ac-moderation p { margin: 0 0 1.2em; }

.ac-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
	.ac-identite { grid-template-columns: 1fr; }
	.ac-mes-cercles__item { flex-wrap: wrap; }
	.ac-quitter { width: 100%; padding-left: calc(30px + 1em); }
}

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