/* haraz.ch — feuille de style commune
   Palette reprise de l'identité Aprotec : ardoise, rouge, blanc. */

:root {
	--ink:        #303e48;
	--ink-soft:   #5c6a75;
	--ink-faint:  #8b98a2;
	--red:        #c41c27;
	--red-dark:   #a5151f;
	--page:       #eef1f3;
	--bg:         #ffffff;
	--surface:    #f8f8f8;
	--border:     #dfe4e7;
	--shadow:     0 1px 2px rgba(48, 62, 72, 0.05), 0 4px 14px rgba(48, 62, 72, 0.05);
	--radius:     4px;
	--wrap:       1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--red); }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 32px;
}

/* ---------- en-tête ---------- */

.topbar {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 20;
}

.topbar .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 78px;
}

.brand {
	font-size: 26px;
	font-weight: 300;
	letter-spacing: 0.06em;
	color: var(--ink);
	text-decoration: none;
}

.brand b { font-weight: 300; color: var(--red); }

.topbar nav {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
}

.topbar nav a {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink);
	text-decoration: none;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}

.topbar nav a:hover { color: var(--red); }
.topbar nav a.on { border-bottom-color: var(--red); color: var(--red); }

/* ---------- titre de page ---------- */

header.page { padding: 66px 0 10px; }

header.page .kicker {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 14px;
}

header.page h1 {
	margin: 0 0 16px;
	font-size: clamp(32px, 5vw, 50px);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -0.01em;
}

header.page p {
	margin: 0;
	max-width: 65ch;
	font-size: 17px;
	color: var(--ink-soft);
}

.rule {
	width: 56px;
	height: 3px;
	background: var(--red);
	margin: 26px 0 0;
	border: 0;
}

main { padding: 40px 0 72px; }

h2 { font-weight: 400; letter-spacing: -0.01em; }

/* ---------- éléments communs ---------- */

.card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 20px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.btn {
	padding: 11px 22px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--red);
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.btn:hover { background: var(--red-dark); }
.btn:disabled { background: var(--ink-faint); cursor: not-allowed; }

.btn-ghost {
	color: var(--ink);
	background: transparent;
	border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--surface); color: var(--red); border-color: var(--red); }

.tag {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 10px;
	border: 1px solid var(--border);
	border-radius: 99px;
	color: var(--ink-soft);
}

.tag-red { border-color: var(--red); color: var(--red); }

.muted { color: var(--ink-soft); }
.small { font-size: 13px; }

.note {
	font-size: 14px;
	color: var(--ink-soft);
	background: var(--bg);
	border: 1px solid var(--border);
	border-left: 3px solid var(--red);
	border-radius: var(--radius);
	padding: 16px 18px;
	margin-bottom: 30px;
	box-shadow: var(--shadow);
}

/* ---------- pied de page ---------- */

footer.page {
	background: var(--ink);
	padding: 34px 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
	margin-top: 20px;
}

footer.page a { color: #fff; text-decoration: none; }
footer.page a:hover { color: #ffb3b8; }

footer.page .wrap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 780px) {
	.wrap { padding: 0 20px; }
	.topbar .wrap { min-height: 64px; flex-wrap: wrap; padding-bottom: 10px; }
	.topbar nav { gap: 16px; }
	header.page { padding-top: 40px; }
}
