/* =================================================================
   GAUME BOIS — habillage « bois clair »
   Couche purement visuelle, chargée en dernier : elle ne modifie ni le
   HTML ni les scripts. Chêne blond et miel, ivoire, accents caramel,
   titres en Cormorant Garamond (hébergée sur le site — DSGVO).
   Contrastes vérifiés WCAG AA (texte courant ≥ 4,5:1) : sur les fonds
   chêne, le texte reste brun foncé (--ink / --ink-soft).
   ================================================================= */

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2-variations"), url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Palette ---------- */
/* Les noms d'origine (--forest, --sap…) sont conservés : toute la maquette bascule d'un coup. */
:root {
	--paper: #fbf7ef;          /* ivoire */
	--surface: #f3e9d8;        /* crème */
	--surface-deep: #eadcc3;
	--line: #e0cfb2;
	--ink: #2e1d10;            /* brun encre */
	--ink-soft: #523b25;
	--ink-faint: #6d5438;
	--forest: #80501f;         /* caramel : boutons, liens */
	--forest-deep: #5e3814;    /* caramel foncé */
	--sap: #c49a55;            /* miel doré (décor) */
	--sap-bright: #dcb877;
	--sap-text: #7a4f12;       /* accent lisible sur ivoire, crème et chêne */
	--alert: #8a2b14;
	--ok: #2f6b3e;

	--chene: #e2cba4;          /* chêne blond : grands bandeaux */
	--miel: #d4b384;
	--serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--radius: 3px;
	--focus: 0 0 0 3px rgba(196, 154, 85, .55);
	--ombre: 0 18px 40px -24px rgba(94, 56, 20, .45);
	--filet: linear-gradient(90deg, transparent, var(--sap) 18%, var(--sap-bright) 50%, var(--sap) 82%, transparent);

	/* Veinage de chêne clair : fibres fines + reflets, sans image. */
	--veinage:
		repeating-linear-gradient(94deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 9px),
		repeating-linear-gradient(87deg, rgba(128, 80, 31, .07) 0 2px, transparent 2px 23px),
		repeating-linear-gradient(91deg, rgba(128, 80, 31, .045) 0 14px, transparent 14px 41px),
		radial-gradient(ellipse 80% 70% at 80% 15%, rgba(255, 250, 238, .55), transparent 70%),
		radial-gradient(ellipse 70% 90% at 5% 100%, rgba(160, 110, 50, .18), transparent 70%);
	--veinage-clair:
		repeating-linear-gradient(93deg, rgba(128, 80, 31, .03) 0 1px, transparent 1px 11px),
		repeating-linear-gradient(88deg, rgba(128, 80, 31, .022) 0 12px, transparent 12px 37px);
}

body { background: var(--paper); color: var(--ink); }
::selection { background: var(--sap-bright); color: var(--ink); }
a { color: var(--forest); }
a:hover { color: var(--forest-deep); }

/* ---------- Typographie ---------- */
h1, h2, h3, .hero__title, .brand__name, .price, .minicart__titre, .minicart__total strong, legend {
	font-family: var(--serif);
	font-stretch: normal;
	letter-spacing: 0;
}
h1, h2, h3 { font-weight: 600; line-height: 1.08; color: var(--ink); }
/* Chiffres alignés : les chiffres « elzéviriens » de la Cormorant faisaient lire « 1 RM » comme « I RM ». */
h1, h2, h3, .hero__title, .price, .card__title, .minicart__total strong, .totals, .order-total, .woocommerce-order-overview strong {
	font-variant-numeric: lining-nums proportional-nums;
	font-feature-settings: "lnum" 1, "pnum" 1;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
.eyebrow, .configurator__legend, .colophon h2, .filters__group h2, .table th, .conditions thead th, .product__ref, .catnav__lien, .spec__label {
	letter-spacing: .12em;
	text-transform: uppercase;
}
.eyebrow { font-size: .72rem; font-weight: 600; color: var(--sap-text); }

/* ---------- Boutons ---------- */
.btn, .woocommerce .button, #place_order {
	border-radius: var(--radius);
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: .8rem;
	padding: .85rem 1.6rem;
	transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.btn { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.btn:hover, #place_order:hover { box-shadow: var(--ombre); transform: translateY(-1px); }
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--paper); }
.btn--lg, #place_order { font-size: .86rem; padding: 1rem 1.9rem; }
.btn--ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: var(--paper); }
/* Bouton principal : caramel, liseré miel. */
.btn--gold, .gb-cookies__bouton[data-gb-choix="accepter"] {
	background: linear-gradient(180deg, #8d5a26, var(--forest-deep));
	border-color: var(--sap);
	color: var(--paper);
}
.btn--gold:hover { background: var(--forest-deep); border-color: var(--sap-bright); color: var(--paper); }
#place_order { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--paper); }
#place_order:hover { background: var(--forest); }

/* ---------- Barre utilitaire et en-tête ---------- */
.utility { background: var(--miel); color: var(--ink); letter-spacing: .06em; }
.utility li + li::before { content: "◆"; color: var(--forest-deep); font-size: .5rem; margin-right: var(--sp-5); vertical-align: .15em; }
.utility ul { gap: var(--sp-2) var(--sp-5); }
.utility a { color: var(--ink); font-weight: 600; }
.utility a:hover { color: var(--forest-deep); }

.masthead { background: rgba(251, 247, 239, .96); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.masthead::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: var(--filet); opacity: .8; }
.masthead__inner { gap: var(--sp-4); }
.brand__name { font-size: 1.6rem; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.brand__name span { font-family: "Archivo", sans-serif; letter-spacing: .14em; text-transform: uppercase; font-size: .58rem; color: var(--sap-text); margin-top: 3px; }
.brand__mark { width: 40px; height: 40px; flex-basis: 40px; }
.nav ul { gap: var(--sp-4); }
.nav a { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 861px) {
	.nav ul { gap: var(--sp-3); }
	.nav a { font-size: .64rem; letter-spacing: .04em; }
	.brand__name span { display: none; }
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sap); color: var(--forest-deep); }
.cart-link { border-color: var(--forest); color: var(--forest); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.cart-link:hover { background: var(--forest); color: var(--paper); }
.cart-count { background: var(--forest); color: var(--paper); font-weight: 700; }
.cart-link:hover .cart-count { background: var(--paper); color: var(--forest); }
.nav-toggle { border-color: var(--forest); color: var(--forest); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }

/* ---------- Bandeau d'accueil : chêne blond veiné ---------- */
.hero { background-color: var(--chene); background-image: var(--veinage); color: var(--ink); }
.hero::after { height: 2px; background: var(--filet); opacity: 1; }
.hero .eyebrow { color: var(--forest-deep) !important; letter-spacing: .24em; }
.hero__title, .hero--compact .hero__title { font-weight: 500; letter-spacing: -.01em; line-height: 1.02; color: var(--ink); max-width: 18ch; }
.hero--compact .hero__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.hero__lead { color: var(--ink-soft); }
.configurator { background: rgba(251, 247, 239, .72); border: 1px solid rgba(128, 80, 31, .28); box-shadow: 0 30px 60px -34px rgba(94, 56, 20, .45); backdrop-filter: blur(2px); }
.configurator__legend { color: var(--forest-deep); }
.field > span { color: var(--ink-soft); letter-spacing: .06em; }
.field select { background-color: var(--paper); border-color: var(--line); color: var(--ink); }
.field select:focus { border-color: var(--sap); }

/* ---------- Catalogue ---------- */
.section--catalogue { background-image: var(--veinage-clair); }
.catnav__lien { font-size: .72rem; border-color: var(--line); background: var(--paper); color: var(--ink); }
.catnav__lien:hover { border-color: var(--sap); background: var(--surface); }
.catnav__compte { background: var(--miel); color: var(--ink); border-radius: 999px; }
.catnav__lien--tout { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.catnav__lien--tout:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.catgroupe__head { border-bottom: 1px solid var(--line); position: relative; }
.catgroupe__head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 2px; background: var(--sap); }
.catgroupe__head h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.catgroupe--vitrine .catgroupe__head { border-bottom-width: 1px; border-bottom-color: var(--line); }
.catgroupe--vitrine .catgroupe__head::after { width: 200px; background: var(--filet); }
.catgroupe--vitrine .catgroupe__head h2 { font-size: clamp(2.2rem, 3.8vw, 2.9rem); }

/* Cartes : ivoire, cadre fin, lumière chaude au survol. */
.grid { gap: var(--sp-4); background: transparent; border: 0; }
.catgroupe .grid .card { outline: 0; }
.card {
	background: #fffdf8;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.card:hover { border-color: var(--sap); box-shadow: var(--ombre); transform: translateY(-3px); }
.card__media { background: var(--surface); border-radius: 2px; }
.card__media img { transition: transform 500ms ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__flag { background: var(--forest-deep); color: var(--paper); letter-spacing: .08em; text-transform: uppercase; }
.card__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.spec { background: transparent; border-block: 1px solid var(--line); }
.spec li { background: transparent; border-bottom: 1px dotted var(--line); }
.spec li:last-child { border-bottom: 0; }
.spec__label { font-size: .64rem; }
.price { font-size: 1.75rem; font-weight: 600; color: var(--ink); }
.price-unit, .price-unit .gb-mention-prix { color: var(--ink-faint); }
/* Le prix par unité de mesure porte aussi la classe « price » : il reste dans la police de texte. */
.price-unit .price, .product__vat .price, .price.price-unit { font-family: "Archivo", sans-serif; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.card .btn--ghost { border-color: var(--line); }
.card:hover .btn--ghost { border-color: var(--forest); }
.catalogue__tout .btn { padding: 1.05rem 2.4rem; }

/* ---------- Sections crème ---------- */
.section--tint { background-color: var(--surface); background-image: var(--veinage-clair); }
.proof { gap: var(--sp-6); }
.proof > div { position: relative; padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.proof > div::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--sap); }
.proof h3, .steps h3 { font-size: 1.45rem; }
.steps li { border-top: 1px solid var(--line); position: relative; padding-top: var(--sp-5); }
.steps li::before {
	content: counter(step, upper-roman);
	font-family: var(--serif); font-size: 1.6rem; font-weight: 600; font-style: italic; color: var(--sap-text);
}
.section__head h2 { position: relative; padding-bottom: var(--sp-3); }

/* ---------- Boutique, fiche produit ---------- */
.crumbs, .crumbs a { color: var(--ink-faint); letter-spacing: .04em; }
.filters__group { border-top-color: var(--line); }
.filters__group h2 { font-family: "Archivo", sans-serif; font-size: .7rem; color: var(--sap-text); }
.filters input { accent-color: var(--forest); }
.shop-head { border-bottom: 0; position: relative; }
.shop-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--filet); }
.product__media { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--ombre); }
.product h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.product .price { font-size: 2.4rem; }
.product__ref { font-size: .66rem; color: var(--sap-text); }
.stock--in { color: var(--ok); }
.addform input[type="number"] { border-color: var(--line); background: #fffdf8; }
.attrs th { color: var(--ink-faint); }
.note { background-color: var(--surface); background-image: var(--veinage-clair); border-left: 2px solid var(--sap); }
.related { border-top: 0; position: relative; }
.related::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--filet); }

/* ---------- Panier, caisse, confirmation ---------- */
.table th { font-size: .66rem; }
.totals li:last-child { border-top: 1px solid var(--ink); font-family: var(--serif); font-size: 1.5rem; }
.checkout__review { background-color: var(--surface); background-image: var(--veinage-clair); border: 1px solid var(--line); box-shadow: var(--ombre); }
.checkout__review .order-total td { font-family: var(--serif); font-size: 1.35rem; border-top-color: var(--ink); }
legend { font-size: 1.6rem; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { background: #fffdf8; border-color: var(--line); }
input:focus, select:focus, textarea:focus { border-color: var(--sap); outline: none; box-shadow: var(--focus); }
.wc_payment_method, .paiement { border-color: var(--forest); background: #fffdf8; }
.paybox { border-left-color: var(--sap); background: #fffdf8; }
.conditions thead th { background: var(--surface); }
.woocommerce-order-overview li { background: #fffdf8; }
.woocommerce-order-overview strong { font-family: var(--serif); font-size: 1.35rem; }
.woocommerce-bacs-bank-details { border-left-color: var(--sap); background-image: var(--veinage-clair); }
.woocommerce-message, .woocommerce-info { border-left-color: var(--sap); }
/* Récapitulatif de la caisse : les lignes grises de WooCommerce reprennent la matière du thème. */
.checkout__review .shop_table, .checkout__review .shop_table tr, .checkout__review .shop_table td, .checkout__review .shop_table th,
.woocommerce-order-details .shop_table tr, .woocommerce-order-details .shop_table td, .woocommerce-order-details .shop_table th {
	background: transparent !important;
}
.checkout__review .shop_table { background: #fffdf8 !important; border: 1px solid var(--line); }
.checkout__review .shop_table td { padding-inline: var(--sp-3); }

/* ---------- Mini-panier ---------- */
.minicart { background: rgba(46, 29, 16, .35); }
.minicart__panneau { border-left-color: var(--sap); background: var(--paper); }
.minicart__tete { background-color: var(--chene); background-image: var(--veinage); color: var(--ink); }
.minicart__titre { font-size: 1.6rem; color: var(--ink); }
.minicart__fermer { border-color: rgba(46, 29, 16, .35); color: var(--ink); }
.minicart__fermer:hover { background: rgba(255, 255, 255, .45); }
.minicart__pied { background-color: var(--surface); background-image: var(--veinage-clair); }
.minicart__total strong { font-size: 1.7rem; }
.cart-fab { background: var(--forest); color: var(--paper); box-shadow: 0 14px 34px -12px rgba(94, 56, 20, .55); border: 1px solid var(--sap); }
.cart-fab:hover { background: var(--forest-deep); }
.cart-fab__n { background: var(--paper); color: var(--forest-deep); }

/* ---------- Pages éditoriales ---------- */
.page-head { border-bottom: 0; position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--filet); }
.prose h2 { font-size: 1.9rem; }
.prose h3 { font-size: 1.45rem; }
.prose th { color: var(--ink-faint); }

/* ---------- Pied de page : chêne blond veiné ---------- */
.colophon { background-color: var(--chene); background-image: var(--veinage); color: var(--ink-soft); position: relative; }
.colophon::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--filet); }
.colophon h2 { font-family: "Archivo", sans-serif; color: var(--forest-deep); font-size: .7rem; }
.colophon__intro h2 { font-family: var(--serif); font-size: 1.9rem; letter-spacing: .08em; text-transform: none; color: var(--ink); }
.colophon__intro p { color: var(--ink-soft); }
.colophon a { color: var(--ink); }
.colophon a:hover { color: var(--forest-deep); text-decoration: underline; }
.colophon__grid, .colophon__garanties, .colophon__mediation { border-color: rgba(128, 80, 31, .25); }
.colophon__identite dt { color: var(--ink-soft); }
.colophon__identite dd { color: var(--ink); }
.colophon__garanties li { color: var(--ink-soft); }
.colophon__garanties strong { color: var(--forest-deep); letter-spacing: .1em; text-transform: uppercase; }
.colophon__mediation p, .colophon__base { color: var(--ink-soft); }

/* ---------- Bannière cookies ---------- */
.gb-cookies { background-color: var(--chene); background-image: var(--veinage); color: var(--ink); border-top: 1px solid var(--sap); }
.gb-cookies__titre { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.gb-cookies__texte { color: var(--ink-soft); }
.gb-cookies__texte a { color: var(--forest-deep); }
.gb-cookies__bouton { border-color: var(--forest); color: var(--forest); background: transparent; }
.gb-cookies__bouton:hover { background: rgba(255, 255, 255, .5); }
.gb-cookies__bouton[data-gb-choix="accepter"] { color: var(--paper); }

/* ---------- Tablettes : menu replié (même bouton « Menü » que sur mobile) ---------- */
/* Les titres du menu en capitales espacées ne tiennent pas sur une ligne sous 1 120 px. */
@media (max-width: 1120px) and (min-width: 861px) {
	.nav-toggle { display: inline-block; margin-left: auto; }
	.nav { display: none; order: 4; width: 100%; margin-left: 0; border-top: 1px solid var(--line); padding-block: var(--sp-3); }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav li { border-bottom: 1px solid var(--line); }
	.nav a { padding: var(--sp-3) 0; font-size: .74rem; }
	.masthead__inner { flex-wrap: wrap; gap: var(--sp-3); }
	.brand__name span { display: block; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	.nav ul { background: var(--paper); }
	.brand__name { font-size: 1.35rem; }
}
@media (max-width: 600px) {
	.grid { gap: var(--sp-3); }
	.hero--compact .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
	.utility li + li::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.card:hover, .btn:hover, #place_order:hover { transform: none; }
	.card:hover .card__media img { transform: none; }
}

/* =================================================================
   Corrections d'audit — accessibilité et robustesse
   ================================================================= */

/* Les intitulés de filtres étaient des <h2> placés avant le <h1> de la page :
   ce sont désormais des paragraphes, présentés à l'identique. */
.filters__titre {
	margin: 0 0 var(--sp-3);
	font-family: "Archivo", sans-serif;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sap-text);
}

/* Titres de produits très longs : ils débordaient la page à 390 px. */
.card__title, .product h1, .table__name, .minicart__nom {
	overflow-wrap: anywhere;
}

/* Focus clavier visible : site.css neutralisait l'outline (1,59:1 mesuré, 3:1 exigés). */
:focus-visible {
	outline: 2px solid var(--forest-deep);
	outline-offset: 2px;
	box-shadow: var(--focus);
}

/* Cibles tactiles d'au moins 24 px (WCAG 2.2, critère 2.5.8). */
@media (pointer: coarse), (max-width: 860px) {
	.colophon a,
	.prose a,
	.conditions__liste a,
	.trust a,
	.crumbs a {
		display: inline-block;
		min-height: 24px;
		padding-block: 4px;
	}
	.filters label {
		min-height: 32px;
		align-items: center;
	}
	.filters input[type="checkbox"] {
		width: 20px;
		height: 20px;
	}
	.filters__reset {
		min-height: 32px;
		padding-block: 6px;
	}
	.show-password-input,
	.woocommerce-form-login__submit {
		min-height: 24px;
	}
}

/* Les caractéristiques disparaissaient des cartes sur mobile, alors qu'elles portent
   les critères d'achat (essence, longueur, quantité, humidité). */
@media (max-width: 600px) {
	.spec { display: grid; }
	.spec li { font-size: .68rem; }
}

/* Coordonnées de la barre supérieure et ligne « paiement » du pied de page. */
.utility__contact {
	display: flex;
	gap: var(--sp-4);
	margin: 0;
	font-weight: 600;
}
.colophon__paiement {
	margin: var(--sp-4) 0 0;
	font-size: var(--fs-2xs);
	color: var(--ink-soft);
	letter-spacing: .06em;
	text-transform: uppercase;
}
