/*
 * Styles propres aux trois pages publiques de restitution.
 * Toutes les règles sont limitées à .restitution-page afin de ne pas
 * modifier les autres écrans tant que leur refonte n'est pas déployée.
 */

html {
	/* Base de 16 px augmentée globalement de 20 %. */
	font-size: 19.2px !important;
}

body.restitution-page {
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.84rem;
	font-weight: 400;
	line-height: 1.5;
}

body.restitution-page h2 {
	font-size: 1.25rem;
}

body.restitution-page h3 {
	font-size: 0.95rem;
	line-height: 1.35;
	letter-spacing: -0.015em;
}

body.restitution-page p,
body.restitution-page label,
body.restitution-page input,
body.restitution-page select,
body.restitution-page textarea,
body.restitution-page button,
body.restitution-page .button {
	font-size: 0.76rem;
}

body.restitution-page table th,
body.restitution-page table td {
	font-size: 0.74rem;
	line-height: 1.35;
}

body.restitution-page small {
	font-size: 0.66rem;
}

body.restitution-page .actions .button,
body.restitution-page .actions button {
	max-width: none;
	height: 2.5rem;
	padding: 0 1rem;
	overflow: visible;
	font-size: 0.68rem;
	line-height: 2.5rem;
	letter-spacing: 0.05em;
	text-overflow: clip;
}

body.restitution-page > #wrapper {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.restitution-page .restitution-header {
	margin-top: 0 !important;
	padding: 0.65rem 2rem !important;
}

body.restitution-page .restitution-header .inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	max-width: none;
	width: 100%;
}

body.restitution-page .restitution-header-logo {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	border-bottom: 0;
}

body.restitution-page .restitution-header-logo img {
	display: block;
	width: 105px;
	height: auto;
}

body.restitution-page .restitution-header-title,
body.restitution-page .restitution-header-text {
	flex: 1;
	padding-right: 105px;
	text-align: center;
}

body.restitution-page .restitution-header-title,
body.restitution-page .restitution-header-text h1,
body.restitution-page .restitution-header-text p {
	margin: 0;
	color: #ffffff;
}

body.restitution-page .restitution-header-title,
body.restitution-page .restitution-header-text h1 {
	font-size: 1.14rem;
	line-height: 1.25;
}

body.restitution-page .restitution-header-text p {
	font-size: 0.82rem;
	line-height: 1.35;
}

/* Pied de page compact, isolé des autres pages du site. */
body.restitution-page .app-footer {
	position: relative;
	padding: 0.35rem 0.75rem;
	background: linear-gradient(115deg, #12364a 0%, #0d2b3c 100%);
	border-top: 2px solid #e88219;
	color: #ffffff;
}

body.restitution-page .app-footer-inner {
	display: grid;
	grid-template-columns: minmax(13rem, 1fr) auto minmax(8rem, 0.45fr);
	width: min(100%, 90rem);
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 0 auto;
}

body.restitution-page .app-footer-brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: fit-content;
	color: #ffffff !important;
	text-decoration: none;
}

body.restitution-page .app-footer-logo {
	display: inline-flex;
	width: 2rem;
	height: 2.5rem;
	flex: 0 0 2rem;
	align-items: center;
	justify-content: center;
}

body.restitution-page .app-footer-logo img {
	display: block;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}

body.restitution-page .app-footer-brand strong,
body.restitution-page .app-footer-brand small {
	display: block;
}

body.restitution-page .app-footer-brand strong {
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.1;
}

body.restitution-page .app-footer-brand small {
	margin-top: 0.1rem;
	color: #c7dae3;
	font-size: 0.6rem;
	line-height: 1.2;
}

body.restitution-page .app-footer-links {
	display: flex;
	align-items: center;
	justify-content: center;
}

body.restitution-page .app-footer-links a {
	display: inline-flex;
	min-height: 1.8rem;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.5rem;
	color: #ffffff !important;
	border-radius: 0.4rem;
	font-size: 0.64rem;
	font-weight: 700;
	text-decoration: none;
}

body.restitution-page .app-footer-links i {
	color: #ffad55;
	font-size: 0.72rem;
}

body.restitution-page .app-footer-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	color: #c7dae3;
	font-size: 0.62rem;
	white-space: nowrap;
}

body.restitution-page .app-footer-version {
	display: inline-flex;
	min-height: 1.4rem;
	align-items: center;
	padding: 0.1rem 0.45rem;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: 999px;
}

/* Compatibilité avec le pied de page encore installé en production. */
body.restitution-page footer.wrapper.align-center:not(.app-footer) {
	padding: 0.4rem 0.75rem !important;
	background: linear-gradient(115deg, #12364a 0%, #0d2b3c 100%);
	border-top: 2px solid #e88219;
	color: #ffffff;
}

body.restitution-page footer.wrapper.align-center:not(.app-footer) > .inner {
	padding: 0 !important;
}

body.restitution-page footer.wrapper.align-center:not(.app-footer) .icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	margin: 0;
	padding: 0;
}

body.restitution-page footer.wrapper.align-center:not(.app-footer) .icons li {
	margin: 0;
	padding: 0;
	font-size: 0.62rem;
}

body.restitution-page footer.wrapper.align-center:not(.app-footer) .icons a,
body.restitution-page footer.wrapper.align-center:not(.app-footer) .icons span {
	color: #ffffff;
	font-size: 0.62rem;
}

body.restitution-page footer.wrapper.align-center:not(.app-footer) .icons img {
	display: block;
	width: auto;
	height: 1.8rem;
}

/* Page Offre d'accueil. */
body.restitution-offre-page .offre-main-section {
	padding-top: 0.5rem !important;
	padding-bottom: 0 !important;
}

body.restitution-offre-page .offre-navigation {
	padding-bottom: 0 !important;
}

body.restitution-offre-page .offre-navigation .field,
body.restitution-offre-page .offre-navigation .actions {
	margin-bottom: 0;
}

body.restitution-offre-page .offre-navigation .actions,
body.restitution-enfants-page .enfants-navigation .actions {
	width: auto;
	margin-left: 0;
	justify-content: center;
	gap: 0.75rem;
}

body.restitution-offre-page .offre-navigation .actions li,
body.restitution-enfants-page .enfants-navigation .actions li {
	flex: 0 0 auto;
	width: auto;
	padding: 0;
}

body.restitution-offre-page .offre-navigation .actions li > *,
body.restitution-enfants-page .enfants-navigation .actions li > * {
	width: auto;
	min-width: 15rem;
}

body.restitution-offre-page .offre-secondary-section {
	padding-top: 0 !important;
}

body.restitution-offre-page .offre-secondary-section .result-cards {
	gap: 12px !important;
}

body.restitution-offre-page .offre-secondary-section .result-cards .box {
	margin-bottom: 0.75rem;
}

body.restitution-offre-page .offre-secondary-section h3 {
	margin-top: 0.5rem;
}

body.restitution-offre-page .bouton-methodologie,
body.restitution-offre-page .bouton-plus-loin {
	min-width: 0;
	height: 2rem;
	padding: 0 0.85rem;
	font-size: 0.62rem;
	line-height: 2rem;
}

body.restitution-offre-page .bouton-plus-loin,
body.restitution-offre-page .bouton-plus-loin:hover {
	border: 0;
	box-shadow: none;
}

body.restitution-offre-page .plus-loin-container {
	width: 25%;
	padding: 0;
	border: 0;
}

/* Page Enfants de moins de 3 ans. */
body.restitution-enfants-page .enfants-navigation {
	padding: 1rem 2% 0.5rem !important;
}

body.restitution-enfants-page .enfants-navigation .field,
body.restitution-enfants-page .enfants-navigation .actions {
	margin-bottom: 0;
}

body.restitution-enfants-page .enfants-tableau {
	padding: 0.75rem 2% 0.5rem !important;
}

body.restitution-enfants-page .enfants-tableau h3,
body.restitution-enfants-page .enfants-graphiques h3 {
	margin-bottom: 1rem;
}

body.restitution-enfants-page .enfants-tableau .table-bloc {
	margin-bottom: 0.75rem;
	padding: 1.1rem;
}

body.restitution-enfants-page .enfants-tableau .table-bloc table {
	margin-bottom: 1rem;
}

body.restitution-enfants-page .enfants-tableau .table-bloc th,
body.restitution-enfants-page .enfants-tableau .table-bloc td {
	padding: 0.55em 0.45em;
}

body.restitution-enfants-page .note-bas-revenus {
	display: block;
	font-size: 0.7rem;
	line-height: 1.35;
}

body.restitution-enfants-page .note-couverture-filoue {
	margin: 0.35rem 0 1rem;
	color: #2f5597;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
}

body.restitution-enfants-page .enfants-graphiques {
	padding: 0.75rem 2% 1rem !important;
}

body.restitution-enfants-page .enfants-graphiques .box {
	margin-bottom: 1.25rem !important;
	padding: 1.25rem;
}

body.restitution-enfants-page .enfants-graphiques .box:last-child {
	margin-bottom: 0 !important;
}

body.restitution-enfants-page .enfants-footer-separator {
	margin: 0.5rem 0;
}

@media screen and (max-width: 736px) {
	body.restitution-page .restitution-header {
		padding: 0.6rem 1rem !important;
	}

	body.restitution-page .restitution-header .inner {
		gap: 0.75rem;
	}

	body.restitution-page .restitution-header-logo img {
		width: 78px;
	}

	body.restitution-page .restitution-header-title,
	body.restitution-page .restitution-header-text {
		padding-right: 0;
		text-align: left;
	}

	body.restitution-page .restitution-header-title,
	body.restitution-page .restitution-header-text h1 {
		font-size: 1.03rem;
	}

	body.restitution-page .restitution-header-text p {
		font-size: 0.74rem;
	}

	body.restitution-page .app-footer-inner {
		grid-template-columns: 1fr;
		gap: 0.35rem;
		justify-items: center;
		text-align: center;
	}

	body.restitution-page .app-footer-brand,
	body.restitution-page .app-footer-meta {
		justify-content: center;
	}

	body.restitution-page footer.wrapper.align-center:not(.app-footer) .icons {
		flex-wrap: wrap;
		gap: 0.4rem 0.7rem;
	}

	body.restitution-offre-page .offre-navigation .actions,
	body.restitution-enfants-page .enfants-navigation .actions {
		width: 100%;
	}

	body.restitution-offre-page .offre-navigation .actions li,
	body.restitution-enfants-page .enfants-navigation .actions li,
	body.restitution-offre-page .offre-navigation .actions li > *,
	body.restitution-enfants-page .enfants-navigation .actions li > * {
		width: 100%;
		min-width: 0;
	}

	body.restitution-offre-page .plus-loin-container {
		width: 100%;
	}

	body.restitution-enfants-page .enfants-tableau .table-bloc,
	body.restitution-enfants-page .enfants-graphiques .box {
		padding: 0.9rem;
	}
}
