/* AutoAcadefront — template site portail SIS */
:root {
	--ink:    #0A0A0A;
	--ink2:   #1C1C1E;
	--muted:  #8A8A8E;
	--line:   #E5E5EA;
	--bg:     #FAFAF8;
	--white:  #FFFFFF;
	--red:    #C01F1F;
	--red-bg: #FFF0EF;
	--r:      10px;
}

* { box-sizing: border-box; }

body.autoacadefront-tpl {
	margin: 0;
	background: var(--bg);
	color: var(--ink2);
	font-family: 'Inter', system-ui, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.aaf-header {
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.aaf-header-top {
	max-width: 1320px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.aaf-header-nav {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px 12px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.aaf-nav-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--white);
	color: var(--ink2);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}

.aaf-nav-toggle:hover {
	border-color: var(--red);
	color: var(--red);
}

.aaf-nav-toggle-icon {
	width: 16px;
	height: 2px;
	background: currentColor;
	position: relative;
	display: inline-block;
}

.aaf-nav-toggle-icon::before,
.aaf-nav-toggle-icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 16px;
	height: 2px;
	background: currentColor;
}

.aaf-nav-toggle-icon::before { top: -5px; }
.aaf-nav-toggle-icon::after { top: 5px; }

.aaf-nav {
	flex: 1;
	min-width: 0;
}

.aaf-nav-module {
	width: 100%;
}

.aaf-nav ul,
.aaf-nav .mod-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aaf-nav > .aaf-nav-module > ul,
.aaf-nav .mod-menu.mod-list,
.aaf-nav .mod-menu > ul,
.aaf-nav ul.nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.aaf-nav li {
	margin: 0;
	position: relative;
}

.aaf-nav > .aaf-nav-module > ul > li > a,
.aaf-nav .mod-menu > ul > li > a,
.aaf-nav ul.nav > li > a,
.aaf-nav li > a {
	display: block;
	padding: 0.55rem 0.85rem;
	border-radius: 8px;
	color: var(--ink2);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background .15s, color .15s;
}

.aaf-nav a:hover {
	background: var(--bg);
	color: var(--ink);
}

.aaf-nav li.active > a,
.aaf-nav li.current > a,
.aaf-nav a.current,
.aaf-nav a[aria-current="page"] {
	background: var(--red);
	color: var(--white);
}

.aaf-nav li ul,
.aaf-nav .mod-menu ul ul {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 220px;
	padding: 6px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(10, 10, 10, .08);
	flex-direction: column;
	align-items: stretch;
	z-index: 20;
}

.aaf-nav li:hover > ul,
.aaf-nav li:focus-within > ul {
	display: flex;
}

.aaf-nav li ul a {
	white-space: normal;
}

.aaf-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
}

.aaf-logo img {
	height: 42px;
	width: auto;
}

.aaf-wordmark {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 900;
	font-size: 18px;
	color: var(--ink);
	letter-spacing: -0.01em;
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.aaf-wordmark em { font-style: normal; }

.aaf-wordmark small {
	font-family: 'Inter', system-ui, sans-serif;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--red);
}

.aaf-account {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13.5px;
}

.aaf-username {
	font-weight: 600;
	color: var(--ink2);
}

.aaf-logout,
.aaf-back {
	text-decoration: none;
	color: var(--ink2);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 6px 12px;
	transition: background .15s, color .15s, border-color .15s;
}

.aaf-logout:hover,
.aaf-back:hover {
	background: var(--red);
	color: var(--white);
	border-color: var(--red);
}

.aaf-main {
	flex: 1;
	padding: 2rem 24px 3rem;
}

.aaf-container {
	max-width: 1000px;
	margin: 0 auto;
}

.aaf-body {
	max-width: 1000px;
	margin: 0 auto;
}

.aaf-body.aaf-body--right {
	max-width: 1320px;
	display: grid;
	grid-template-columns: 1fr 240px;
	gap: 1.5rem;
	align-items: start;
}

.aaf-body.aaf-body--right .aaf-container {
	max-width: none;
	margin: 0;
}

.aaf-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 2rem 2.25rem;
	box-shadow: 0 1px 3px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.05);
}

.aaf-card h1, .aaf-card h2 {
	font-family: 'Fraunces', Georgia, serif;
	color: var(--ink);
}

.aaf-card .form-control,
.aaf-card input[type="text"],
.aaf-card input[type="password"],
.aaf-card input[type="email"] {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
	font-family: inherit;
}

.aaf-card .btn,
.aaf-card button:not(.aaf-side button),
.aaf-card input[type="submit"] {
	background: var(--red);
	color: var(--white);
	border: none;
	border-radius: 8px;
	padding: 0.55rem 1.2rem;
	font-weight: 500;
	transition: opacity .15s;
}

.aaf-card .btn:hover,
.aaf-card button:hover,
.aaf-card input[type="submit"]:hover {
	opacity: .85;
	color: var(--white);
}

.aaf-card .btn-secondary,
.aaf-card .btn-light {
	background: var(--white);
	color: var(--ink2);
	border: 1px solid var(--line);
}

.aaf-card a {
	color: var(--red);
}

.aaf-card fieldset {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 1rem 1.25rem;
}

.aaf-side {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 1.1rem;
}

.aaf-side .moduletable + .moduletable { margin-top: 1.25rem; }

.aaf-side h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 0.95rem;
	margin: 0 0 0.75rem;
	color: var(--ink);
}

.aaf-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.aaf-side li { margin: 0; }
.aaf-side a { display: block; padding: 0.5rem 0.65rem; border-radius: 8px; color: var(--ink2); text-decoration: none; font-size: 0.9rem; transition: background .15s, color .15s; }
.aaf-side a:hover { background: var(--bg); }
.aaf-side a.current, .aaf-side li.current > a { background: var(--red); color: var(--white); }

.autoacademie-portal h1,
.autoacademie-portal h2 {
	font-family: 'Fraunces', Georgia, serif;
}

.aaf-footer {
	background: var(--ink);
	color: var(--white);
	margin-top: auto;
}

.aaf-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.25rem 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12.5px;
	color: #d8d8d8;
	text-align: center;
}

.aaf-footer-inner span:first-child {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 700;
	font-size: 14px;
	color: var(--white);
}

@media (max-width: 900px) {
	.aaf-header-nav {
		flex-direction: column;
		align-items: stretch;
	}

	.aaf-nav-toggle {
		display: inline-flex;
		align-self: flex-start;
	}

	.aaf-nav {
		display: none;
		width: 100%;
		padding: 8px 0 4px;
	}

	.aaf-nav.is-open {
		display: block;
	}

	.aaf-nav > .aaf-nav-module > ul,
	.aaf-nav .mod-menu.mod-list,
	.aaf-nav .mod-menu > ul,
	.aaf-nav ul.nav {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.aaf-nav li ul,
	.aaf-nav .mod-menu ul ul {
		position: static;
		display: none;
		box-shadow: none;
		border: none;
		padding-left: 12px;
		margin-top: 2px;
	}

	.aaf-nav li.aaf-submenu-open > ul {
		display: flex;
	}

	.aaf-body.aaf-body--right {
		grid-template-columns: 1fr;
		max-width: 1000px;
	}
}

@media (max-width: 640px) {
	.aaf-header-top { flex-direction: column; align-items: flex-start; }
	.aaf-account { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
	.aaf-card { padding: 1.25rem; border-radius: 12px; }
}
