@font-face {
	font-family: Couture;
	src: url("../fonts/couture-bld.otf") format("opentype");
}

:root {
	--green: #7a8670;
	--green-dark: #5f6a56;
	--black: rgb(7, 7, 7);
	--panel: rgba(255, 255, 255, 0.746);
	--text: #222;
	--radius: 12px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	--max: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 112.5%; /* 18px base: most visitors are older, keep everything easy to read */
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--black);
	color: var(--text);
	font-family: "Roboto", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	overflow-x: hidden;
}

/* background photo, fixed and darkened so content stays readable */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: linear-gradient(rgba(7, 7, 7, 0.55), rgba(7, 7, 7, 0.75)), url("../img/bkg2.jpg") center / cover no-repeat;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
}

main {
	flex: 1;
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 16px 80px;
}

/* ---------- Top bar (permanence décès) ---------- */

.topbar {
	background-color: var(--green);
	color: #fff;
	font-size: 0.9rem;
	text-align: center;
	padding: 6px 16px;
}
.topbar strong {
	font-weight: 700;
	margin-right: 0.5rem;
}
.topbar a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	margin: 0 0.35rem;
}
.topbar a:hover {
	text-decoration: underline;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(7, 7, 7, 0.88);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--green);
}
.site-header__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.site-header__logo {
	flex-shrink: 0;
}
.site-header__logo img {
	height: 64px;
	width: auto;
	max-width: none;
	transition: transform 300ms ease;
}
.site-header__logo:hover img {
	transform: scale(1.06);
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
}
.site-nav a {
	display: block;
	padding: 0.5rem 0.6rem;
	color: var(--green);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 6px;
	transition: color 200ms ease, background-color 200ms ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: #fff;
}
.site-nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--green);
	text-decoration-thickness: 3px;
	text-underline-offset: 8px;
}
.site-nav .site-nav__cta {
	background-color: var(--green);
	color: #fff;
	margin-left: 0.5rem;
}
.site-nav .site-nav__cta:hover {
	background-color: var(--green-dark);
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 4px;
}
.nav-toggle img {
	height: 40px;
	width: 40px;
}
.nav-open .nav-toggle img {
	filter: invert(1); /* close.svg is drawn in black */
}

@media screen and (max-width: 1280px) {
	.nav-toggle {
		display: block;
	}
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: rgba(7, 7, 7, 0.96);
		border-bottom: 1px solid var(--green);
		padding: 0.5rem 16px 1.25rem;
	}
	.site-header.nav-open .site-nav {
		display: block;
	}
	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
	}
	.site-nav a {
		font-size: 1rem;
		padding: 0.85rem 0.5rem;
		border-bottom: 1px solid rgba(122, 134, 112, 0.25);
		border-radius: 0;
	}
	.site-nav .site-nav__cta {
		margin: 0.75rem 0 0;
		text-align: center;
		border-radius: 6px;
		border-bottom: 0;
	}
	.site-header__logo img {
		height: 52px;
	}
}

/* ---------- Page titles ---------- */

.page-title {
	text-align: center;
	padding: 64px 0 40px;
}
.page-title h1 {
	font-family: "Couture", sans-serif;
	font-weight: normal;
	color: var(--green);
	font-size: clamp(1.75rem, 5vw, 3.25rem);
	line-height: 1.15;
	overflow-wrap: break-word;
}
.page-title h1::after {
	content: "";
	display: block;
	width: 80px;
	height: 3px;
	margin: 20px auto 0;
	background-color: var(--green);
	border-radius: 2px;
}
.page-title p {
	color: #ddd;
	margin-top: 1rem;
	font-size: 1.1rem;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	border-radius: 8px;
	border: 2px solid var(--green);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn--primary {
	background-color: var(--green);
	color: #fff;
}
.btn--primary:hover {
	background-color: var(--green-dark);
	border-color: var(--green-dark);
}
.btn--ghost {
	background-color: transparent;
	color: #fff;
}
.btn--ghost:hover {
	background-color: rgba(122, 134, 112, 0.3);
}

/* ---------- Home ---------- */

.hero {
	text-align: center;
	padding: 56px 0 72px;
}
.hero__logo {
	width: min(420px, 80%);
	height: auto;
	margin: 0 auto;
}
.hero__logo .path {
	stroke-dasharray: 14003.5869140625;
	stroke-dashoffset: 14003.5869140625;
	animation: draw 12s ease-in-out forwards;
}
@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}
.hero h1 {
	font-family: "Couture", sans-serif;
	font-weight: normal;
	color: var(--green);
	font-size: clamp(1.75rem, 5vw, 3.25rem);
	line-height: 1.15;
	margin-top: 32px;
}
.hero__slogan {
	color: #eee;
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	letter-spacing: 0.04em;
	margin-top: 12px;
	text-shadow: 0 0 6px rgba(122, 134, 112, 0.9), 0 0 18px rgba(122, 134, 112, 0.8), 0 2px 4px rgba(0, 0, 0, 0.7);
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 32px;
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media screen and (max-width: 960px) {
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media screen and (max-width: 600px) {
	.cards {
		grid-template-columns: 1fr;
	}
}

.card {
	display: flex;
	flex-direction: column;
	background-color: var(--panel);
	border: 2px solid var(--green);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--text);
	box-shadow: var(--shadow);
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.card__img {
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	border-bottom: 4px solid var(--green);
}
.card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.card h2 {
	font-family: "Couture", sans-serif;
	font-weight: normal;
	color: var(--green);
	font-size: 1.15rem;
	line-height: 1.3;
}
.card p {
	margin-top: 6px;
	flex: 1;
}
.card__more {
	margin-top: 16px;
	color: var(--green-dark);
	font-weight: 700;
}
.card:hover .card__more {
	text-decoration: underline;
}

.img-agences {
	background-image: url("../img/nos_agences.jpg");
}
.img-equipe {
	background-image: url("../img/logo_white.png");
	background-color: var(--green);
	background-size: contain;
	background-repeat: no-repeat;
}
.img-obseques {
	background-image: url("../img/hand_small.jpg");
}
.img-marbrerie {
	background-image: url("../img/marbrerie_small.jpg");
}
.img-articles {
	background-image: url("../img/flower_small.jpg");
}
.img-contact {
	background-image: url("../img/devis.jpg");
}
.img-monument {
	background-image: url("../img/config.jpg");
}

.feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 24px;
	background-color: var(--panel);
	border: 2px solid var(--green);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.feature__img {
	min-height: 260px;
	background-size: cover;
	background-position: center;
}
.feature__body {
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 12px;
}
.feature h2 {
	font-family: "Couture", sans-serif;
	font-weight: normal;
	color: var(--green);
	font-size: 1.5rem;
}
@media screen and (max-width: 760px) {
	.feature {
		grid-template-columns: 1fr;
	}
	.feature__img {
		min-height: 200px;
	}
	.feature__body {
		padding: 24px;
	}
}

/* ---------- Text pages ---------- */

.prose {
	max-width: 860px;
	margin: 0 auto;
	background-color: var(--panel);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 48px 56px;
	font-size: 1.1rem;
	line-height: 1.75;
}
.prose > * + * {
	margin-top: 1rem;
}
.prose h2,
.prose h4 {
	color: var(--green-dark);
	font-size: 1.2rem;
	line-height: 1.4;
	margin-top: 2.25rem;
}
.prose > h2:first-child,
.prose > h4:first-child {
	margin-top: 0;
}
.prose ul {
	padding-left: 1.4rem;
}
.prose li + li {
	margin-top: 0.5rem;
}
.prose li::marker {
	color: var(--green);
}
.prose b {
	color: var(--green-dark);
}
.prose a {
	overflow-wrap: anywhere;
}
.prose img {
	margin: 1.5rem auto;
	border-radius: 10px;
}
.prose .illustration {
	max-width: 500px;
	width: 100%;
	border: 4px solid var(--green);
	margin-top: 0;
}
.initial {
	color: var(--green-dark);
	font-weight: 900;
	font-size: 1.6em;
}
@media screen and (max-width: 600px) {
	.prose {
		padding: 28px 20px;
		font-size: 1rem;
	}
}

.team {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 20px;
	margin-top: 2rem !important;
}
.team figure {
	text-align: center;
}
.team img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 10px;
	background-color: var(--green);
	margin: 0;
}
.team figcaption {
	font-weight: 700;
	margin-top: 8px;
}

/* ---------- Agences ---------- */

.agencies {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
@media screen and (max-width: 860px) {
	.agencies {
		grid-template-columns: 1fr;
	}
}
.agency {
	background-color: var(--panel);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.agency iframe {
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 0;
	display: block;
	border-bottom: 4px solid var(--green);
}
.agency__body {
	padding: 24px 28px 28px;
}
.agency h2 {
	color: var(--green-dark);
	font-size: 1.35rem;
	line-height: 1.3;
}
.agency dl {
	margin-top: 16px;
	display: grid;
	gap: 12px;
}
.agency dt {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--green-dark);
	font-weight: 700;
}
.agency dd {
	font-weight: 500;
}
.agency__links {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.agency__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.55rem 0.9rem;
	border: 2px solid var(--green);
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
	transition: background-color 200ms ease, color 200ms ease;
}
.agency__links a:hover {
	background-color: var(--green);
	color: #fff;
}
.agency__links img {
	width: 20px;
	height: 20px;
}
/* "Itinéraire" stands out: filled green, white text and icon */
.agency__links .agency__route {
	background-color: var(--green);
	color: #fff;
}
.agency__links .agency__route:hover {
	background-color: var(--green-dark);
	border-color: var(--green-dark);
}
.agency__route img {
	filter: invert(1);
}

/* ---------- Contact form ---------- */

.form {
	max-width: 720px;
	margin: 0 auto;
	background-color: var(--panel);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 40px 48px;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.form fieldset {
	border: 0;
}
.form legend,
.form .field > label {
	display: block;
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}
.form .choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.form .choice {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 1rem;
	background-color: #fff;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
}
.form .choice:has(input:checked) {
	border-color: var(--green);
}
.form input[type="text"],
.form input[type="tel"],
.form textarea {
	width: 100%;
	font: inherit;
	font-size: 1.05rem;
	padding: 0.7rem 0.9rem;
	border: 2px solid #d6d6d6;
	border-radius: 8px;
	background-color: #fff;
}
.form input:focus,
.form textarea:focus {
	outline: none;
	border-color: var(--green);
}
.form textarea {
	resize: vertical;
	min-height: 120px;
}
.form small {
	display: block;
	color: #555;
	margin-top: 4px;
}
input[type="radio"] {
	appearance: none;
	width: 1.1em;
	height: 1.1em;
	border: 2px solid var(--green);
	border-radius: 50%;
	background-color: #fff;
	display: grid;
	place-content: center;
	cursor: pointer;
}
input[type="radio"]::before {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background-color: var(--green);
	transform: scale(0);
	transition: transform 120ms ease-in-out;
}
input[type="radio"]:checked::before {
	transform: scale(1);
}
/* email / téléphone field shown according to the chosen preference */
.option__email,
.option__tel {
	display: none;
	margin-top: 1rem;
}
.form:has(#pref__email:checked) .option__email,
.form:has(#pref__telephone:checked) .option__tel {
	display: block;
}
.option label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.4rem;
}
.form .submit__form {
	align-self: center;
	font: inherit;
	font-size: 1.1rem;
}
.form__disclaimer {
	font-size: 0.9rem;
	color: #444;
	text-align: center;
}
@media screen and (max-width: 600px) {
	.form {
		padding: 28px 20px;
	}
}

.form__prise__contact__dialog {
	margin: auto;
	width: min(480px, 92vw);
	padding: 40px 32px;
	border: 0;
	border-radius: var(--radius);
	background-color: #fff;
	box-shadow: var(--shadow);
	text-align: center;
}
.form__prise__contact__dialog[open] {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}
.form__prise__contact__dialog::backdrop {
	background-color: rgba(7, 7, 7, 0.6);
	backdrop-filter: blur(4px);
}
.form__prise__contact__dialog p {
	font-size: 1.2rem;
}
.form__prise__contact__dialog img {
	width: 80px;
	border: 4px solid var(--green);
	border-radius: 50%;
}
.form__prise__contact__dialog.error img {
	border-color: #5d0e07;
}
.form__prise__contact__dialog button {
	font: inherit;
}

/* ---------- Footer ---------- */

.site-footer {
	background-color: var(--green);
	color: #111;
	font-size: 0.95rem;
}
.site-footer__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 40px 16px 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
.site-footer h2 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
	color: #fff;
}
.site-footer a {
	color: #111;
	text-decoration: none;
	font-weight: 700;
}
.site-footer a:hover {
	text-decoration: underline;
}
.site-footer ul {
	list-style: none;
}
.site-footer li + li {
	margin-top: 0.25rem;
}
.site-footer__copy {
	grid-column: 1 / -1;
	border-top: 1px solid rgba(0, 0, 0, 0.2);
	padding-top: 16px;
	font-size: 0.9rem;
	text-align: center;
}
@media screen and (max-width: 900px) {
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}
@media screen and (max-width: 560px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		text-align: center;
	}
}

/* ---------- Legal popup ---------- */

#legal-dialog {
	margin: auto;
	width: min(820px, 92vw);
	max-height: 86vh;
	border: 0;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 0;
	background-color: #fff;
}
#legal-dialog::backdrop {
	background-color: rgba(7, 7, 7, 0.6);
	backdrop-filter: blur(4px);
}
.legal-dialog__head {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 20px 28px;
	background-color: var(--green);
	color: #fff;
}
.legal-dialog__head h2 {
	font-size: 1.3rem;
}
.legal-dialog__head button {
	background: none;
	border: 0;
	cursor: pointer;
}
.legal-dialog__head img {
	width: 32px;
	height: 32px;
	filter: invert(1);
}
#legal-dialog .prose {
	box-shadow: none;
	border-radius: 0;
	background: none;
	padding: 28px;
	font-size: 1rem;
}
