/* CQO Contributeurs : styles publics. Les variables peuvent être surchargées depuis Elementor ou le thème. */

.cqoc-register,
.cqoc-author-box,
.cqoc-author-profile {
	--cqoc-color-text: inherit;
	--cqoc-color-muted: #6b6b6b;
	--cqoc-color-accent: #c2185b;
	--cqoc-color-bg: #faf7f5;
	--cqoc-color-border: #e7e1dc;
	--cqoc-color-error: #b3261e;
	--cqoc-color-success: #1e6b3a;
	--cqoc-radius: 12px;
	--cqoc-photo-size: 96px;
	--cqoc-gap: 1.25rem;
}

/* Formulaire d'inscription */

.cqoc-register {
	max-width: 560px;
}

.cqoc-register__form {
	display: grid;
	gap: 1rem;
}

.cqoc-register__field {
	display: grid;
	gap: 0.35rem;
	margin: 0;
}

.cqoc-register__field label {
	font-weight: 600;
}

.cqoc-register__field input[type="text"],
.cqoc-register__field input[type="email"],
.cqoc-register__field input[type="password"] {
	width: 100%;
	box-sizing: border-box;
}

.cqoc-register__field--checkbox {
	grid-template-columns: auto 1fr;
	align-items: start;
	column-gap: 0.5rem;
}

.cqoc-register__field--checkbox label {
	font-weight: 400;
}

.cqoc-register__help {
	color: var(--cqoc-color-muted);
	font-size: 0.875em;
}

.cqoc-register__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cqoc-register__notice {
	padding: 1rem 1.25rem;
	border-radius: var(--cqoc-radius);
	border: 1px solid currentColor;
	margin-bottom: 1rem;
}

.cqoc-register__notice p,
.cqoc-register__notice ul {
	margin: 0;
}

.cqoc-register__notice p + p {
	margin-top: 0.5rem;
}

.cqoc-register__notice ul {
	padding-left: 1.25rem;
}

.cqoc-register__notice--error {
	color: var(--cqoc-color-error);
}

.cqoc-register__notice--success {
	color: var(--cqoc-color-success);
}

.cqoc-register__submit {
	margin: 0;
}

/* Encart auteur */

.cqoc-author-box {
	display: flex;
	gap: var(--cqoc-gap);
	align-items: flex-start;
	padding: 1.5rem;
	margin: 2rem 0;
	background: var(--cqoc-color-bg);
	border: 1px solid var(--cqoc-color-border);
	border-radius: var(--cqoc-radius);
	color: var(--cqoc-color-text);
	box-sizing: border-box;
}

.cqoc-author-box--align-center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.cqoc-author-box--align-right {
	flex-direction: row-reverse;
	text-align: right;
}

.cqoc-author-box__photo {
	flex: 0 0 var(--cqoc-photo-size);
}

.cqoc-author-box__img {
	display: block;
	width: var(--cqoc-photo-size);
	height: var(--cqoc-photo-size);
	border-radius: 50%;
	object-fit: cover;
}

.cqoc-author-box__body {
	flex: 1 1 auto;
	min-width: 0;
}

.cqoc-author-box__name,
.cqoc-author-box__summary,
.cqoc-author-box__all {
	margin: 0 0 0.5rem;
}

.cqoc-author-box__name {
	font-weight: 700;
	font-size: 1.125em;
}

.cqoc-author-box__name-link,
.cqoc-author-box__all-link {
	color: inherit;
	text-decoration: none;
}

.cqoc-author-box__name-link:hover,
.cqoc-author-box__name-link:focus-visible,
.cqoc-author-box__all-link:hover,
.cqoc-author-box__all-link:focus-visible {
	color: var(--cqoc-color-accent);
	text-decoration: underline;
}

.cqoc-author-box__summary:empty {
	display: none;
}

.cqoc-author-box__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}

.cqoc-author-box--align-center .cqoc-author-box__links {
	justify-content: center;
}

.cqoc-author-box--align-right .cqoc-author-box__links {
	justify-content: flex-end;
}

.cqoc-author-box__link-item {
	margin: 0;
	padding: 0;
}

.cqoc-author-box__link-item[hidden] {
	display: none;
}

.cqoc-author-box__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--cqoc-color-border);
	color: var(--cqoc-color-text);
	transition: color 0.15s ease, border-color 0.15s ease;
}

.cqoc-author-box__link:hover,
.cqoc-author-box__link:focus-visible {
	color: var(--cqoc-color-accent);
	border-color: var(--cqoc-color-accent);
}

.cqoc-author-box__all-link {
	font-weight: 600;
	color: var(--cqoc-color-accent);
}

@media (max-width: 600px) {
	.cqoc-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.cqoc-author-box__links {
		justify-content: center;
	}
}

/* Page auteur */

.cqoc-author-profile {
	display: flex;
	gap: calc(var(--cqoc-gap) * 1.5);
	align-items: flex-start;
	margin: 0 0 2rem;
	color: var(--cqoc-color-text);
}

.cqoc-author-profile--align-center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.cqoc-author-profile--align-right {
	flex-direction: row-reverse;
	text-align: right;
}

.cqoc-author-profile__photo {
	flex: 0 0 calc(var(--cqoc-photo-size) * 1.75);
}

.cqoc-author-profile__img {
	display: block;
	width: calc(var(--cqoc-photo-size) * 1.75);
	height: calc(var(--cqoc-photo-size) * 1.75);
	border-radius: 50%;
	object-fit: cover;
}

.cqoc-author-profile__body {
	flex: 1 1 auto;
	min-width: 0;
}

.cqoc-author-profile__name {
	margin: 0 0 0.75rem;
}

.cqoc-author-profile__bio > :last-child {
	margin-bottom: 0;
}

.cqoc-author-profile__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.cqoc-author-profile--align-center .cqoc-author-profile__links {
	justify-content: center;
}

.cqoc-author-profile--align-right .cqoc-author-profile__links {
	justify-content: flex-end;
}

.cqoc-author-profile__link-item {
	margin: 0;
	padding: 0;
}

.cqoc-author-profile__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--cqoc-color-text);
	text-decoration: none;
}

.cqoc-author-profile__link:hover,
.cqoc-author-profile__link:focus-visible {
	color: var(--cqoc-color-accent);
}

/* Aperçu dans l'éditeur Elementor */

.cqoc-elementor-placeholder {
	padding: 1rem;
	border: 1px dashed #c3c4c7;
	color: #50575e;
	font-size: 0.9em;
	text-align: center;
}

@media (max-width: 600px) {
	.cqoc-author-profile {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.cqoc-author-profile__links {
		justify-content: center;
	}
}
