/* ========= Variables & base ========= */
:root {
	--font-heading: 'Playfair Display', Georgia, serif;
	--font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
	--jade-fonce: #1a4d47;
	--jade-medium: #2d5f57;
	--jade-clair: #3d7a6e;
	--jade-accent: #5a9d8f;
	--accent-color: #c9a961;
	--accent-hover: #d4af37;
	--bg-overlay: rgba(26, 77, 71, 0.45);
	--body-font-color: #e8f2f0;
	--link-hover: #a8d5c8;
}

/* ========= CSS reset ========= */
html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
}
*, *::before, *::after {
	box-sizing: inherit;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: top;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

/* ========= Body ========= */
body {
	min-height: 100vh;
	line-height: 1.6;
	font-family: var(--font-body);
	color: var(--body-font-color);
	background-color: var(--jade-fonce);
}

/* ========= Typography ========= */
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 0.75em;
	color: var(--body-font-color);
}
h1 {
	font-size: 1.75rem;
}
h2 {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--accent-color);
}
h3 {
	font-size: 1.125rem;
}

@media screen and (min-width: 64em) {
	h1 {
		font-size: 2.25rem;
	}
	h2 {
		font-size: 1.5rem;
	}
	h3 {
		font-size: 1.125rem;
	}
}

p {
	padding-bottom: 1em;
	color: inherit;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
strong {
	font-weight: 700;
}
.clear {
	clear: both;
}

a {
	color: var(--jade-accent);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}
a:hover,
a:focus {
	color: var(--link-hover);
}
a:focus-visible {
	outline: 2px solid var(--jade-accent);
	outline-offset: 2px;
}

/* ========= Layout 2 colonnes (contenu + image) ========= */
.layout {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Mobile : image au-dessus (20vh), contenu en dessous */
.layout-content {
	position: relative;
	flex: 1;
	min-width: 0;
	min-height: calc(100vh - 20vh);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.5rem;
	background-image: url("../images/metal.jpg");
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* Overlay vert jade intense + backdrop blur sur le contenu */
.layout-content::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(26, 77, 71, 0.85) 0%, rgba(26, 77, 71, 0.90) 100%);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.layout-content > * {
	position: relative;
	z-index: 1;
}

.layout-image {
	flex: 0 0 20vh;
	order: -1;
	background-image: url("../images/bg.jpg");
	background-position: center 70%;
	background-size: cover;
	background-repeat: no-repeat;
}

/* Desktop : 35 % contenu (min 500px), 65 % image, même hauteur */
@media screen and (min-width: 64em) {
	.layout {
		flex-direction: row;
		height: auto;
		min-height: 100vh;
	}

	.layout-content {
		flex: 0 0 35%;
		min-width: 500px;
		padding: 4rem 3rem;
	}

	.layout-image {
		flex: 1;
		min-width: 0;
		order: 0;
		background-image: url("../images/bg.jpg");
		background-position: center 70%;
	}
}

.article {
	width: 100%;
	max-width: 36rem;
	padding: 0;
	text-align: center;
}

@media screen and (min-width: 64em) {
	.article {
		padding: 0;
	}
}

.article-header {
	margin-bottom: 1.5rem;
}

.article-header-brand {
	margin-bottom: 1.25rem;
}

.brand-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto;
	border-radius: 16px;
}

.article-title {
	margin-bottom: 0.5em;
}

.article-content {
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.informations-contact {
	margin-top: 0.25rem;
	margin-bottom: 0;
}

.informations-contact .email {
	margin-bottom: 0;
}

.informations-contact .email a {
	display: inline-block;
	padding: 0.6em 1.25em;
	border: 2px solid var(--accent-color);
	border-radius: 999px;
	color: var(--accent-color);
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.informations-contact .email a:hover,
.informations-contact .email a:focus {
	border-color: var(--accent-hover);
	color: var(--accent-hover);
	background-color: rgba(255, 255, 255, 0.1);
}

/* Protection anti-spam : masquer le lien mail si pas de JS, afficher la version texte */
.email-noscript {
	display: none;
	margin: 0;
	padding: 0;
}
html.no-js .informations-contact .email {
	display: none;
}
html.no-js .email-noscript {
	display: block;
}
