:root {
	--bs-primary: #3155c6;
	--bs-primary-rgb: 49, 85, 198;
	--bs-link-color: #264aad;
	--bs-link-hover-color: #18357d;
}
/* Pied de page commun à toutes les pages publiques Bootstrap. */
.public-footer {
	position: relative;
	background: #103c60;
	color: #d0e3f2;
	border-top: 4px solid #258bb6;
	padding: 3.75rem 0 1.5rem;
}
.public-footer .footer-grid {
	padding-bottom: 3rem;
}
.public-footer .footer-grid > * {
	min-width: 0;
}
.public-footer .footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	color: #fff;
	font-size: 1.4rem;
	font-weight: 750;
	text-decoration: none;
	max-width: 100%;
}
.public-footer .footer-brand > span:last-child {
	overflow-wrap: anywhere;
}
.public-footer .footer-logo {
	display: block;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}
.public-footer .footer-identity > p {
	font-size: 0.9rem;
	line-height: 1.8;
	max-width: 34ch;
	margin: 1.25rem 0 1rem;
}
.public-footer .footer-signature {
	display: inline-block;
	color: #9edbf5;
	font-size: 0.67rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.13em;
}
.public-footer h2 {
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0.4rem 0 1.1rem;
}
.public-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.public-footer li {
	margin: 0;
}
.public-footer .footer-navigation a {
	display: inline-block;
	padding: 0.4rem 0;
	color: #d0e3f2;
	font-size: 0.88rem;
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.public-footer .footer-navigation a:hover {
	color: #fff;
	text-decoration: underline;
}
.public-footer .footer-project p {
	max-width: 33ch;
	font-size: 0.87rem;
	line-height: 1.8;
	margin-bottom: 1.25rem;
}
.public-footer .footer-create {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	padding: 0.8rem 1rem;
	background: #e2f4ff;
	color: #103c60;
	border: 1px solid #e2f4ff;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 750;
	text-decoration: none;
	transition:
		background 0.2s,
		transform 0.2s;
}
.public-footer .footer-create .fp-icon {
	margin: 0;
}
.public-footer .footer-create:hover {
	background: #fff;
	color: #103c60;
	transform: translateY(-2px);
}
.public-footer .footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	border-top: 1px solid #ffffff29;
	padding-top: 1.5rem;
	font-size: 0.76rem;
	overflow-wrap: anywhere;
}
.public-footer .footer-utility-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem 1.75rem;
}
.public-footer .footer-utility-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.3rem 0;
	color: #d0e3f2;
	font-weight: 500;
	text-decoration: none;
}
.public-footer .footer-utility-links a:hover {
	color: #fff;
	text-decoration: underline;
}
@media (max-width: 767.98px) {
	.public-footer {
		padding: 2.75rem 0 1.5rem;
	}
	.public-footer .footer-grid {
		padding-bottom: 2rem;
	}
	.public-footer .footer-identity > p {
		max-width: 48ch;
	}
	.public-footer .footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}
@media (max-width: 575.98px) {
	.public-footer .footer-project {
		border-top: 1px solid #ffffff29;
		padding-top: 1.5rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.public-footer .footer-create {
		transition: none;
	}
}
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #f3f5fa;
	color: #202a40;
}
.navbar-brand {
	white-space: normal;
	overflow-wrap: anywhere;
}
.nav-link {
	color: #3c4961;
	border-radius: 0.5rem;
	font-weight: 500;
}
.nav-link:hover {
	background: #eef2ff;
	color: #264aad;
}
.content-surface {
	background: #fff;
	border: 1px solid #e4e8f0;
	border-radius: 1rem;
	min-width: 0;
}
h1 {
	font-size: clamp(1.65rem, 4vw, 2.4rem);
	font-weight: 700;
	letter-spacing: -0.035em;
}
.section-label {
	color: #52617a;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 0.65rem;
}
.card {
	border-color: #e4e8f0;
	border-radius: 0.85rem;
}
.category-card:hover {
	border-color: #9dacdc;
	background: #fbfcff;
}
.forum-preview {
	width: 100%;
	aspect-ratio: 8 / 5;
	height: auto;
	object-fit: cover;
	border-bottom: 1px solid #e4e8f0;
	background: #e9edf5;
}
.btn-primary {
	--bs-btn-bg: #3155c6;
	--bs-btn-border-color: #3155c6;
	--bs-btn-hover-bg: #2645a8;
	--bs-btn-hover-border-color: #2645a8;
	--bs-btn-active-bg: #203c95;
	--bs-btn-active-border-color: #203c95;
}
.form-control:focus,
.form-select:focus {
	border-color: #8198e0;
	box-shadow: 0 0 0 0.25rem rgb(49 85 198 / 15%);
}
.rich-content,
.card-body {
	overflow-wrap: anywhere;
}
.rich-content img,
.rich-content video,
.registration-form img {
	max-width: 100%;
	height: auto;
}
.rich-content iframe {
	max-width: 100%;
}
.rich-content pre {
	overflow: auto;
}
.rich-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}
.directory-pagination a,
.directory-pagination .page-current {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	border-radius: 0.4rem;
}
.directory-pagination .page-current {
	background: #edf1ff;
	color: #264aad;
}
@media (max-width: 575.98px) {
	.navbar .nav {
		width: 100%;
	}
	.nav-link {
		padding: 0.5rem 0.65rem;
	}
	.registration-form input,
	.registration-form select,
	.registration-form textarea {
		max-width: 100%;
	}
}

/* Composition publique */
.content-surface {
	border-radius: var(--fp-radius);
	box-shadow: 0 8px 30px rgb(23 43 66 / 3%);
}
.site-header .navbar-brand {
	color: var(--fp-ink);
	font-size: 1.1rem;
}
.nav-link[aria-current='page'] {
	background: #eaf0fa;
	color: var(--fp-brand);
	font-weight: 700;
}
.home-hero {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2.5rem;
	align-items: center;
	padding: 1rem 0 3rem;
}
.hero-copy h1 {
	max-width: 15ch;
}
.hero-intro {
	font-size: 1.1rem;
	color: var(--fp-muted);
	margin: 1.5rem 0;
	max-width: 42ch;
}
.hero-visual {
	background: #edf2fa;
	border: 1px solid var(--fp-line);
	border-radius: 16px;
	padding: 1rem;
	transform: rotate(-2deg);
}
.preview-top {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 700;
	padding: 0.25rem 0 1rem;
}
.preview-dot {
	width: 9px;
	height: 9px;
	background: #31765e;
	border-radius: 50%;
	margin-left: auto;
}
.preview-topic {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: white;
	border: 1px solid var(--fp-line);
	border-radius: 9px;
	padding: 0.9rem;
	margin-bottom: 0.65rem;
}
.preview-topic strong {
	font-size: 0.85rem;
}
.preview-topic div > span {
	display: block;
	color: var(--fp-muted);
	font-size: 0.72rem;
}
.topic-icon {
	background: #eef3fb;
	color: var(--fp-brand);
	border-radius: 8px;
	padding: 0.45rem;
	font-size: 0.75rem;
	font-weight: 700;
}
.preview-caption {
	font-size: 0.7rem;
	color: var(--fp-muted);
	text-align: center;
	margin: 0.8rem 0 0;
}
.home-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	border-top: 1px solid var(--fp-line);
	border-bottom: 1px solid var(--fp-line);
	padding: 2rem 0;
	margin-bottom: 2.5rem;
}
.home-benefits h2 {
	font-size: 1.05rem;
	margin: 0.6rem 0;
}
.home-benefits p {
	font-size: 0.9rem;
	color: var(--fp-muted);
	margin: 0;
}
.registration-form {
	max-width: 720px;
}
.registration-form .form-label {
	margin-bottom: 0.5rem;
}
.forum-preview {
	background: #edf2fa;
}
.preview-unavailable {
	display: grid;
	place-items: center;
	aspect-ratio: 8/5;
	color: var(--fp-muted);
	background: #edf2fa;
}
.nav-toggle {
	border: 1px solid var(--fp-line);
	border-radius: 8px;
	background: white;
	color: var(--fp-ink);
	padding: 0.5rem 0.8rem;
}
.site-footer a {
	font-weight: 600;
}
@media (max-width: 991.98px) {
	.home-hero {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.hero-copy h1 {
		max-width: 22ch;
	}
	.hero-visual {
		transform: none;
		max-width: 440px;
	}
	.home-benefits {
		gap: 1rem;
	}
}
@media (max-width: 575.98px) {
	.home-benefits {
		grid-template-columns: 1fr;
	}
	.home-hero {
		padding-bottom: 2rem;
	}
	.hero-visual {
		width: 100%;
	}
	.js-interface #public-navigation:not(.is-open) {
		display: none;
	}
	.js-interface .nav-toggle {
		display: block;
	}
	.site-header .navbar {
		justify-content: space-between;
	}
	#public-navigation {
		flex-direction: column;
	}
	.home-benefits article + article {
		padding-top: 1rem;
		border-top: 1px solid var(--fp-line);
	}
}

@media (min-width: 576px) {
	.nav-toggle {
		display: none;
	}
}

/* Création de forum : styles limités à cette page. */
.registration-heading {
	max-width: 680px;
	margin-bottom: 2.5rem;
}
.registration-heading h1 {
	font-size: clamp(2rem, 4vw, 3.2rem);
	margin-bottom: 1rem;
}
.registration-intro {
	color: var(--fp-muted);
	font-size: 1.08rem;
	max-width: 58ch;
	margin: 0;
}
.registration-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 2.5rem;
	align-items: start;
}
.registration-main,
.registration-guide {
	min-width: 0;
}
.registration-card {
	border: 1px solid var(--fp-line);
	border-radius: 14px;
	overflow: hidden;
}
.registration-card-heading {
	padding: 1.75rem 2rem;
	background: #f6f8fc;
	border-bottom: 1px solid var(--fp-line);
}
.registration-card-heading .section-label {
	margin-bottom: 0.55rem;
}
.registration-card-heading h2 {
	font-size: 1.45rem;
	margin-bottom: 0.7rem;
}
.registration-card-heading > p:last-child {
	color: var(--fp-muted);
	font-size: 0.9rem;
	margin: 0;
}
.registration-page .registration-form {
	padding: 2rem;
	max-width: none;
}
.registration-field {
	margin-bottom: 1.5rem;
}
.registration-field:last-child {
	margin-bottom: 0;
}
.registration-field .form-label {
	font-size: 0.95rem;
}
.registration-field .form-text {
	font-size: 0.82rem;
	line-height: 1.6;
}
.registration-field .form-text:empty {
	display: none;
}
.registration-control,
.registration-consent {
	overflow-wrap: anywhere;
}
.registration-field-feedback {
	margin-top: 0.65rem;
	color: var(--fp-muted);
	font-size: 0.85rem;
}
.registration-field-feedback input[type='submit'] {
	display: inline-block;
	border: 1px solid #aebccd;
	background: white;
	color: var(--fp-brand-dark);
	border-radius: 7px;
	padding: 0.55rem 0.8rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	white-space: normal;
}
.registration-field-feedback input[type='submit']:hover {
	background: #edf2fa;
}
.registration-group-title {
	border-top: 1px solid var(--fp-line);
	padding-top: 1.75rem;
	margin: 2rem 0 1.25rem;
	font-size: 1.05rem;
}
.registration-choices {
	display: grid;
	gap: 0.6rem;
}
.registration-choice {
	display: flex;
	align-items: start;
	gap: 0.7rem;
	border: 1px solid var(--fp-line);
	border-radius: 8px;
	padding: 0.8rem;
	cursor: pointer;
	overflow-wrap: anywhere;
}
.registration-choice .form-check-input {
	flex-shrink: 0;
	margin: 0.3rem 0 0;
}
.registration-choice:has(input:checked) {
	border-color: var(--fp-brand);
	background: #f2f6ff;
}
.registration-consent {
	margin: 1.5rem 0;
	padding: 1rem;
	background: #f6f8fc;
	border-radius: 8px;
	font-size: 0.85rem;
}
.registration-consent textarea {
	display: block;
	width: 100%;
	border: 1px solid #aebccd;
	border-radius: 8px;
	padding: 1rem;
	background: white;
	line-height: 1.7;
	resize: vertical;
	margin-bottom: 1rem;
}
.registration-consent input[type='checkbox'] {
	width: 1rem;
	height: 1rem;
	margin-right: 0.4rem;
	accent-color: var(--fp-brand);
	vertical-align: middle;
}
.registration-actions {
	border-top: 1px solid var(--fp-line);
	padding-top: 1.5rem;
	margin-top: 1.75rem;
}
.registration-actions .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 48px;
}
.registration-actions .fp-icon {
	margin: 0;
}
.registration-actions p {
	font-size: 0.78rem;
	color: var(--fp-muted);
	margin: 0.85rem 0 0;
}
.registration-error {
	margin: 1.5rem 2rem 0;
	overflow-wrap: anywhere;
}
.registration-error strong {
	display: block;
	margin-bottom: 0.4rem;
}
.registration-progress h2 {
	font-size: 1rem;
	margin: 0.3rem 0 1.5rem;
}
.registration-progress ol {
	list-style: none;
	padding: 0;
	margin: 0;
}
.registration-progress li {
	display: flex;
	gap: 0.9rem;
	align-items: center;
	padding: 0 0 1.5rem;
	color: var(--fp-muted);
	font-size: 0.9rem;
}
.registration-step-number {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #becadc;
	font-weight: 700;
	background: white;
}
.registration-step-number .fp-icon {
	margin: 0;
}
.registration-progress .is-current {
	color: var(--fp-ink);
	font-weight: 700;
}
.is-current .registration-step-number {
	background: var(--fp-brand);
	color: white;
	border-color: var(--fp-brand);
	box-shadow: 0 0 0 5px #edf2fa;
}
.is-done .registration-step-number {
	color: #236648;
	background: #edf7f1;
	border-color: #bed8c8;
}
.registration-progress small {
	display: block;
	font-size: 0.73rem;
	font-weight: 400;
	color: var(--fp-muted);
	margin-top: 0.15rem;
}
.registration-tip {
	margin-top: 0.75rem;
	padding: 1.5rem;
	border-radius: 12px;
	background: #edf2fa;
}
.registration-tip-icon {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	background: white;
	border-radius: 10px;
	color: var(--fp-brand);
	margin-bottom: 1rem;
}
.registration-tip-icon .fp-icon {
	margin: 0;
}
.registration-tip h2 {
	font-size: 1rem;
}
.registration-tip p {
	color: var(--fp-muted);
	font-size: 0.85rem;
	margin: 0.75rem 0 0;
}
.registration-privacy {
	display: flex;
	gap: 0.4rem;
	font-size: 0.78rem;
	align-items: start;
	margin: 1.25rem 0.25rem 0;
}
.registration-privacy .fp-icon {
	margin-top: 0.3rem;
}
@media (max-width: 991.98px) {
	.registration-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;
	}
	.registration-guide {
		grid-row: 1;
	}
	.registration-progress ol {
		display: flex;
		flex-wrap: wrap;
		gap: 1rem 1.5rem;
	}
	.registration-progress li {
		padding-bottom: 0;
	}
	.registration-tip,
	.registration-privacy {
		display: none;
	}
	.registration-progress h2 {
		margin-bottom: 1rem;
	}
}
@media (max-width: 575.98px) {
	.registration-heading {
		margin-bottom: 1.75rem;
	}
	.registration-card-heading,
	.registration-page .registration-form {
		padding: 1.25rem;
	}
	.registration-error {
		margin: 1.25rem 1.25rem 0;
	}
	.registration-progress ol {
		flex-direction: column;
		gap: 0.9rem;
	}
	.registration-actions .btn {
		width: 100%;
	}
}
