.gcm-app {
	--gcm-navy: var(--global-palette4, #1e2a44);
	--gcm-ink: var(--global-palette5, #2b2f33);
	--gcm-muted: var(--global-palette6, #4e5968);
	--gcm-gold: var(--global-palette3, #c9a24a);
	--gcm-line: #d7dce1;
	--gcm-surface: var(--global-palette8, #f5f6f7);
	--gcm-white: var(--global-palette9, #ffffff);
	--gcm-school: #477b9f;
	--gcm-secondary: #6f7d32;
	--gcm-site-accent: var(--gcm-school);
	--gcm-week-accent: var(--gcm-gold);
	--gcm-week-accent-soft: #fbf6e9;
	--gcm-week-surface: var(--gcm-surface);
	box-sizing: border-box;
	color: var(--gcm-ink);
	font-family: inherit;
	font-size: 17px;
	line-height: 1.6;
	margin: 3rem auto;
	max-width: min(100%, var(--gcm-custom-max-width, var(--global-content-width, 1180px)));
	width: 100%;
}

.gcm-app *,
.gcm-app *::before,
.gcm-app *::after {
	box-sizing: border-box;
}

.gcm-block-banner-preview {
	margin-top: 1rem;
	width: 100%;
}

.gcm-block-banner-preview__label {
	color: #1e2a44;
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 6px;
}

.gcm-banner-visibility-controls {
	border-top: 1px solid #dcdcde;
	margin-top: 8px;
	padding-top: 12px;
}

.gcm-banner-visibility-controls > p {
	margin: 0 0 10px;
}

.gcm-week-heading__notice {
	color: var(--gcm-muted);
	font-size: 0.62em;
	font-weight: 500;
	white-space: nowrap;
}

.gcm-app .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.gcm-week-heading__theme {
	border-left: 3px solid var(--gcm-gold);
	color: var(--gcm-navy);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0 0 0.35rem;
	padding-left: 0.55rem;
	text-transform: uppercase;
}

.gcm-controls {
	align-items: end;
	background: var(--gcm-white);
	border: 2px solid var(--gcm-gold);
	border-radius: 5px;
	color: var(--gcm-navy);
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.4fr) auto;
	padding: 1.25rem;
}

.gcm-site-switcher {
	border: 0;
	display: grid;
	gap: 0.5rem;
	grid-template-columns: 0.8fr 1.35fr;
	margin: 0;
	padding: 0;
}

.gcm-site-switcher label {
	cursor: pointer;
	margin: 0;
	position: relative;
}

.gcm-site-switcher input {
	opacity: 0;
	position: absolute;
}

.gcm-site-switcher span {
	align-items: center;
	background: var(--gcm-white);
	border: 1px solid var(--gcm-gold);
	border-radius: 3px;
	color: var(--gcm-navy);
	display: flex;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 0.45rem 0.75rem;
	text-align: center;
}

.gcm-site-switcher input:checked + span {
	background: var(--gcm-gold);
	border-color: var(--gcm-gold);
	color: var(--gcm-navy);
}

.gcm-week-nav,
.gcm-view-actions {
	align-items: end;
	display: flex;
	gap: 0.5rem;
}

.gcm-week-nav label,
.gcm-view-actions label,
.gcm-field {
	color: var(--gcm-navy);
	display: grid;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 0.25rem;
	margin: 0;
}

.gcm-app button,
.gcm-app input,
.gcm-app select {
	font: inherit;
}

.gcm-app input[type="date"],
.gcm-app input[type="search"],
.gcm-app select {
	background: var(--gcm-white);
	border: 1px solid #aeb6bf;
	border-radius: 3px;
	color: var(--gcm-ink);
	min-height: 44px;
	padding: 0.45rem 0.65rem;
}

.gcm-button {
	align-items: center;
	background: var(--gcm-gold);
	border: 1px solid var(--gcm-gold);
	border-radius: 3px;
	color: var(--gcm-navy);
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 0.45rem 0.85rem;
	text-decoration: none;
}

.gcm-button:hover {
	background: #e7ce8f;
	border-color: #e7ce8f;
	color: var(--gcm-navy);
}

.gcm-button--icon {
	font-size: 1.2rem;
	min-width: 44px;
	padding: 0;
}

.gcm-button--secondary {
	background: var(--gcm-white);
	border-color: var(--gcm-gold);
	color: var(--gcm-navy);
}

.gcm-button--pdf {
	background: var(--gcm-gold);
	color: var(--gcm-navy);
	white-space: nowrap;
}

.gcm-button--pdf:hover {
	background: #e7ce8f;
	color: var(--gcm-navy);
}

.gcm-app :focus-visible {
	box-shadow: 0 0 0 3px var(--gcm-white), 0 0 0 6px var(--gcm-navy);
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.gcm-site-switcher input:focus-visible + span {
	box-shadow: 0 0 0 3px var(--gcm-white), 0 0 0 6px var(--gcm-navy);
}

.gcm-filters {
	background: var(--gcm-white);
	border: 1px solid var(--gcm-line);
	border-radius: 5px;
	margin: 1rem 0;
}

.gcm-filters[open] {
	border-top: 3px solid var(--gcm-gold);
}

.gcm-filters summary {
	color: var(--gcm-navy);
	cursor: pointer;
	font-weight: 700;
	min-height: 44px;
	padding: 0.7rem 1rem;
}

.gcm-filters__body {
	align-items: end;
	border-top: 1px solid var(--gcm-line);
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(220px, 0.8fr) auto minmax(320px, 2fr) auto;
	padding: 1rem;
}

.gcm-allergens {
	border: 0;
	margin: 0;
	padding: 0;
}

.gcm-allergens legend {
	color: var(--gcm-navy);
	font-size: 0.82rem;
	font-weight: 700;
	margin-bottom: 0.3rem;
}

.gcm-allergens__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
}

.gcm-check {
	align-items: center;
	display: inline-flex;
	gap: 0.4rem;
	margin: 0;
	min-height: 32px;
}

.gcm-check input {
	accent-color: var(--gcm-navy);
	height: 1.1rem;
	margin: 0;
	width: 1.1rem;
}

.gcm-status {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.gcm-content {
	margin-top: 2rem;
}

.gcm-app [hidden] {
	display: none !important;
}

.gcm-week-heading {
	align-items: center;
	border-bottom: 3px solid var(--gcm-gold);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	padding-bottom: 0.9rem;
}

.gcm-week-heading h3 {
	color: var(--gcm-navy);
	font-size: clamp(1.2rem, 3vw, 1.55rem);
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

.gcm-week-heading__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.gcm-faithful-viewer {
	background: var(--gcm-white);
	border: 2px solid var(--gcm-gold);
	border-radius: 5px;
	box-shadow: none;
	overflow: hidden;
}

.gcm-faithful-viewer__banner {
	align-items: center;
	background-color: var(--gcm-navy);
	background-image: repeating-linear-gradient(135deg, transparent 0, transparent 18px, rgba(201, 162, 74, 0.12) 18px, rgba(201, 162, 74, 0.12) 20px);
	color: var(--gcm-white);
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr) auto;
	min-height: 70px;
	padding: 0.9rem 1.25rem;
}

.gcm-faithful-viewer__identity {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	min-width: 0;
}

.gcm-faithful-viewer__banner.is-horizontal-center .gcm-faithful-viewer__identity {
	justify-content: center;
}

.gcm-faithful-viewer__banner.is-horizontal-right .gcm-faithful-viewer__identity {
	justify-content: flex-end;
}

.gcm-faithful-viewer__banner.is-vertical-start .gcm-faithful-viewer__identity {
	align-items: flex-start;
}

.gcm-faithful-viewer__banner.is-vertical-end .gcm-faithful-viewer__identity {
	align-items: flex-end;
}

.gcm-faithful-viewer__banner strong {
	color: var(--gcm-gold);
	font-size: clamp(1rem, 2.4vw, 1.35rem);
	letter-spacing: 0.025em;
	text-align: right;
}

.gcm-faithful-viewer__site {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gcm-faithful-viewer__banner-image {
	display: block;
	height: auto;
	max-width: min(var(--gcm-banner-image-width, 120px), 45vw);
	object-fit: contain;
	width: var(--gcm-banner-image-width, 120px);
}

.gcm-faithful-viewer__banner-text {
	font-family: var(--gcm-banner-font, inherit);
	font-size: var(--gcm-banner-text-size, 16px);
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.35;
	transform: translateY(var(--gcm-banner-text-offset, 0));
}

.gcm-faithful-viewer__document {
	background: var(--gcm-week-surface);
	cursor: default;
	overflow: hidden;
	padding: clamp(0.75rem, 3vw, 2rem);
	position: relative;
	text-align: center;
	user-select: none;
}

.gcm-faithful-viewer__document::after {
	content: "";
	inset: 0;
	position: absolute;
	z-index: 2;
}

.gcm-faithful-viewer__document img {
	background: var(--gcm-white);
	border: 1px solid var(--gcm-line);
	display: block;
	height: var(--gcm-custom-document-height, 760px);
	max-width: 100%;
	object-fit: contain;
	pointer-events: none;
	width: 100%;
}

.gcm-faithful-viewer__pdf {
	background: var(--gcm-white);
	border: 1px solid var(--gcm-line);
	display: block;
	height: var(--gcm-custom-document-height, 760px);
	pointer-events: none;
	width: 100%;
}

.gcm-app.is-document-height-percent .gcm-faithful-viewer__document img,
.gcm-app.is-document-height-percent .gcm-faithful-viewer__pdf {
	aspect-ratio: 100 / var(--gcm-custom-document-height-ratio, 71);
	height: auto;
}

.gcm-week-table-wrap {
	border: 1px solid var(--gcm-line);
	border-radius: 5px;
	overflow-x: auto;
}

.gcm-week-table {
	border-collapse: collapse;
	margin: 0;
	min-width: 970px;
	table-layout: fixed;
	width: 100%;
}

.gcm-week-table th,
.gcm-week-table td {
	border-bottom: 1px solid var(--gcm-line);
	border-right: 1px solid var(--gcm-line);
	padding: 0.8rem;
	text-align: left;
	vertical-align: top;
}

.gcm-week-table tr:last-child th,
.gcm-week-table tr:last-child td {
	border-bottom: 0;
}

.gcm-week-table th:last-child,
.gcm-week-table td:last-child {
	border-right: 0;
}

.gcm-week-table thead th {
	background: var(--gcm-surface);
	border-top: 2px solid var(--gcm-gold);
	color: var(--gcm-navy);
}

.gcm-week-table thead th strong,
.gcm-week-table thead th time,
.gcm-item-name,
.gcm-allergen-text {
	display: block;
}

.gcm-week-table thead th time {
	color: var(--gcm-muted);
	font-size: 0.82rem;
	font-weight: 500;
}

.gcm-week-table__category {
	color: var(--gcm-navy);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	width: 130px;
}

.gcm-week-table td {
	font-size: 0.9rem;
}

.gcm-week-table .is-today {
	box-shadow: inset 0 4px 0 var(--gcm-gold);
}

.gcm-allergen-text {
	color: #8b3c12;
	font-size: 0.78rem;
	font-style: italic;
	margin-top: 0.25rem;
}

.gcm-filtered-label {
	color: var(--gcm-muted);
	font-size: 0.78rem;
	font-style: italic;
}

.gcm-closed {
	color: var(--gcm-muted);
	font-style: italic;
}

.gcm-day-cards {
	display: none;
	gap: 1rem;
}

.gcm-content.is-day .gcm-day-cards {
	display: grid;
	grid-template-columns: minmax(0, 720px);
	justify-content: center;
}

.gcm-day-card {
	background: var(--gcm-white);
	border: 1px solid var(--gcm-line);
	border-radius: 5px;
	box-shadow: none;
	overflow: hidden;
}

.gcm-day-card > header {
	align-items: baseline;
	background: var(--gcm-white);
	border-bottom: 3px solid var(--gcm-gold);
	color: var(--gcm-navy);
	display: flex;
	justify-content: space-between;
	padding: 0.8rem 1rem;
}

.gcm-day-card > header h4 {
	color: inherit;
	font-size: 1.2rem;
	margin: 0;
}

.gcm-day-card.is-today {
	border-color: var(--gcm-gold);
	box-shadow: 0 0 0 1px var(--gcm-gold);
}

.gcm-day-card.is-today > header::after {
	background: var(--gcm-gold);
	border-radius: 3px;
	color: var(--gcm-navy);
	content: "Aujourd’hui";
	font-size: 0.72rem;
	font-weight: 700;
	margin-left: 0.5rem;
	padding: 0.2rem 0.5rem;
}

.gcm-meal {
	border-bottom: 1px solid var(--gcm-line);
	display: grid;
	gap: 0.35rem;
	grid-template-columns: minmax(110px, 0.35fr) 1fr;
	padding: 0.75rem 1rem;
}

.gcm-meal:last-child {
	border-bottom: 0;
}

.gcm-meal h5 {
	color: var(--gcm-navy);
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	margin: 0;
	text-transform: uppercase;
}

.gcm-meal p {
	margin: 0;
}

.gcm-day-card__message,
.gcm-filter-empty {
	color: var(--gcm-muted);
	padding: 1rem;
}

.gcm-note {
	color: var(--gcm-muted);
	font-size: 0.85rem;
	font-style: italic;
	text-align: center;
}

.gcm-empty,
.gcm-error {
	background: var(--gcm-surface);
	border-left: 4px solid var(--gcm-gold);
	border-radius: 3px;
	padding: 1.25rem;
}

.gcm-empty h3 {
	color: var(--gcm-navy);
	margin: 0 0 0.35rem;
}

.gcm-empty p {
	margin: 0;
}

@media (max-width: 1050px) {
	.gcm-controls {
		grid-template-columns: 1fr 1.4fr;
	}

	.gcm-view-actions {
		grid-column: 1 / -1;
	}

	.gcm-filters__body {
		grid-template-columns: 1fr 1fr;
	}

	.gcm-allergens {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.gcm-app {
		font-size: 16px;
		margin: 2rem auto;
	}

	.gcm-controls {
		align-items: stretch;
		border-radius: 5px;
		grid-template-columns: 1fr;
		padding: 1rem;
	}

	.gcm-week-nav {
		display: grid;
		grid-template-columns: 44px 1fr 44px;
	}

	.gcm-week-nav label {
		grid-column: 2;
		grid-row: 1;
	}

	.gcm-week-nav [data-action="previous"] {
		grid-column: 1;
		grid-row: 1;
		margin-top: 1.45rem;
	}

	.gcm-week-nav [data-action="next"] {
		grid-column: 3;
		grid-row: 1;
		margin-top: 1.45rem;
	}

	.gcm-week-nav [data-action="today"] {
		grid-column: 1 / -1;
	}

	.gcm-view-actions {
		grid-column: auto;
	}

	.gcm-view-actions > * {
		flex: 1;
	}

	.gcm-filters__body {
		grid-template-columns: 1fr;
	}

	.gcm-allergens {
		grid-column: auto;
	}

	.gcm-week-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.gcm-week-heading__actions .gcm-button {
		flex: 1;
	}

	.gcm-faithful-viewer__banner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.gcm-faithful-viewer__banner strong {
		text-align: center;
	}

	.gcm-week-table-wrap {
		display: none;
	}

	.gcm-content.is-week .gcm-day-cards {
		display: grid;
	}

	.gcm-meal {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.gcm-button,
	.gcm-site-switcher span {
		transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
	}
}

@media print {
	.gcm-app {
		color: #000;
		font-size: 10pt;
		margin: 0;
		max-width: none;
	}

	.gcm-controls,
	.gcm-filters,
	.gcm-status,
	.gcm-week-heading__actions {
		display: none !important;
	}

	.gcm-week-heading {
		border-color: #000;
	}

	.gcm-week-table-wrap {
		border: 0;
		display: block !important;
		overflow: visible;
	}

	.gcm-week-table {
		min-width: 0;
	}

	.gcm-week-table th,
	.gcm-week-table td {
		border-color: #777;
		padding: 5pt;
	}

	.gcm-content.is-day .gcm-day-cards {
		display: grid;
	}

	.gcm-day-card {
		box-shadow: none;
		break-inside: avoid;
	}

	.gcm-faithful-viewer {
		border: 0;
	}

	.gcm-faithful-viewer__banner {
		display: none;
	}

	.gcm-faithful-viewer__document {
		background: #fff;
		padding: 0;
	}

	.gcm-faithful-viewer__document::after {
		display: none;
	}

	.gcm-faithful-viewer__document img,
	.gcm-faithful-viewer__pdf {
		height: auto;
	}
}
