@charset "utf-8";

:root{
	--bg: #f5efe6;
	--bg-accent: #efe3d2;
	--surface: rgba(255, 252, 247, 0.88);
	--surface-strong: #fffdfa;
	--surface-muted: #f2ebe2;
	--line: rgba(74, 60, 49, 0.12);
	--line-strong: rgba(74, 60, 49, 0.22);
	--text: #2f241d;
	--text-soft: #6e5a4b;
	--brand: #0f766e;
	--brand-strong: #0b5c56;
	--brand-pale: #d8efec;
	--accent: #d97706;
	--danger: #b42318;
	--success: #166534;
	--shadow-soft: 0 16px 40px rgba(76, 57, 39, 0.08);
	--shadow-card: 0 12px 28px rgba(70, 52, 34, 0.09);
	--radius-lg: 28px;
	--radius-md: 18px;
	--radius-sm: 12px;
}

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html{
	scroll-behavior: smooth;
}

body{
	background:
		radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 34%),
		radial-gradient(circle at 85% 20%, rgba(217, 119, 6, 0.10), transparent 24%),
		linear-gradient(180deg, #fbf8f3 0%, var(--bg) 48%, #f8f3ec 100%);
	color: var(--text);
	font-family: "Aptos", "Segoe UI Variable Display", "Bahnschrift", "Century Gothic", sans-serif;
	font-size: 15px;
	line-height: 1.55;
	min-height: 100vh;
	position: relative;
}

body::before,
body::after{
	content: "";
	position: fixed;
	border-radius: 50%;
	filter: blur(8px);
	z-index: 0;
	pointer-events: none;
}

body::before{
	width: 320px;
	height: 320px;
	top: -110px;
	right: -90px;
	background: rgba(15, 118, 110, 0.10);
}

body::after{
	width: 280px;
	height: 280px;
	bottom: -120px;
	left: -60px;
	background: rgba(217, 119, 6, 0.10);
}

a{
	color: inherit;
}

h2{
	font-size: 1.08rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--text);
	margin-bottom: 12px;
	position: relative;
	padding-left: 16px;
	text-decoration: none;
	font-style: normal;
}

h2::before{
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 2px;
	width: 5px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--brand), #1aa79c);
}

h3{
	font-size: 0.88rem;
}

#header{
	width: 100%;
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 18px 0 0;
	backdrop-filter: blur(14px);
}

#navigation,
#navigation2{
	width: min(1120px, calc(100% - 28px));
	margin-left: auto;
	margin-right: auto;
}

#navigation{
	background: rgba(47, 36, 29, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	box-shadow: var(--shadow-soft);
	padding: 10px 14px;
}

#navigation2{
	margin-top: 10px;
	background: rgba(255, 251, 246, 0.82);
	border: 1px solid rgba(74, 60, 49, 0.08);
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(59, 43, 28, 0.06);
	padding: 8px 12px;
}

#navigation ul,
#navigation2 ul{
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

#navigation li,
#navigation2 li{
	margin-left: 0;
	float: none;
}

#navigation ul li a,
#navigation2 ul li a{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#navigation ul li a{
	color: rgba(255, 251, 247, 0.88);
}

#navigation2 ul li a{
	color: var(--text-soft);
}

#navigation ul li a:hover,
#navigation ul li a:focus-visible{
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	transform: translateY(-1px);
}

#navigation2 ul li a:hover,
#navigation2 ul li a:focus-visible{
	background: var(--brand-pale);
	color: var(--brand-strong);
	transform: translateY(-1px);
}

#corps{
	position: relative;
	z-index: 1;
	width: min(1120px, calc(100% - 28px));
	margin: 24px auto 40px;
	padding: 8px 0 28px;
}

#administration{
	position: relative;
	z-index: 1;
	margin: 80px auto 0;
	width: min(420px, calc(100% - 28px));
	padding: 30px 28px;
	border: 1px solid rgba(74, 60, 49, 0.10);
	border-radius: var(--radius-lg);
	text-align: center;
	background: var(--surface);
	backdrop-filter: blur(12px);
	box-shadow: var(--shadow-soft);
}

#connexion{
	width: 100%;
}

#blanc{
	height: 22px;
	width: 100%;
}

#partie1,
#partie2{
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 22px;
}

#partie1{
	margin-bottom: 22px;
}

#partie2{
	margin-top: 8px;
}

#gauche{
	width: 34%;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

#droite{
	width: 66%;
}

#calendrier{
	width: 100%;
	padding: 22px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid rgba(74, 60, 49, 0.08);
	box-shadow: var(--shadow-card);
	backdrop-filter: blur(12px);
}

#calendrier iframe{
	width: 100%;
	border: 0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: inset 0 0 0 1px rgba(74, 60, 49, 0.08);
}

#tableau{
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 12px;
}

.tableau,
.tableau2,
.tableau3{
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid rgba(74, 60, 49, 0.08);
	border-radius: var(--radius-md);
	background: var(--surface-strong);
	box-shadow: 0 8px 22px rgba(70, 52, 34, 0.05);
	min-height: 72px;
}

.tableau a,
.tableau2 a,
.tableau3 a{
	text-decoration: none;
}

.tableau a:hover,
.tableau2 a:hover,
.tableau3 a:hover{
	color: var(--brand-strong) !important;
}

.tableau4{
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid rgba(74, 60, 49, 0.08);
	box-shadow: var(--shadow-card);
}

.tableau4 div{
	min-height: auto;
}

.tableau4 label{
	width: 210px;
	display: inline-block;
	font-weight: 700;
	color: var(--text-soft);
}

.message-erreur,
.message-succes{
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	margin-bottom: 20px;
	font-weight: 700;
	border: 1px solid transparent;
}

.message-erreur{
	color: var(--danger);
	background: rgba(180, 35, 24, 0.08);
	border-color: rgba(180, 35, 24, 0.12);
}

.message-succes{
	color: var(--success);
	background: rgba(22, 101, 52, 0.08);
	border-color: rgba(22, 101, 52, 0.12);
}

.intro-text{
	margin-bottom: 20px;
	color: var(--text-soft);
	font-size: 1rem;
}

.dashboard-grid{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.dashboard-card{
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 246, 239, 0.96));
	border: 1px solid rgba(74, 60, 49, 0.08);
	padding: 18px 18px 16px;
	border-radius: 22px;
	box-shadow: var(--shadow-card);
}

.dashboard-card h3{
	font-size: 0.77rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-soft);
	margin-bottom: 10px;
}

.dashboard-value{
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text);
}

.shortcut-row{
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 26px;
}

.shortcut-link,
.action-link,
.button{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 16px;
	border-radius: 999px;
	border: 1px solid rgba(74, 60, 49, 0.12);
	background: rgba(255, 253, 249, 0.88);
	color: var(--text);
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(66, 50, 31, 0.05);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.shortcut-link:hover,
.action-link:hover,
.button:hover{
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(66, 50, 31, 0.10);
}

.toolbar{
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 14px;
	margin-bottom: 20px;
	padding: 18px;
	background: var(--surface);
	border: 1px solid rgba(74, 60, 49, 0.08);
	border-radius: 22px;
	box-shadow: var(--shadow-card);
}

.toolbar-group{
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.toolbar-group label{
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--text-soft);
}

.toolbar-actions{
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.toolbar input[type="text"],
.toolbar select{
	min-width: 210px;
}

.button-primary{
	background: linear-gradient(135deg, var(--brand), #14958b);
	color: #ffffff;
	border-color: transparent;
}

.button-danger{
	border-color: rgba(180, 35, 24, 0.18);
	color: var(--danger);
	background: rgba(255, 249, 248, 0.92);
}

.meta-line{
	font-size: 0.9rem;
	color: var(--text-soft);
	margin-bottom: 18px;
}

.empty-state{
	padding: 20px;
	background: var(--surface);
	border: 1px dashed rgba(74, 60, 49, 0.18);
	border-radius: 20px;
	color: var(--text-soft);
}

.pill{
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.priority-high{
	background-color: #ffe0dc;
	color: #992b1f;
}

.priority-medium{
	background-color: #fff1cf;
	color: #8b5e09;
}

.priority-low{
	background-color: #dff5ea;
	color: #216744;
}

.site-secret{
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.toggle-secret{
	padding: 6px 10px;
	font-size: 0.75rem;
}

.inline-form{
	display: inline;
}

.section-title{
	margin-bottom: 16px;
}

input[type="text"],
input[type="password"],
select,
textarea{
	width: min(100%, 100%);
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(74, 60, 49, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--text);
	font-family: inherit;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus{
	border-color: rgba(15, 118, 110, 0.50);
	box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
	background: #ffffff;
}

textarea{
	min-height: 120px;
	resize: vertical;
}

input[type="submit"],
input[type="reset"],
button{
	padding: 11px 16px;
	border: 1px solid rgba(74, 60, 49, 0.12);
	border-radius: 999px;
	background: rgba(255, 253, 249, 0.95);
	color: var(--text);
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover{
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(66, 50, 31, 0.08);
}

input[type="radio"]{
	margin-right: 6px;
	accent-color: var(--brand);
}

@media (max-width: 980px){
	#header{
		padding-top: 12px;
	}

	#navigation,
	#navigation2,
	#corps,
	#tableau,
	.tableau,
	.tableau2,
	.tableau3{
		width: 100%;
	}

	.dashboard-grid{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#partie1,
	#partie2{
		flex-direction: column;
	}

	#gauche,
	#droite{
		width: 100%;
	}
}

@media (max-width: 760px){
	#header{
		position: static;
		backdrop-filter: none;
	}

	#corps{
		margin-top: 18px;
	}

	#navigation,
	#navigation2{
		border-radius: 26px;
		padding: 12px;
	}

	#navigation ul,
	#navigation2 ul{
		flex-direction: column;
		align-items: stretch;
	}

	#navigation ul li a,
	#navigation2 ul li a,
	.shortcut-link,
	.action-link,
	.button,
	input[type="submit"],
	input[type="reset"],
	button{
		width: 100%;
	}

	#administration{
		margin-top: 28px;
		padding: 24px 18px;
	}

	#partie1,
	#partie2,
	.tableau,
	.tableau2,
	.tableau3,
	.toolbar,
	.shortcut-row,
	.toolbar-actions{
		flex-direction: column;
		gap: 12px;
	}

	.tableau > div,
	.tableau2 > div,
	.tableau3 > div{
		width: 100% !important;
	}

	.tableau4{
		padding: 18px;
	}

	.tableau4 label{
		display: block;
		width: 100%;
		margin-bottom: 6px;
	}

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

	#calendrier{
		padding: 16px;
	}

	#calendrier iframe{
		height: 500px;
	}
}
