/* charpentier-metallique.be - main.css v2.0 - identite acier industriel */

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

:root {
	--brand:   #1F2933;
	--cta:     #F4B400;
	--cta-dk:  #D09A00;
	--white:   #ffffff;
	--body-bg: #F2F0EC;
	--text:    #1a1a1a;
	--muted:   #4a4a4a;
	--border:  #c8c4bc;
	--nav-h:   62px;
	--rad:     3px;
	--inner:   1140px;
}

html { scroll-behavior: smooth; }

body {
	font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.65;
	color: var(--text);
	background: var(--body-bg);
}

a { color: var(--cta); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4,h5,h6 {
	font-weight: 700;
	line-height: 1.25;
	color: var(--brand);
}

img { display: block; max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.cmet-hdr {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: var(--brand);
	height: var(--nav-h);
	border-bottom: 3px solid var(--cta);
}

.cmet-hdr__inner {
	max-width: var(--inner);
	margin: 0 auto;
	padding: 0 20px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cmet-hdr__brand {
	display: flex;
	align-items: center;
}
.cmet-hdr__brand img { height: 38px; width: auto; }
.cmet-hdr__brand:hover { text-decoration: none; }

/* hamburger CSS-only */
.cmet-hdr__toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 6px;
}
.cmet-hdr__toggle input { display: none; }
.cmet-hdr__toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--white);
}

.cmet-hdr__menu {
	list-style: none;
	display: flex;
	gap: 6px;
	align-items: center;
}
.cmet-hdr__menu li a {
	color: var(--white);
	font-size: .9rem;
	padding: 6px 10px;
	display: block;
}
.cmet-hdr__menu li a:hover { text-decoration: none; border-bottom: 2px solid var(--cta); }
.cmet-hdr__menu .cmet-hdr__cta a {
	background: var(--cta);
	color: var(--brand);
	border-radius: var(--rad);
	padding: 7px 16px;
	font-weight: 700;
}
.cmet-hdr__menu .cmet-hdr__cta a:hover { background: var(--cta-dk); border-bottom: none; text-decoration: none; }

@media (max-width: 767px) {
	.cmet-hdr__toggle { display: flex; }

	.cmet-hdr__toggle input:checked ~ .cmet-hdr__menu {
		display: flex;
	}

	.cmet-hdr__menu {
		display: none;
		position: absolute;
		top: var(--nav-h);
		left: 0; right: 0;
		background: var(--brand);
		flex-direction: column;
		gap: 0;
		padding: 10px 0;
	}
	.cmet-hdr__menu li a { padding: 10px 20px; }
	.cmet-hdr__menu li a:hover { border-bottom: none; color: var(--cta); }
}

/* ===== HERO ===== */
.cmet-hero {
	padding-top: var(--nav-h);
	position: relative;
	background: var(--brand);
	overflow: hidden;
}

/* background image - charpente en cover a 20% opacite */
.cmet-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('assets/img/hero.webp');
	background-size: cover;
	background-position: center;
	opacity: .18;
	z-index: 0;
}

/* hachure diagonal SVG inline - pas de gradient */
.cmet-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M-1 11L11-1M0 12L12 0' stroke='%23F4B400' stroke-width='.4' stroke-opacity='.12'/%3E%3C/svg%3E");
	z-index: 0;
}

.cmet-hero__body {
	position: relative;
	z-index: 1;
	max-width: var(--inner);
	margin: 0 auto;
	padding: 60px 20px 0;
	text-align: center;
}

.cmet-hero__h1 {
	font-size: clamp(2.2rem, 5.5vw, 3.4rem);
	font-weight: 700;
	color: var(--white);
	margin-bottom: 16px;
}

.cmet-hero__sub {
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: rgba(255,255,255,.82);
	max-width: 700px;
	margin: 0 auto 32px;
}

/* 5 bullets en row inline avec separateurs Safety Yellow */
.cmet-hero__bullets {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin-bottom: 40px;
}
.cmet-hero__bullets li {
	color: var(--white);
	font-size: .92rem;
	font-weight: 700;
	padding: 0 14px;
}
.cmet-hero__bullets li + li {
	border-left: 2px solid var(--cta);
}

/* form bandeau plein largeur en bas du hero */
.cmet-hero__form-band {
	position: relative;
	z-index: 1;
	background: rgba(255,255,255,.94);
	border-top: 3px solid var(--cta);
	padding: 22px 20px;
	margin-top: 0;
}

.cmet-hero__form-band .cmet-form-title {
	text-align: center;
	font-size: 1rem;
	font-weight: 700;
	color: var(--brand);
	margin-bottom: 14px;
}

.cmet-hero__form-band form {
	max-width: var(--inner);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(6,1fr) auto;
	gap: 10px;
	align-items: end;
}

.cmet-form-group {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.cmet-form-group label {
	font-size: .78rem;
	font-weight: 700;
	color: var(--brand);
}
.cmet-form-group input {
	border: 1.5px solid var(--border);
	border-radius: var(--rad);
	padding: 9px 10px;
	font-size: .88rem;
	font-family: inherit;
	color: var(--text);
	background: var(--white);
	width: 100%;
}
.cmet-form-group input:focus {
	outline: none;
	border-color: var(--brand);
}

.cmet-form-submit {
	background: var(--cta);
	color: var(--brand);
	font-size: .9rem;
	font-weight: 700;
	border: none;
	border-radius: var(--rad);
	padding: 10px 18px;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	height: 42px;
	align-self: end;
}
.cmet-form-submit:hover { background: var(--cta-dk); }

.cmet-form-status-ok {
	background: #d1fae5;
	color: #065f46;
	border-radius: var(--rad);
	padding: 8px 12px;
	font-size: .88rem;
	grid-column: 1 / -1;
}
.cmet-form-status-err {
	background: #fee2e2;
	color: #7f1d1d;
	border-radius: var(--rad);
	padding: 8px 12px;
	font-size: .88rem;
	grid-column: 1 / -1;
}

.cmet-hp { position: absolute; left: -9999px; }

/* ===== PORTFOLIO (realisations) ===== */
.cmet-portfolio {
	padding: 56px 20px;
	background: var(--body-bg);
}
.cmet-portfolio__inner {
	max-width: var(--inner);
	margin: 0 auto;
}
.cmet-portfolio__inner h2 {
	text-align: center;
	margin-bottom: 32px;
	font-size: 1.7rem;
	color: var(--brand);
}
.cmet-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.cmet-portfolio__grid img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: var(--rad);
	border: 2px solid transparent;
}
.cmet-portfolio__grid img:hover { border-color: var(--cta); }

/* ===== SERVICES ===== */
.cmet-svc {
	background: var(--brand);
	padding: 56px 20px;
}
.cmet-svc__inner {
	max-width: var(--inner);
	margin: 0 auto;
}
.cmet-svc__inner > h2 {
	text-align: center;
	margin-bottom: 36px;
	font-size: 1.7rem;
	color: var(--white);
}
.cmet-svc__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.cmet-svc__card {
	background: rgba(255,255,255,.06);
	border-radius: var(--rad);
	padding: 24px 20px;
	border-left: 4px solid var(--cta);
}
.cmet-svc__card h3 {
	font-size: 1rem;
	margin-bottom: 8px;
	color: var(--cta);
}
.cmet-svc__card p {
	font-size: .9rem;
	color: rgba(255,255,255,.78);
	margin: 0;
}

/* ===== PROCESS ===== */
.cmet-process {
	padding: 56px 20px;
	background: #e8e5de;
}
.cmet-process__inner {
	max-width: var(--inner);
	margin: 0 auto;
}
.cmet-process__inner > h2 {
	text-align: center;
	margin-bottom: 36px;
	font-size: 1.7rem;
	color: var(--brand);
}
.cmet-process__steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.cmet-process__step {
	text-align: center;
	padding: 24px 16px;
	background: var(--white);
	border-radius: var(--rad);
	border-top: 4px solid var(--cta);
}
.cmet-process__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--brand);
	color: var(--cta);
	font-weight: 700;
	font-size: 1.1rem;
	margin: 0 auto 14px;
}
.cmet-process__step h3 {
	font-size: .95rem;
	margin-bottom: 8px;
	color: var(--brand);
}
.cmet-process__step p {
	font-size: .88rem;
	color: var(--muted);
	margin: 0;
}

/* ===== MAIN CONTENT ===== */
article.cmet-content {
	max-width: var(--inner);
	margin: 0 auto;
	padding: 60px 20px;
}

article.cmet-content h2 { font-size: 1.6rem; margin-bottom: 16px; color: var(--brand); }
article.cmet-content h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--brand); }
article.cmet-content h4, article.cmet-content h5, article.cmet-content h6 { color: var(--brand); margin-bottom: 8px; }
article.cmet-content p { margin-bottom: 16px; }
article.cmet-content ul, article.cmet-content ol { padding-left: 24px; margin-bottom: 16px; }
article.cmet-content li { margin-bottom: 6px; color: var(--text); }
article.cmet-content dt { font-weight: 700; color: var(--brand); }
article.cmet-content dd { margin-bottom: 10px; color: var(--text); }
article.cmet-content table { border-collapse: collapse; width: 100%; margin-bottom: 20px; }
article.cmet-content th, article.cmet-content td { border: 1px solid var(--border); padding: 8px 12px; color: var(--text); }
article.cmet-content th { background: var(--body-bg); color: var(--brand); font-weight: 700; }
article.cmet-content a { color: var(--cta); }

/* ===== TARIFS ===== */
.cmet-tarifs {
	background: var(--body-bg);
	padding: 56px 20px;
	border-top: 1px solid var(--border);
}
.cmet-tarifs__inner {
	max-width: var(--inner);
	margin: 0 auto;
}
.cmet-tarifs__inner > h2 {
	text-align: center;
	margin-bottom: 36px;
	font-size: 1.7rem;
	color: var(--brand);
}
.cmet-tarifs__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.cmet-tarifs__card {
	background: var(--white);
	border-radius: var(--rad);
	padding: 28px 22px;
	border-top: 4px solid var(--brand);
	text-align: center;
}
.cmet-tarifs__card.is-featured { border-top-color: var(--cta); }
.cmet-tarifs__card h3 { font-size: 1.1rem; color: var(--brand); margin-bottom: 10px; }
.cmet-tarifs__card .cmet-tarifs__price {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--cta);
	margin-bottom: 14px;
}
.cmet-tarifs__card p { font-size: .9rem; color: var(--muted); }

/* ===== FAQ ===== */
.cmet-faq {
	background: #e8e5de;
	padding: 56px 20px;
}
.cmet-faq__inner {
	max-width: 820px;
	margin: 0 auto;
}
.cmet-faq__inner > h2 {
	text-align: center;
	margin-bottom: 36px;
	font-size: 1.7rem;
	color: var(--brand);
}
.cmet-faq__item {
	background: var(--white);
	border-radius: var(--rad);
	margin-bottom: 12px;
	border-left: 4px solid var(--cta);
}
.cmet-faq__q {
	font-weight: 700;
	font-size: 1rem;
	color: var(--brand);
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
}
.cmet-faq__q::-webkit-details-marker { display: none; }
.cmet-faq__q::after {
	content: '+';
	float: right;
	color: var(--cta);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1;
}
details[open] .cmet-faq__q::after { content: '-'; }
.cmet-faq__a {
	padding: 0 20px 16px;
	font-size: .93rem;
	color: var(--muted);
}

/* ===== CTA SECTION ===== */
.cmet-cta {
	background: var(--brand);
	padding: 56px 20px;
	text-align: center;
}
.cmet-cta h2 { color: var(--white); font-size: 1.9rem; margin-bottom: 12px; }
.cmet-cta p { color: rgba(255,255,255,.82); margin-bottom: 28px; font-size: 1.05rem; }
.cmet-cta__btn {
	display: inline-block;
	background: var(--cta);
	color: var(--brand);
	font-weight: 700;
	padding: 15px 36px;
	border-radius: var(--rad);
	font-size: 1rem;
}
.cmet-cta__btn:hover { background: var(--cta-dk); text-decoration: none; color: var(--brand); }

/* ===== FOOTER ===== */
.cmet-ftr {
	background: #111820;
	color: rgba(255,255,255,.65);
	padding: 32px 20px;
	text-align: center;
	font-size: .85rem;
	border-top: 3px solid var(--brand);
}
.cmet-ftr p { color: rgba(255,255,255,.65); }
.cmet-ftr a { color: rgba(255,255,255,.65); }
.cmet-ftr a:hover { color: var(--white); text-decoration: underline; }
.cmet-ftr__sep { margin: 0 10px; color: var(--cta); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
	.cmet-svc__grid { grid-template-columns: repeat(2, 1fr); }
	.cmet-process__steps { grid-template-columns: repeat(2, 1fr); }
	.cmet-tarifs__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.cmet-hero__form-band form {
		grid-template-columns: repeat(3, 1fr);
	}
	.cmet-hero__form-band form .cmet-form-submit {
		grid-column: 1 / -1;
		width: 100%;
		height: auto;
		padding: 12px;
	}
	.cmet-portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.cmet-hero__bullets { flex-direction: column; align-items: center; gap: 6px; }
	.cmet-hero__bullets li + li { border-left: none; padding-top: 4px; }
	.cmet-hero__form-band form {
		grid-template-columns: 1fr;
	}
	.cmet-hero__form-band form .cmet-form-submit {
		grid-column: 1;
	}
	.cmet-svc__grid { grid-template-columns: 1fr; }
	.cmet-process__steps { grid-template-columns: 1fr; }
	.cmet-portfolio__grid { grid-template-columns: 1fr; }
}
