:root {
	--bg-start: #1a8cca;
	--bg-end: #de2ee8;
	--header-height: 64px;
	--surface: #fffdf8;
	--surface-soft: #f7f2e7;
	--ink: #2b2a27;
	--muted: #6b675f;
	--brand: #0a5e66;
	--brand-dark: #064148;
	--ring: #d8af57;
	--radius-lg: 18px;
	--radius-md: 12px;
	--shadow: 0 14px 34px rgba(24, 33, 38, 0.14);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background:
		radial-gradient(circle at 12% 10%, rgba(26, 140, 202, 0.34), transparent 42%),
		radial-gradient(circle at 84% 84%, rgba(222, 46, 232, 0.3), transparent 44%),
		linear-gradient(140deg, var(--bg-start), var(--bg-end));
	padding: 22px 14px;
}

#bloc {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 14px;
	row-gap: 18px;
}

#bloc > header {
	grid-column: 1;
	margin: 0;
}

#bloc > nav,
#bloc > ul.nav {
	grid-column: 2;
}

#bloc > section,
#bloc > footer {
	grid-column: 1 / -1;
}

img {
	max-width: 100%;
	height: auto;
	border: none;
	vertical-align: middle;
}

a {
	text-decoration: none;
	color: var(--brand);
	transition: color 0.2s ease;
}

a:visited {
	color: var(--brand-dark);
}

a:hover {
	color: var(--brand-dark);
}

a:focus-visible {
	outline: 3px solid var(--ring);
	outline-offset: 2px;
	border-radius: 6px;
}

nav,
ul.nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

nav a,
ul.nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--header-height);
	padding: 0 10px;
	background: linear-gradient(135deg, #f1f1f1, #dfdfdf);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(34, 34, 34, 0.2);
	box-shadow: 0 8px 16px rgba(16, 16, 16, 0.12);
	color: var(--brand);
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-align: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

nav a:hover,
ul.nav a:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(16, 16, 16, 0.16);
	filter: brightness(0.98);
	color: var(--brand);
}

nav a:visited,
ul.nav a:visited {
	color: var(--brand);
}

nav a[style*="background:silver"],
ul.nav a[style*="background:silver"] {
	background: linear-gradient(135deg, #e2ba67, #c1943c) !important;
	border-color: rgba(114, 72, 18, 0.45);
	color: var(--brand) !important;
	box-shadow: 0 12px 20px rgba(117, 80, 24, 0.22);
}

#logo,
#slideshow,
article,
.side1,
.side2,
.tarif,
.impot,
.contact,
footer {
	background: var(--surface);
	border: 1px solid rgba(34, 31, 26, 0.08);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

#logo,
#slideshow,
article,
aside,
.tarif,
.impot,
.contact,
footer {
	padding: clamp(16px, 3vw, 28px);
}

#logo {
	display: flex;
	justify-content: center;
	align-items: center;
	height: var(--header-height);
	padding: 8px 20px;
	min-width: 300px;
	width: clamp(300px, 36vw, 420px);
	border: 1px solid rgba(34, 34, 34, 0.2);
}

#logo img {
	height: calc(var(--header-height) - 16px);
	width: auto;
	max-width: 220px;
}

#logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mobile-menu {
	display: none;
	position: relative;
}

.mobile-menu summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--header-height);
	padding: 0 14px;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, #f1f1f1, #dfdfdf);
	border: 1px solid rgba(34, 34, 34, 0.2);
	color: var(--brand);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1;
	user-select: none;
}

.mobile-menu summary::-webkit-details-marker {
	display: none;
}

.mobile-menu-list {
	display: grid;
	gap: 6px;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 220px;
	padding: 10px;
	border-radius: 12px;
	background: #fffefc;
	border: 1px solid rgba(34, 34, 34, 0.12);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
	z-index: 30;
}

.mobile-menu-list a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--brand);
	font-weight: 600;
}

.mobile-menu-list a:visited {
	color: var(--brand);
}

.mobile-menu-list a:hover {
	background: #f0f1f3;
}

.mobile-menu-list a[aria-current="page"] {
	background: linear-gradient(135deg, #e2ba67, #c1943c);
	color: var(--brand);
}

#slideshow {
	position: relative;
	width: 100%;
	min-height: 260px;
	overflow: hidden;
	padding: 0;
}

.slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	animation: slideshow-crossfade 24s infinite;
	border-radius: calc(var(--radius-lg) - 4px);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.slide-1 {
	background-image: url("1.jpg");
}

.slide-2 {
	background-image: url("2.jpg");
	animation-delay: 6s;
}

.slide-3 {
	background-image: url("3.jpg");
	animation-delay: 12s;
}

.slide-4 {
	background-image: url("4.jpg");
	animation-delay: 18s;
}

.slide-panel {
	max-width: min(640px, 92%);
	margin: 18px;
	padding: clamp(14px, 2.8vw, 24px);
	background: rgba(255, 255, 255, 0.86);
	border-radius: 14px;
	border: 1px solid rgba(50, 42, 28, 0.12);
	backdrop-filter: blur(1px);
}

.slide-kicker {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7f631a;
}

#slideshow h2 {
	margin: 0 0 10px;
	color: #174b52;
	font-size: clamp(1.1rem, 2.2vw, 1.75rem);
}

#slideshow p {
	margin: 0;
	color: #2e3639;
}

@keyframes slideshow-crossfade {
	0% {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
	12% {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
	27% {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
	42% {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
	100% {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

section.accueil {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	align-items: start;
}

article {
	width: auto;
	height: auto;
	float: none;
	margin: 0;
	text-align: justify;
}

.side1,
.side2 {
	margin: 0;
	height: auto;
	padding: 0;
}

aside {
	height: 100%;
}

.tarif,
.impot,
.contact {
	margin: 0;
	text-align: justify;
}

h1,
h2,
h3,
h4,
h5 {
	margin: 0 0 18px;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	color: var(--brand);
	font-style: normal;
	font-weight: 700;
	line-height: 1.25;
}

h1 {
	font-size: clamp(1.45rem, 2.2vw, 2rem);
}

h2,
h3,
h4,
h5 {
	font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.suiv,
.retour,
.fin {
	margin-top: 30px;
}

ul,
ol {
	padding-left: 1.2rem;
}

.side1 p,
.side2 p {
	margin: 0.45rem 0;
	text-align: center;
}

.side1 a {
	font-weight: 600;
	color: #4f5d4f;
}

.formulaire {
	margin-top: 28px;
	margin-bottom: 16px;
}

input[type="text"],
textarea,
input[type="email"],
input[type="tel"] {
	width: min(100%, 620px);
	padding: 12px 14px;
	margin: 8px 0;
	border: 1px solid #c6c3bb;
	border-radius: 10px;
	font: inherit;
	background: #fffefb;
	color: var(--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
	min-height: 170px;
	max-height: 340px;
	resize: vertical;
}

input[type="text"]:focus,
textarea:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(10, 94, 102, 0.2);
	outline: none;
}

input[type="submit"] {
	padding: 11px 22px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #0e737e, #0a5e66);
	color: #ffffff;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 16px rgba(10, 94, 102, 0.25);
}

input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 18px rgba(10, 94, 102, 0.3);
}

.illustration {
	float: right;
	margin: 0 0 16px 18px;
	max-width: 34%;
}

footer {
	color: var(--muted);
	font-size: 0.9rem;
	text-align: center;
}

.ppage {
	padding: 0;
	margin: 0;
}

.ppage a {
	color: inherit;
	font-weight: 600;
}

@media (max-width: 1024px) {
	#bloc {
		max-width: 940px;
	}

	section.accueil {
		grid-template-columns: 1fr;
	}

	.side1,
	.side2 {
		min-height: auto;
	}
}

@media (max-width: 720px) {
	body {
		padding: 16px 10px;
	}

	#bloc {
		grid-template-columns: 1fr;
	}

	#bloc > header,
	#bloc > nav,
	#bloc > ul.nav,
	#bloc > section,
	#bloc > footer {
		grid-column: 1;
	}

	#logo {
		min-width: 0;
		width: 100%;
	}

	#bloc > nav,
	#bloc > ul.nav {
		display: none;
	}

	.mobile-menu {
		display: block;
	}

	#slideshow {
		min-height: 290px;
	}

	.slide-panel {
		margin: 12px;
		max-width: calc(100% - 24px);
	}

	nav,
	ul.nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	nav a,
	ul.nav a {
		min-height: var(--header-height);
		font-size: 0.95rem;
	}

	.illustration {
		float: none;
		margin: 0 auto 18px;
		max-width: min(270px, 80%);
		display: block;
	}

	input[type="text"],
	textarea,
	input[type="email"],
	input[type="tel"] {
		width: 100%;
	}
}

@media (max-width: 480px) {
	nav,
	ul.nav {
		grid-template-columns: 1fr;
	}

	#logo,
	#slideshow,
	article,
	aside,
	.tarif,
	.impot,
	.contact,
	footer {
		padding: 14px;
	}
}