@font-face {
	font-family: Quicksand;
	src: url('/fonts/QuicksandLighter.ttf') format('truetype');
	font-weight: 300;
}

@font-face {
	font-family: Quicksand;
	src: url('/fonts/Quicksand.ttf') format('truetype');
	font-weight: 400;
}

@font-face {
	font-family: Quicksand;
	src: url('/fonts/QuicksandBold.ttf') format('truetype');
	font-weight: 700;
}

@font-face {
	font-family: Quicksand;
	src: url('/fonts/QuicksandBolder.ttf') format('truetype');
	font-weight: 900;
}

@font-face {
	font-family: Starlights;
	src: url('/fonts/Starlights.ttf') format('truetype');
	font-weight: 400;
}

:root {
	--page-gutter: 20px;
	--ink: #442c35;
	--muted: #6d6673;
	--rose: #b7667c;
	--rose-soft: #f7d6df;
	--rose-pale: #fff2f5;
	--sage: #6f8d74;
	--sage-soft: #dce9dc;
	--sea: #4f7f9d;
	--sea-soft: #d8eaf0;
	--butter: #fff7d8;
	--paper: #fffaf6;
	--line: #ead5dd;
	--shadow: rgba(68, 44, 53, 0.14);
}

* {
	box-sizing: border-box;
	letter-spacing: 0;
}

body {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: Quicksand, sans-serif;
	font-weight: 400;
	color: var(--ink);
	background: linear-gradient(180deg, #fffaf6 0%, #f7fbf8 46%, #fdf7ef 100%);
	caret-color: transparent;
}

[hidden] {
	display: none !important;
}

input,
textarea {
	caret-color: currentColor;
}

a {
	color: inherit;
}

.page-container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 var(--page-gutter);
	width: 100%;
}

.site-header {
	background-color: #f1c8d4;
	color: var(--ink);
}

.site-nav {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 80px;
	margin: 0;
	padding: 10px 20px;
	background-image:
		linear-gradient(90deg, rgba(255, 250, 246, 0.92), rgba(255, 242, 245, 0.72) 44%, rgba(216, 234, 240, 0.62)),
		url('/header.png');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	z-index: 20;
	box-shadow: 0 8px 26px rgba(68, 44, 53, 0.10);
}

h1 {
	position: relative;
	width: max-content;
	max-width: 48%;
	margin: 0;
	padding: 8px 24px 0 22px;
	font-family: Starlights, Quicksand, sans-serif;
	font-size: 54px;
	font-weight: bold;
	line-height: 0.82;
	color: #8f3f58;
	text-shadow: 0 2px 0 rgba(255, 255, 255, 0.82);
}

h1 a {
	color: inherit;
	text-decoration: none;
}

#menu {
	display: flex;
	align-items: center;
	margin: 0 16px 0 auto;
	padding: 0;
	gap: 12px;
	list-style: none;
	z-index: 21;
}

#menu li a,
.page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid rgba(183, 102, 124, 0.24);
	border-radius: 7px;
	background: rgba(255, 250, 246, 0.82);
	color: #744052;
	font: inherit;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#menu li a:hover,
.page-link:hover {
	background: #b7667c;
	border-color: #b7667c;
	color: #fff;
	transform: translateY(-1px);
}

.login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 1px solid rgba(183, 102, 124, 0.24);
	border-radius: 7px;
	background: rgba(255, 250, 246, 0.82);
	text-decoration: none;
}

.login:hover {
	background: #b7667c;
}

.nav-icon {
	width: 27px;
	height: 27px;
	color: #8f3f58;
}

.login:hover .nav-icon {
	color: #fff;
}

.hamburger {
	display: none;
	width: 50px;
	height: 50px;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	background: rgba(255, 250, 246, 0.82);
	border: 1px solid rgba(183, 102, 124, 0.24);
	border-radius: 7px;
}

#burgericon {
	width: 32px;
	height: 24px;
	color: #8f3f58;
}

#burgericon rect {
	fill: currentColor;
}

.icon .frstbar,
.icon .scndbar,
.icon .thrdbar {
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.icon .frstbar {
	transform-origin: 8px 18px;
}

.icon .thrdbar {
	transform-origin: 4px 20px;
}

#menu-toggle {
	display: none;
}

main {
	min-height: calc(100vh - 150px);
}

.home-hero {
	padding: 54px 0 42px;
	background:
		linear-gradient(135deg, rgba(255, 242, 245, 0.96), rgba(247, 251, 248, 0.88)),
		linear-gradient(180deg, #fffaf6, #f7fbf8);
	border-bottom: 1px solid rgba(111, 141, 116, 0.18);
}

.hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
	gap: 30px;
	align-items: end;
}

.hero-copy h2,
.section-heading h2,
.private-layout h2 {
	margin: 0;
	color: #633449;
	font-size: 2.05rem;
	line-height: 1.12;
	font-weight: 900;
}

.hero-copy h2 {
	max-width: 740px;
}

.eyebrow {
	margin: 0 0 10px;
	color: var(--sage);
	font-size: 0.86rem;
	font-weight: 900;
	text-transform: uppercase;
}

.lead {
	max-width: 690px;
	margin: 18px 0 0;
	color: #5e5961;
	font-size: 1.12rem;
	line-height: 1.55;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.page-link-primary {
	background: #b7667c;
	border-color: #b7667c;
	color: #fff;
}

.page-link-secondary {
	background: rgba(255, 255, 255, 0.74);
	color: #6f4c60;
}

.hero-aside,
.manager-status {
	border: 1px solid rgba(183, 102, 124, 0.24);
	border-radius: 8px;
	background: rgba(255, 250, 246, 0.86);
	box-shadow: 0 16px 36px var(--shadow);
	padding: 22px;
}

.aside-title {
	margin: 0 0 8px;
	font-weight: 900;
	color: #8f3f58;
}

.hero-aside p:last-child,
.manager-status p:last-child {
	margin-bottom: 0;
}

.section-band {
	padding: 44px 0;
}

.modules-band {
	background: linear-gradient(180deg, #f7fbf8, #fffaf6);
}

.section-heading {
	max-width: 720px;
	margin-bottom: 24px;
}

.section-heading p:last-child,
.private-layout p,
.manager-layout p {
	color: var(--muted);
	line-height: 1.55;
}

.module-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.module-card {
	display: flex;
	flex-direction: column;
	min-height: 250px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--paper);
	box-shadow: 0 12px 28px rgba(68, 44, 53, 0.08);
}

.module-card-sangliers {
	border-color: rgba(111, 141, 116, 0.45);
	background: linear-gradient(180deg, #fbfff8, #fffaf6);
}

.module-card-recettes {
	border-color: rgba(183, 102, 124, 0.35);
	background: linear-gradient(180deg, #fff7fb, #fffaf6);
}

.module-card-planning {
	border-color: rgba(79, 127, 157, 0.36);
	background: linear-gradient(180deg, #f5fbff, #fffaf6);
}

.module-card-photos {
	border-color: rgba(239, 184, 88, 0.42);
	background: linear-gradient(180deg, #fffdf0, #fffaf6);
}

.module-card-ia {
	border-color: rgba(111, 141, 116, 0.34);
	background: linear-gradient(180deg, #f6fbfb, #fffaf6);
}

.module-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.module-kicker {
	margin: 0;
	color: var(--sage);
	font-size: 0.82rem;
	font-weight: 900;
	text-transform: uppercase;
}

.module-status,
.module-visibility {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	border-radius: 999px;
	background: var(--sea-soft);
	color: #365d72;
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1.1;
	padding: 7px 9px;
}

.module-card h3 {
	margin: 0;
	color: #633449;
	font-size: 1.28rem;
	line-height: 1.18;
}

.module-description {
	flex: 1;
	margin: 14px 0 18px;
	color: #5e5961;
	line-height: 1.45;
}

.module-visibility {
	background: var(--rose-soft);
	color: #7a3d52;
}

.private-band {
	background: linear-gradient(135deg, #fff2f5, #f0f8f0 58%, #edf7fb);
	border-top: 1px solid rgba(183, 102, 124, 0.16);
}

.private-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
	gap: 30px;
	align-items: start;
}

.private-points {
	display: grid;
	gap: 12px;
}

.private-points p {
	margin: 0;
	padding: 15px;
	border-left: 4px solid var(--rose);
	background: rgba(255, 250, 246, 0.72);
	border-radius: 0 8px 8px 0;
}

.manager-band {
	background: linear-gradient(135deg, #fffaf6, #fff2f5 50%, #edf7fb);
	min-height: 56vh;
}

.manager-layout {
	max-width: 760px;
}

.manager-message {
	margin-top: 0;
	font-weight: 700;
	color: #633449;
}

.manager-module-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
}

.manager-module-item {
	display: block;
	padding: 16px;
	border: 1px solid rgba(183, 102, 124, 0.22);
	border-radius: 8px;
	background: rgba(255, 250, 246, 0.76);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.manager-module-item:hover {
	border-color: rgba(183, 102, 124, 0.55);
	box-shadow: 0 14px 28px rgba(68, 44, 53, 0.12);
	transform: translateY(-1px);
}

.manager-module-item h3 {
	margin: 0 0 8px;
	color: #633449;
	font-size: 1.08rem;
}

.manager-module-item p {
	margin: 0 0 12px;
	color: var(--muted);
	line-height: 1.4;
}

.manager-module-item span,
.status-pill {
	display: inline-flex;
	width: fit-content;
	padding: 6px 9px;
	border-radius: 999px;
	background: var(--sea-soft);
	color: #365d72;
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1.1;
}

.menu-user a {
	color: #365d72 !important;
}

.loading-state {
	margin: 0;
	color: var(--muted);
}

.alert {
	margin: 14px 0;
	padding: 14px 16px;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: var(--paper);
}

.alert-error {
	border-color: #d55b5b;
	background: #fff0f0;
	color: #8d2525;
}

.login-band {
	min-height: 56vh;
	background: linear-gradient(135deg, #fffaf6, #fff2f5 55%, #f0f8f0);
}

.auth-layout {
	display: flex;
	justify-content: center;
}

.auth-form {
	width: min(100%, 430px);
	padding: 26px;
	border: 1px solid rgba(183, 102, 124, 0.24);
	border-radius: 8px;
	background: rgba(255, 250, 246, 0.88);
	box-shadow: 0 16px 36px var(--shadow);
}

.auth-form-static {
	text-align: center;
}

.auth-form h2 {
	margin: 0 0 20px;
	color: #633449;
	font-size: 1.7rem;
	line-height: 1.15;
}

.auth-form label,
.form-grid label {
	display: block;
	margin: 14px 0 7px;
	color: #5c4150;
	font-weight: 800;
}

.auth-form input,
.form-grid input {
	width: 100%;
	min-height: 43px;
	padding: 9px 11px;
	border: 1px solid rgba(183, 102, 124, 0.26);
	border-radius: 7px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}

.auth-form button {
	width: 100%;
	margin-top: 20px;
}

.users-layout {
	max-width: 1220px;
}

.users-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
	gap: 20px;
	align-items: start;
}

.users-list-section,
.users-form-section {
	padding: 18px;
	border: 1px solid rgba(183, 102, 124, 0.20);
	border-radius: 8px;
	background: rgba(255, 250, 246, 0.78);
	box-shadow: 0 12px 28px rgba(68, 44, 53, 0.08);
}

.surface-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.surface-heading h3 {
	margin: 0;
	color: #633449;
	font-size: 1.18rem;
}

.table-wrap {
	width: 100%;
	overflow-x: auto;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.data-table th,
.data-table td {
	padding: 12px;
	border-bottom: 1px solid #f0dfe5;
	text-align: left;
	vertical-align: top;
}

.data-table th {
	background: #fff2f5;
	color: #633449;
	font-size: 0.9rem;
	font-weight: 900;
}

.data-table td span {
	color: var(--muted);
}

.table-actions {
	text-align: right !important;
	white-space: nowrap;
}

.status-pill {
	margin: 0 4px 4px 0;
}

.status-pill.is-active {
	background: var(--sage-soft);
	color: #446b49;
}

.status-pill.is-inactive {
	background: #eee;
	color: #626262;
}

.status-pill.is-admin {
	background: var(--rose-soft);
	color: #7a3d52;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.toggle-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 18px 0;
}

.toggle-row label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	color: #5c4150;
}

.permissions-block {
	margin-top: 18px;
}

.permissions-block h4 {
	margin: 0 0 12px;
	color: #633449;
	font-size: 1rem;
}

.permissions-matrix {
	display: grid;
	gap: 10px;
}

.permission-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid rgba(111, 141, 116, 0.20);
	border-radius: 8px;
	background: #fff;
}

.permission-row p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.35;
}

.permission-row label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	color: #5c4150;
}

.permission-row input,
.toggle-row input {
	width: 18px;
	height: 18px;
	accent-color: var(--rose);
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.site-footer {
	padding: 18px 0 38px;
	background: #fffaf6;
	border-top: 1px solid rgba(183, 102, 124, 0.18);
}

.site-footer-copy {
	margin: 0;
	color: #755463;
	font-size: 0.9rem;
	text-align: center;
}

@media (min-width: 1280px) {
	h1 {
		max-width: none;
		font-size: 62px;
	}
}

@media (max-width: 1023px) {
	.site-nav {
		min-height: 78px;
	}

	.hamburger {
		display: inline-flex;
	}

	h1 {
		flex: 1;
		max-width: none;
		font-size: 45px;
		padding-left: 16px;
	}

	#menu {
		display: block;
		position: absolute;
		top: 82px;
		left: 0;
		width: 0;
		margin: 0;
		padding: 0;
		visibility: hidden;
		opacity: 0;
		background: #fffaf6;
		border: 1px solid rgba(183, 102, 124, 0.18);
		box-shadow: 2px 8px 18px rgba(68, 44, 53, 0.18);
		z-index: 30;
	}

	#menu-toggle:checked ~ #menu {
		visibility: visible;
		opacity: 1;
		width: 260px;
		padding: 10px;
		transition: opacity 0.2s ease;
	}

	#menu-toggle:checked ~ #menu li a {
		justify-content: flex-start;
		width: 100%;
		margin: 6px 0;
		white-space: normal;
	}

	#menu-toggle:checked + label .frstbar {
		transform: translateX(-8px) rotate(45deg);
	}

	#menu-toggle:checked + label .scndbar {
		opacity: 0;
	}

	#menu-toggle:checked + label .thrdbar {
		transform: translateX(4px) rotate(-45deg);
	}

	.hero-layout,
	.private-layout,
	.users-shell {
		grid-template-columns: 1fr;
	}

	.hero-aside {
		max-width: 520px;
	}
}

@media (max-width: 640px) {
	:root {
		--page-gutter: 16px;
	}

	.site-nav {
		padding: 9px 12px;
	}

	h1 {
		font-size: 36px;
		line-height: 0.86;
		padding-right: 10px;
	}

	.login,
	.hamburger {
		width: 44px;
		height: 44px;
	}

	.home-hero {
		padding: 36px 0 34px;
	}

	.hero-copy h2,
	.section-heading h2,
	.private-layout h2 {
		font-size: 1.55rem;
		line-height: 1.16;
	}

	.lead {
		font-size: 1rem;
	}

	.module-grid {
		grid-template-columns: 1fr;
	}

	.surface-heading,
	.permission-row {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.surface-heading {
		display: grid;
	}
}
