/* ==========================================================================
   CADET SCIAGE — feuille de style principale
   Univers : scierie. Cernes de croissance, marquage orange des grumes,
   vert sapin, teintes de bois frais. Typographie : Big Shoulders Display
   (enseigne industrielle, condensée) + Hanken Grotesk (lecture).
   ========================================================================== */

/* 1. Variables
   ========================================================================== */
:root {
	--sapin: #1e4636;
	--sapin-deep: #123024;
	--sapin-light: #2c5d48;
	--ecorce: #2b2018;
	--aubier: #efd9ae;
	--aubier-soft: #f7ecd3;
	--lichen: #f2f4ee;
	--sauge: #dce3d3;
	--marquage: #f26b1d;
	--marquage-hover: #ff8440;
	--marquage-deep: #c9520e;
	--brume: #66645c;
	--line: #d9ddd3;

	--font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	--font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1240px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--radius: 4px;
	--radius-lg: 12px;
	--header-topbar: 2.25rem;
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--lichen);
	color: var(--ecorce);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.nav-open {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--sapin);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--marquage-deep);
}

:focus-visible {
	outline: 3px solid var(--marquage);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.005em;
	color: inherit;
	text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
h4 { font-size: 1.4rem; }

p {
	margin: 0 0 1.1em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	z-index: 1000;
	top: 0.75rem;
	left: 0.75rem;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.8rem 1.2rem;
	clip: auto;
	background: #fff;
	color: var(--ecorce);
	font-weight: 700;
	border-radius: var(--radius);
}

.container {
	width: min(100% - var(--gutter) * 2, var(--container));
	margin-inline: auto;
}

/* 3. Boutons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.5rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font: 700 1rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary { background: var(--marquage); color: var(--ecorce); }
.btn--primary:hover { background: var(--marquage-hover); color: var(--ecorce); }

.btn--dark { background: var(--sapin); color: #fff; }
.btn--dark:hover { background: var(--sapin-deep); color: #fff; }

.btn--ghost { border-color: var(--ecorce); color: var(--ecorce); background: transparent; }
.btn--ghost:hover { background: var(--ecorce); color: #fff; }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--sapin-deep); border-color: #fff; }

/* 4. En-tête
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
}

.site-header.has-topbar { top: calc(var(--header-topbar) * -1); }
.admin-bar .site-header { top: 32px; }
.admin-bar .site-header.has-topbar { top: calc(32px - var(--header-topbar)); }

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .site-header.has-topbar { top: calc(46px - var(--header-topbar)); }
}

.topbar {
	height: var(--header-topbar);
	background: var(--sapin-deep);
	color: var(--aubier);
	font-size: 0.875rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: 100%;
}

.topbar__text { margin: 0; }

.topbar__contact {
	display: flex;
	gap: 1.5rem;
	margin: 0 0 0 auto;
	padding: 0;
	list-style: none;
}

.topbar a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: inherit;
	text-decoration: none;
}

.topbar a:hover { color: #fff; text-decoration: underline; }

.mainbar {
	position: relative;
	border-bottom: 1px solid var(--line);
	background: #fff;
}

.mainbar__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	min-height: 4.75rem;
}

/* Logo */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--sapin);
	text-decoration: none;
}

.brand:hover { color: var(--sapin); }

.brand__name {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.brand__cadet { color: var(--ecorce); }
.brand__sciage { color: var(--marquage-deep); }

.custom-logo { display: block; max-height: 3.4rem; width: auto; }

/* Navigation */
.primary-nav { margin-left: auto; }

.primary-menu {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu li { position: relative; }

.primary-menu a {
	display: block;
	padding: 0.65rem 0.9rem;
	border-radius: var(--radius);
	color: var(--ecorce);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s;
}

.primary-menu a:hover { background: var(--aubier-soft); color: var(--ecorce); }

.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_item > a {
	box-shadow: inset 0 -3px 0 var(--marquage);
	border-radius: var(--radius) var(--radius) 0 0;
}

.primary-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.4em;
	height: 0.4em;
	margin: 0 0 0.2em 0.5em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 16rem;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 3px solid var(--marquage);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 12px 28px rgba(43, 32, 24, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.submenu-toggle { display: none; }

/* Outils : recherche, compte, panier, menu mobile */
.header-tools {
	position: relative;
	z-index: 70;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.tool-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ecorce);
	cursor: pointer;
	transition: background-color 0.15s;
}

.tool-btn:hover { background: var(--aubier-soft); color: var(--ecorce); }

.cadet-cart-count {
	position: absolute;
	top: 0.1rem;
	right: 0;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: var(--marquage);
	color: var(--ecorce);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.15rem;
	text-align: center;
}

.cadet-cart-count.is-empty { display: none; }

.nav-toggle { display: none; }
.nav-toggle .icon--close { display: none; }
body.nav-open .nav-toggle .icon--menu { display: none; }
body.nav-open .nav-toggle .icon--close { display: block; }

.header-search {
	padding-block: 1rem;
	border-top: 1px solid var(--line);
	background: var(--aubier-soft);
}

.header-search[hidden] { display: none; }

.search-form {
	display: flex;
	gap: 0.6rem;
}

.search-form input[type="search"] { flex: 1; }

@media (max-width: 960px) {
	.topbar__text { display: none; }
	.topbar__contact { margin: 0; }

	.nav-toggle { display: inline-grid; }

	.primary-nav {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 60;
		width: min(22rem, 88vw);
		margin: 0;
		padding: 5rem 1.25rem 2rem;
		overflow-y: auto;
		background: #fff;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.3s ease, visibility 0.3s;
		box-shadow: -20px 0 40px rgba(18, 48, 36, 0.2);
	}

	body.nav-open .primary-nav { transform: none; visibility: visible; }

	body.nav-open::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 55;
		background: rgba(18, 48, 36, 0.55);
	}

	.primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-menu > li { border-bottom: 1px solid var(--line); }
	.primary-menu a { padding: 0.95rem 0.25rem; font-size: 1.15rem; }
	.primary-menu .current-menu-item > a,
	.primary-menu .current_page_item > a { box-shadow: none; color: var(--marquage-deep); }
	.primary-menu .menu-item-has-children > a::after { display: none; }

	.primary-menu li.menu-item-has-children { display: grid; grid-template-columns: 1fr auto; align-items: center; }
	.primary-menu li.menu-item-has-children > .sub-menu { grid-column: 1 / -1; }

	.primary-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 0.75rem 1rem;
		border: 0;
		border-left: 3px solid var(--aubier);
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-menu li.is-open > .sub-menu { display: block; }
	.primary-menu .sub-menu a { padding: 0.6rem 0.25rem; font-size: 1.02rem; font-weight: 500; }

	.submenu-toggle {
		display: inline-grid;
		place-items: center;
		width: 2.75rem;
		height: 2.75rem;
		border: 0;
		background: transparent;
		color: var(--ecorce);
		cursor: pointer;
	}

	.submenu-toggle svg { transition: transform 0.2s; }
	li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
}

/* Petits écrans : logo et boutons resserrés pour tenir sur une ligne
   (jusqu'à 4 boutons avec WooCommerce : recherche, compte, panier, menu). */
@media (max-width: 560px) {
	.mainbar__inner { gap: 0.5rem; min-height: 4.25rem; }
	.site-branding { min-width: 0; margin-right: auto; }
	.brand { gap: 0.45rem; }
	.brand__mark { width: 30px; height: 30px; }
	.brand__name { font-size: 1.55rem; }
	.header-tools { flex: none; gap: 0; }
	.tool-btn { width: 2.5rem; height: 2.5rem; }
}

/* 5. Cernes de croissance (motif signature)
   ========================================================================== */
.rings {
	display: block;
	width: 100%;
	height: 100%;
}

.ring {
	stroke-width: 1.2;
	stroke-opacity: 0.32;
	stroke-linejoin: round;
}

.ring--major { stroke-width: 2.2; stroke-opacity: 0.6; }
.ring--crack { stroke-width: 1.6; stroke-opacity: 0.5; stroke-linecap: round; }

/* Une seule animation sur toute la page : les cernes se dessinent du centre vers l'écorce. */
.rings--animate .ring {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: ring-draw 1.9s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
	animation-delay: calc(var(--i) * 85ms + 120ms);
}

@keyframes ring-draw {
	to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.rings--animate .ring { animation: none; stroke-dashoffset: 0; }
	* { scroll-behavior: auto !important; }
}

/* 6. Accueil : bandeau principal
   ========================================================================== */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(88vh, 50rem);
	padding-block: clamp(4rem, 9vw, 8rem);
	overflow: hidden;
	background: var(--sapin-deep);
	color: #fff;
}

.hero__rings {
	position: absolute;
	top: 50%;
	right: -20vmin;
	width: min(135vmin, 1100px);
	aspect-ratio: 1;
	color: var(--aubier);
	transform: translateY(-50%);
	pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero__title {
	margin: 0 0 1.75rem;
	font-size: clamp(4.5rem, 14vw, 11rem);
	font-weight: 900;
	line-height: 0.84;
	letter-spacing: -0.005em;
}

.hero__text {
	max-width: 33rem;
	margin: 0 0 2.25rem;
	color: var(--aubier-soft);
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	line-height: 1.55;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__caption {
	position: absolute;
	right: var(--gutter);
	bottom: 1.5rem;
	z-index: 1;
	margin: 0;
	color: var(--aubier);
	font-size: 0.875rem;
	opacity: 0.85;
}

/* 7. Sections communes
   ========================================================================== */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--wood { background: var(--aubier-soft); }

.section__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.85rem 2rem;
	align-items: end;
	margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section__title { margin: 0; grid-column: 1; }

.section__lead {
	grid-column: 1;
	max-width: 40rem;
	margin: 0;
	color: var(--brume);
	font-size: 1.125rem;
}

.section__link {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: end;
	font-weight: 700;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.section__head { grid-template-columns: 1fr; }
	.section__link { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* 8. Familles de produits
   ========================================================================== */
.cats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem;
}

.cat {
	--bg: var(--sapin);
	--fg: #fff;
	--ring: rgba(255, 255, 255, 0.13);
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	grid-column: span 2;
	min-height: 17rem;
	padding: 1.6rem;
	overflow: hidden;
	background: var(--bg);
	color: var(--fg);
	border-radius: var(--radius-lg);
	text-decoration: none;
}

.cat:hover { color: var(--fg); }

.cat:nth-child(-n + 2) { grid-column: span 3; min-height: 23rem; }

.cat--1 { --bg: var(--sapin); --fg: #fff; --ring: rgba(239, 217, 174, 0.16); }
.cat--2 { --bg: var(--aubier); --fg: var(--ecorce); --ring: rgba(43, 32, 24, 0.1); }
.cat--3 { --bg: var(--ecorce); --fg: var(--aubier-soft); --ring: rgba(239, 217, 174, 0.12); }
.cat--4 { --bg: #fff; --fg: var(--ecorce); --ring: rgba(30, 70, 54, 0.1); box-shadow: inset 0 0 0 2px var(--ecorce); }
.cat--5 { --bg: var(--sauge); --fg: var(--sapin-deep); --ring: rgba(30, 70, 54, 0.12); }

/* Cernes décoratifs en coin, faits en CSS pur. */
.cat::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -5rem;
	bottom: -5rem;
	width: 19rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, transparent 0 0.85rem, var(--ring) 0.85rem 1rem);
	transition: transform 0.5s ease;
}

.cat:nth-child(-n + 2)::before { width: 27rem; right: -8rem; bottom: -8rem; }
.cat:hover::before { transform: scale(1.07); }

.cat__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cat.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(18, 48, 36, 0.85), rgba(18, 48, 36, 0.15) 70%);
}

.cat.has-image { --fg: #fff; }
.cat.has-image::before { display: none; }

.cat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.cat__icon { display: block; }
.cat__count { font-size: 0.9rem; font-weight: 600; opacity: 0.85; }

.cat__body { display: block; }

.cat__name {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--font-display);
	font-size: clamp(2rem, 3vw, 2.6rem);
	font-weight: 800;
	line-height: 0.95;
}

.cat:nth-child(-n + 2) .cat__name { font-size: clamp(2.6rem, 4.5vw, 3.9rem); }

.cat__desc { display: block; max-width: 24rem; font-size: 1rem; line-height: 1.45; opacity: 0.9; }

@media (max-width: 960px) {
	.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat,
	.cat:nth-child(-n + 2) { grid-column: span 1; min-height: 16rem; }
	.cat:nth-child(1) { grid-column: 1 / -1; min-height: 19rem; }
	.cat:nth-child(-n + 2) .cat__name { font-size: clamp(2rem, 6vw, 2.8rem); }
}

@media (max-width: 560px) {
	.cats { grid-template-columns: 1fr; }
	.cat,
	.cat:nth-child(1),
	.cat:nth-child(-n + 2) { grid-column: 1; min-height: 14rem; }
}

/* 9. Parcours du bois (grume → granulé) : les disques rétrécissent comme le bois est transformé
   ========================================================================== */
.flow {
	--disc: 9.5rem;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flow__step { position: relative; }

.flow__track {
	position: relative;
	display: grid;
	align-items: center;
	justify-items: start;
	height: var(--disc);
	margin-bottom: 1.25rem;
}

.flow__track::before {
	content: "";
	position: absolute;
	top: 50%;
	right: -0.875rem;
	left: -0.875rem;
	height: 2px;
	background: var(--ecorce);
	opacity: 0.22;
}

.flow__step:first-child .flow__track::before { left: 0; }
.flow__step:last-child .flow__track::before { right: 0; }

.flow__disc {
	position: relative;
	display: grid;
	place-items: center;
	width: max(2.6rem, calc(var(--disc) * var(--s)));
	aspect-ratio: 1;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, var(--sapin) 0 0.32rem, var(--sapin-light) 0.32rem 0.46rem);
	color: #fff;
	font-family: var(--font-display);
	font-size: max(1.2rem, calc(var(--disc) * var(--s) * 0.4));
	font-weight: 800;
	line-height: 1;
}

.flow__title { margin-bottom: 0.4rem; font-size: 1.9rem; }
.flow__title a { color: inherit; text-decoration-thickness: 2px; }
.flow__text { max-width: 19rem; margin: 0; color: var(--brume); }

@media (max-width: 800px) {
	.flow { --disc: 5.5rem; grid-auto-flow: row; gap: 2rem; }

	.flow__step {
		display: grid;
		grid-template-columns: 5.5rem minmax(0, 1fr);
		column-gap: 1.25rem;
		align-items: start;
	}

	.flow__track { grid-row: 1 / span 2; margin: 0; height: 5.5rem; justify-items: center; }
	.flow__track::before { top: 0; bottom: -2rem; left: 50%; right: auto; width: 2px; height: auto; }
	.flow__step:first-child .flow__track::before { top: 50%; }
	.flow__step:last-child .flow__track::before { bottom: 50%; }
	.flow__title { align-self: end; margin-bottom: 0.2rem; }
}

/* 10. Atouts
   ========================================================================== */
.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}

.split__intro .section__title { margin-bottom: 1rem; }

.facts {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--ecorce);
}

.fact {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	gap: 1rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--line);
}

.fact__icon {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--aubier);
	color: var(--sapin-deep);
}

.fact__title { margin: 0.2rem 0 0.3rem; font-size: 1.65rem; }
.fact__text { max-width: 34rem; margin: 0; color: var(--brume); }

@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
}

/* 11. Bandeau devis
   ========================================================================== */
.cta {
	position: relative;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 4.5rem);
	background: var(--marquage);
	color: var(--ecorce);
	border-radius: var(--radius-lg);
}

.cta__rings {
	position: absolute;
	top: 50%;
	right: -9rem;
	width: 36rem;
	max-width: none;
	color: var(--ecorce);
	opacity: 0.22;
	transform: translateY(-50%);
	pointer-events: none;
}

.cta__body { position: relative; max-width: 38rem; }
.cta__title { margin-bottom: 0.75rem; font-size: clamp(2.4rem, 5vw, 4rem); }
.cta__text { margin-bottom: 1.75rem; font-size: 1.15rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.cta .btn--primary { background: var(--ecorce); color: #fff; }
.cta .btn--primary:hover { background: #000; color: #fff; }
.cta .btn--ghost-light { border-color: var(--ecorce); color: var(--ecorce); }
.cta .btn--ghost-light:hover { background: var(--ecorce); border-color: var(--ecorce); color: #fff; }

/* 12. Pages intérieures
   ========================================================================== */
.page-hero {
	position: relative;
	display: var(--page-title-display, block);
	overflow: hidden;
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
	background: var(--sapin);
	color: #fff;
}

.page-hero__rings {
	position: absolute;
	top: 50%;
	right: -6rem;
	width: 28rem;
	color: var(--aubier);
	opacity: 0.3;
	transform: translateY(-50%);
	pointer-events: none;
}

.page-hero__inner { position: relative; display: flex; align-items: center; gap: 1.5rem; }
.page-hero__icon { flex: none; color: var(--aubier); }
.page-hero__title { margin: 0; font-size: clamp(2.8rem, 6.5vw, 5rem); }

.page-hero__desc {
	max-width: 40rem;
	margin: 0.75rem 0 0;
	color: var(--aubier-soft);
	font-size: 1.1rem;
}

.page-hero__desc p:last-child { margin-bottom: 0; }

.page-body { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

/* Contenu éditorial */
.entry-content { max-width: 52rem; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content .alignwide { max-width: none; }
.entry-content h2 { margin-top: 1.6em; font-size: clamp(2rem, 3.5vw, 2.8rem); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content blockquote {
	margin-inline: 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 4px solid var(--marquage);
	font-size: 1.2rem;
}

.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--aubier-soft); }

.entry__thumb { margin: 0 0 2rem; }
.entry__thumb img { width: 100%; border-radius: var(--radius-lg); }

/* Articles */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
	gap: 2.25rem 1.75rem;
	margin-bottom: 2.5rem;
}

.post-card__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--aubier);
	border-radius: var(--radius-lg);
}

.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__ph { display: block; width: 100%; height: 100%; color: #b98a4e; }
.post-card__ph .rings { width: 100%; height: 100%; }
.post-card__ph .ring { stroke-opacity: 0.6; }
.post-card__meta { margin: 1rem 0 0.3rem; color: var(--brume); font-size: 0.9rem; }
.post-card__title { margin-bottom: 0.5rem; font-size: 1.9rem; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--marquage); text-decoration-thickness: 3px; }
.post-card__excerpt { color: var(--brume); }

.nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.page-numbers {
	display: inline-block;
	min-width: 2.75rem;
	padding: 0.6rem 0.9rem;
	border: 1.5px solid var(--ecorce);
	border-radius: var(--radius);
	color: var(--ecorce);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

a.page-numbers:hover,
.page-numbers.current { background: var(--ecorce); color: #fff; }

/* 404 */
.notfound {
	position: relative;
	overflow: hidden;
	padding-block: clamp(4rem, 12vw, 9rem);
	background: var(--sapin-deep);
	color: #fff;
}

.notfound__rings {
	position: absolute;
	top: 50%;
	right: -12rem;
	width: 46rem;
	color: var(--aubier);
	opacity: 0.35;
	transform: translateY(-50%);
	pointer-events: none;
}

.notfound__inner { position: relative; }
.notfound__title { margin: 0; font-size: clamp(7rem, 24vw, 16rem); font-weight: 900; line-height: 0.8; }
.notfound__text { max-width: 28rem; margin: 1.25rem 0 2rem; color: var(--aubier-soft); font-size: 1.25rem; }
.notfound .btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.notfound .btn--ghost:hover { background: #fff; color: var(--sapin-deep); }

/* 13. Formulaires
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1.5px solid #b3b8aa;
	border-radius: var(--radius);
	background: #fff;
	color: var(--ecorce);
	font: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--sapin);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(242, 107, 29, 0.45);
}

label { font-weight: 600; }

.contact-form-wrap { max-width: 44rem; }
.contact-form .field { margin: 0 0 1.1rem; }
.contact-form .field label { display: block; margin-bottom: 0.35rem; font-size: 0.95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.req { color: var(--marquage-deep); }
.hp { position: absolute; left: -9999px; }

.notice {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 5px solid var(--sapin);
	border-radius: var(--radius);
	background: var(--sauge);
}

.notice--error { border-left-color: var(--marquage-deep); background: #fbe3d3; }

@media (max-width: 600px) {
	.field-row { grid-template-columns: 1fr; }
}

/* 14. Pied de page
   ========================================================================== */
.site-footer {
	background: var(--ecorce);
	color: var(--aubier-soft);
}

.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:hover { color: var(--marquage); }

.footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	padding-block: clamp(3rem, 6vw, 5rem);
}

.footer__brand .brand,
.footer__brand .brand:hover { color: var(--aubier); }
.footer__brand .brand__cadet { color: #fff; }
.footer__brand .brand__sciage { color: var(--marquage); }
.footer__brand { margin-bottom: 1rem; }
.footer__col p { max-width: 24rem; }

.widget__title {
	margin-bottom: 1rem;
	color: #fff;
	font-size: 1.6rem;
}

.footer__contact,
.footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__contact li {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	margin-bottom: 0.75rem;
}

.footer__contact .icon { flex: none; margin-top: 0.2rem; color: var(--aubier); }
.footer__menu li { margin-bottom: 0.5rem; }

.footer__bar { border-top: 1px solid rgba(239, 217, 174, 0.2); font-size: 0.9rem; }

.footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-block: 1.25rem;
}

.footer__bar p { margin: 0; }

@media (max-width: 960px) {
	.footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
	.footer__grid { grid-template-columns: 1fr; }
}

/* WhatsApp flottant */
.wa-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 3.6rem;
	height: 3.6rem;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 8px 22px rgba(18, 48, 36, 0.35);
	transition: transform 0.2s;
}

.wa-float:hover { color: #fff; transform: scale(1.06); }

/* 15. Elementor
   ========================================================================== */
.elementor-widget-cadet_hero .elementor-widget-container,
.elementor-widget-cadet_categories .elementor-widget-container,
.elementor-widget-cadet_flow .elementor-widget-container,
.elementor-widget-cadet_products .elementor-widget-container,
.elementor-widget-cadet_features .elementor-widget-container,
.elementor-widget-cadet_cta .elementor-widget-container {
	margin: 0;
	padding: 0;
}

.elementor-page .entry-content { max-width: none; }
.elementor-editor-active .wa-float { display: none; }
