/*
 * Styles du site — La Morille Gourmande.
 *
 * Référence : DESIGN_SYSTEM.md, à la racine du dépôt. Les numéros de section
 * (§8.1…) renvoient au composant décrit là-bas. Toutes les valeurs passent par
 * les jetons de tokens.css ; une valeur en dur ici est une erreur à corriger,
 * sauf les rares constantes de mise en page commentées sur place.
 *
 * Ordre : polices · base · structure · animations · boutons · composants dans
 * l'ordre de la page · pages · WooCommerce · responsive.
 */

/* =============================================================================
 * Polices auto-hébergées (DESIGN_SYSTEM.md §4) : Platypi pour les titres et les
 * chiffres (variable 300 → 800), Hanken Grotesk pour le texte (300 → 700)
 * ========================================================================== */

@font-face {
	font-family: 'Platypi';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/platypi-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Platypi';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/platypi-latin.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: 'Platypi';
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/platypi-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Platypi';
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/platypi-italic-latin.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: 'Hanken Grotesk';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('../fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Hanken Grotesk';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('../fonts/hanken-grotesk-latin.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: 'Hanken Grotesk';
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url('../fonts/hanken-grotesk-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Hanken Grotesk';
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url('../fonts/hanken-grotesk-italic-latin.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;
}

/* =============================================================================
 * Base
 * ========================================================================== */

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

/* Contrôles natifs (cases, boutons radio, barres de défilement) en sombre :
   sinon la case des CGV reste blanche. */
html {
	color-scheme: dark;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/*
 * Fond du site (DESIGN_SYSTEM.md §3.1 bis) : un seul fond, continu, quelle que
 * soit la section. Quatre lueurs très douces réparties sur toute la hauteur de
 * la page (les pourcentages suivent la longueur de la page, pas les sections),
 * et un grain fixé à l'écran (body::before).
 */
body {
	margin: 0;
	overflow-x: hidden;
	background-color: var(--color-bg);
	background-image:
		radial-gradient(70vw 60vh at 88% 18%, rgb(235 210 143 / 0.045), transparent 70%),
		radial-gradient(60vw 55vh at 8% 42%, rgb(255 255 255 / 0.025), transparent 70%),
		radial-gradient(70vw 60vh at 92% 68%, rgb(235 210 143 / 0.04), transparent 70%),
		radial-gradient(60vw 60vh at 12% 92%, rgb(255 255 255 / 0.02), transparent 70%);
	color: var(--color-text);
	font-family: var(--font-text);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

/* Grain : de la matière dans le noir, et pas de bandes dans les dégradés. */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
	opacity: 0.035;
	pointer-events: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

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

h1,
h2,
h3,
h4,
h5 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: var(--fw-regular);
	line-height: var(--lh-title);
}

p {
	margin: 0;
}

strong {
	font-weight: var(--fw-medium);
}

figure {
	margin: 0;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

/* Focus visible partout (DESIGN_SYSTEM.md §12) — absent en v1. */
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

:focus:not(:focus-visible) {
	outline: none;
}

/* Les ancres arrivent sous la barre de navigation, pas derrière. */
[id] {
	scroll-margin-top: var(--navbar-offset);
}

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

.lmg-evitement {
	position: absolute;
	top: var(--space-s);
	left: var(--space-s);
	z-index: calc(var(--z-fab) + 1);
	padding: var(--space-xs) var(--space-s);
	background: var(--color-accent);
	color: var(--color-bg);
	border-radius: var(--radius-s);
	transform: translateY(-200%);
	transition: transform var(--dur-base) ease;
}

.lmg-evitement:focus {
	transform: translateY(0);
}

main:focus {
	outline: none;
}

/* Phosphor dessine dans une marge interne de ≈ 10 % et en trait fin : à
   1.25em, l'icône a le poids optique d'une capitale du texte voisin. */
.lmg-icone {
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
	vertical-align: -0.25em;
}

/* Les logos de paiement (Font Awesome) n'ont pas cette marge. */
.lmg-icone--cc-visa,
.lmg-icone--cc-mastercard,
.lmg-icone--cc-apple-pay,
.lmg-icone--google-pay {
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}

.lmg-masque {
	display: none !important;
}

.lmg-centre {
	text-align: center;
}

/* =============================================================================
 * Structure
 * ========================================================================== */

/* v2.4 : de l'espace, et aucun fond propre (DESIGN_SYSTEM.md §3.1 bis, §5). */
.lmg-section {
	padding-block: var(--space-section);
	/*
	 * Les éléments qui entrent « depuis la droite » (.lmg-revele--droite) sont
	 * décalés de 30 px avant d'apparaître : sans ceci, la page déborde et se
	 * déplace latéralement sur mobile. `clip` et non `hidden` : `hidden` ferait
	 * de la section un conteneur de défilement et casserait le position: sticky
	 * de la scène L'Excellence.
	 */
	overflow-x: clip;
}

.lmg-conteneur {
	width: 100%;
	max-width: calc(var(--container-max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.lmg-conteneur--etroit {
	max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.lmg-conteneur--texte {
	max-width: calc(var(--container-text) + 2 * var(--gutter));
}

/* §8.3 — En-tête de section : titre, filet doré, sous-titre */
.lmg-section__titre {
	margin-bottom: var(--space-s);
	color: var(--color-accent);
	font-size: var(--fs-section-title);
	font-weight: var(--fw-light);
	letter-spacing: 1px;
	text-align: center;
}

.lmg-section__titre::after {
	content: '';
	display: block;
	width: 40px;
	height: 1px;
	margin: 1.1rem auto 0;
	background-color: var(--color-accent);
	opacity: 0.6;
}

.lmg-section__sous-titre {
	margin-bottom: var(--space-3xl);
	color: var(--color-text-muted);
	font-family: var(--font-display);
	font-size: var(--fs-long);
	font-style: italic;
	text-align: center;
}

/* §8.4 — Texte long */
.lmg-texte-long {
	color: var(--color-text-2);
	font-size: var(--fs-long);
	line-height: var(--lh-long);
}

.lmg-texte-long p + p {
	margin-top: var(--space-m);
}

.lmg-texte-long strong {
	color: var(--color-accent);
}

/* §8.5 — Image éditoriale */
.lmg-image-editoriale {
	width: 100%;
	height: 500px;
	object-fit: cover;
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-image);
}

.lmg-image-editoriale--16-9 {
	height: auto;
	aspect-ratio: 16 / 9;
}

/* v2.3 — Petits éléments partagés par les pages */

/* Libellé en capitales espacées : « Bon à savoir », « Prochains marchés »… */
.lmg-libelle {
	margin-bottom: var(--space-s);
	color: var(--color-accent);
	font-family: var(--font-text);
	font-size: var(--fs-label);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-label);
	line-height: 1.4;
	text-transform: uppercase;
}

/* Lien « suite » sous une section : « Notre savoir-faire → ». */
.lmg-suite {
	margin-top: var(--space-xl);
	text-align: center;
}

.lmg-suite--gauche {
	text-align: left;
}

.lmg-bloc-etroit {
	max-width: var(--container-narrow);
	margin-inline: auto;
}

/* Titre aligné à gauche, dans une colonne (aperçu des marchés). */
.lmg-titre-colonne {
	margin-bottom: var(--space-2xs);
	color: var(--color-accent);
	font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.2rem);
	font-weight: var(--fw-light);
	letter-spacing: 1px;
}

.lmg-titre-colonne::after {
	content: '';
	display: block;
	width: 40px;
	height: 1px;
	margin-top: 1.1rem;
	background-color: var(--color-accent);
	opacity: 0.6;
}

.lmg-titre-colonne__sous-titre {
	margin-bottom: var(--space-l);
	color: var(--color-text-muted);
	font-family: var(--font-display);
	font-size: var(--fs-long);
	font-style: italic;
}

/* =============================================================================
 * Animations d'apparition (DESIGN_SYSTEM.md §7.1)
 *
 * Masquées seulement quand JavaScript tourne (classe lmg-js posée dans le
 * <head>) : sans JavaScript, tout reste visible. En v1, le contenu restait
 * invisible si le script ne se chargeait pas.
 * ========================================================================== */

.lmg-js .lmg-revele {
	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity var(--dur-reveal) var(--ease-out),
		transform var(--dur-reveal) var(--ease-out);
	transition-delay: calc(var(--delai, 0) * 0.1s);
}

.lmg-js .lmg-revele--gauche {
	transform: translateX(-30px);
}

.lmg-js .lmg-revele--droite {
	transform: translateX(30px);
}

.lmg-js .lmg-revele--zoom {
	transform: scale(0.9);
}

.lmg-js .lmg-revele.est-visible {
	opacity: 1;
	transform: none;
}

/* Le délai ne sert qu'à l'entrée : il ne doit pas ralentir les survols. */
.lmg-js .lmg-revele.est-visible.est-arrive {
	transition-delay: 0s;
}

/* =============================================================================
 * Boutons (DESIGN_SYSTEM.md §8.13)
 *
 * Rectangle, capitales espacées, aucun halo ni soulèvement. Trois niveaux :
 * principal (plein, réservé à l'achat), secondaire (contour qui se remplit),
 * lien (souligné). Le remplissage glisse de gauche à droite, lentement.
 * ========================================================================== */

.lmg-bouton {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	min-height: 52px;
	padding: 1.05rem 2.4rem;
	overflow: hidden;
	background: transparent;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius-s);
	color: var(--color-accent);
	font-family: var(--font-text);
	font-size: var(--fs-label);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-label);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		color var(--dur-calm) var(--ease-calm),
		border-color var(--dur-calm) var(--ease-calm);
}

/* Le remplissage, posé sous le libellé. */
.lmg-bouton::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--color-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--dur-calm) var(--ease-calm);
}

.lmg-bouton:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.lmg-bouton .lmg-icone {
	width: 1.3rem;
	height: 1.3rem;
}

/* Principal : plein, l'or clair glisse par-dessus au survol. */
.lmg-bouton--principal {
	background-color: var(--color-accent);
	color: var(--color-bg);
}

.lmg-bouton--principal::after {
	background-color: var(--color-accent-light);
}

/* Secondaire : contour or, se remplit au survol. */
.lmg-bouton--secondaire:hover {
	color: var(--color-bg);
}

/* Le hero est très sombre et texturé : un voile léger sous le contour. */
.lmg-hero .lmg-bouton--secondaire {
	padding-inline: var(--space-2xl);
	background-color: rgb(10 10 10 / 0.25);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

/* Lien : souligné, la flèche avance au survol. */
.lmg-bouton--lien {
	min-height: 44px;
	padding: 0.5rem 0;
	overflow: visible;
	border-width: 0 0 1px;
	border-radius: 0;
}

.lmg-bouton--lien::after {
	display: none;
}

.lmg-bouton--lien:hover {
	border-color: var(--color-text);
	color: var(--color-text);
}

.lmg-bouton--lien .lmg-icone {
	transition: transform var(--dur-calm) var(--ease-calm);
}

.lmg-bouton--lien:hover .lmg-icone {
	transform: translateX(4px);
}

.lmg-bouton--large {
	display: flex;
	width: 100%;
	max-width: 500px;
	min-height: 56px;
	margin-inline: auto;
}

/* v2.3 : le bouton Commander de la navigation. */
.lmg-bouton--compact {
	min-height: 44px;
	padding: 0.7rem 1.5rem;
}

.lmg-bouton:disabled,
.lmg-bouton[aria-disabled='true'] {
	opacity: 0.5;
	cursor: not-allowed;
}

.lmg-bouton:disabled::after,
.lmg-bouton[aria-disabled='true']::after {
	display: none;
}

.lmg-bouton.est-en-cours {
	cursor: progress;
}

.lmg-bouton.est-en-cours::before {
	content: '';
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: lmg-tourner 0.8s linear infinite;
}

.lmg-boutons-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-s);
	max-width: 500px;
	margin-inline: auto;
}

/* Un seul bouton (numéro WhatsApp masqué, v0.3.0) : il garde sa largeur et
   se place au centre du bloc, au lieu de rester dans la colonne de gauche. */
.lmg-boutons-contact:has(> :only-child) {
	grid-template-columns: minmax(0, 1fr);
	max-width: calc((500px - var(--space-s)) / 2);
}

/* =============================================================================
 * §8.1 — Navigation
 * ========================================================================== */

.lmg-nav {
	position: fixed;
	inset: 0 0 auto;
	z-index: var(--z-navbar);
	padding-block: var(--space-l);
	transition:
		padding var(--dur-slow) var(--ease-standard),
		background-color var(--dur-slow) var(--ease-standard),
		box-shadow var(--dur-slow) var(--ease-standard);
}

.lmg-nav.est-scrolle {
	padding-block: var(--space-s);
	background: var(--color-bg-glass);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow-nav);
}

.lmg-nav__conteneur {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: calc(var(--container-max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.lmg-nav__logo img {
	width: auto;
	height: 50px;
	transition: height var(--dur-slow) ease;
}

.lmg-nav.est-scrolle .lmg-nav__logo img {
	height: 35px;
}

/* v2.3 : quatre liens en capitales espacées, puis le bouton Commander. */
.lmg-nav__menu {
	display: flex;
	align-items: center;
	gap: 2.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* v2 : liens dorés (« fini le blanc »), en Platypi. v2.6 : or clair au survol,
   jamais blancs. */
.lmg-nav__lien {
	position: relative;
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: var(--fw-medium);
	letter-spacing: 0.18em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color var(--dur-calm) var(--ease-calm);
}

.lmg-nav__lien::after {
	content: '';
	position: absolute;
	bottom: -6px;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: var(--color-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--dur-calm) var(--ease-calm);
}

.lmg-nav__lien:hover {
	color: var(--color-accent-light);
}

.lmg-nav__lien:hover::after,
.lmg-nav__lien[aria-current='page']::after {
	transform: scaleX(1);
	transform-origin: left;
}

.lmg-nav__action {
	margin-left: var(--space-2xs);
}

.lmg-nav__burger {
	position: relative;
	z-index: var(--z-burger);
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0.5rem;
	background: none;
	border: 0;
	cursor: pointer;
}

.lmg-nav__barre {
	display: block;
	width: 25px;
	height: 2px;
	background-color: var(--color-accent);
	transition:
		transform var(--dur-base) ease,
		opacity var(--dur-base) ease;
}

.lmg-nav__burger[aria-expanded='true'] .lmg-nav__barre:nth-child(2) {
	transform: translateY(7px) rotate(45deg);
}

.lmg-nav__burger[aria-expanded='true'] .lmg-nav__barre:nth-child(3) {
	opacity: 0;
}

.lmg-nav__burger[aria-expanded='true'] .lmg-nav__barre:nth-child(4) {
	transform: translateY(-7px) rotate(-45deg);
}

.lmg-nav__voile {
	position: fixed;
	inset: 0;
	z-index: var(--z-overlay);
	background: rgb(0 0 0 / 0.5);
	opacity: 0;
	transition: opacity var(--dur-slow) ease;
}

.lmg-nav__voile.est-visible {
	opacity: 1;
}

/* =============================================================================
 * §8.2 — Hero
 * ========================================================================== */

.lmg-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	text-align: center;
}

/* v2.4 : en bas, le bois devient transparent et laisse voir le fond du site
   (grain et lueurs compris) : aucune ligne entre le hero et la suite
   (DESIGN_SYSTEM.md §3.1 bis). */
.lmg-hero__fond {
	position: absolute;
	inset: 0;
	-webkit-mask-image: linear-gradient(to bottom, #000 45%, rgb(0 0 0 / 0.45) 75%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 45%, rgb(0 0 0 / 0.45) 75%, transparent 100%);
}

/* v2 : texture de bois noir craquelé, affichée presque pleinement — à 0.15
   comme l'ancienne photo, elle disparaîtrait dans le noir. */
.lmg-hero__fond img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.9;
}

/* Vignette : le centre reste lisible sous le logo, les reflets cuivrés
   vivent sur les bords. */
.lmg-hero__fond::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(
		ellipse at center,
		color-mix(in srgb, var(--color-bg) 30%, transparent) 0%,
		color-mix(in srgb, var(--color-bg) 70%, transparent) 100%
	);
}

/* v2.8 : tout le hero tient dans l'écran, quelle que soit sa taille. Une
   colonne de la hauteur exacte de l'écran : l'accroche et le bouton prennent
   leur place, les paquets prennent le reste (dans une limite), le tout centré.
   Ce sont eux, avec le bouton, qui comptent (DESIGN_SYSTEM.md §8.2). Plus de
   logo dans le hero : il est dans la navbar et sur les étiquettes. */
.lmg-hero__contenu {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: var(--container-narrow);
	height: 100vh;
	height: 100svh;
	min-height: 20rem;
	padding: calc(var(--navbar-offset) + var(--space-xs)) var(--gutter) calc(48px + var(--space-m) + var(--space-s));
}

.lmg-hero__contenu > * {
	flex: none;
}

/* v2.8 : la zone des paquets prend la hauteur libre, jusqu'à 45 % de l'écran
   et 400px. */
.lmg-hero__contenu > .lmg-hero__paquets {
	flex: 1 1 0;
	min-height: 7rem;
	max-height: min(45vh, 400px);
	max-height: min(45svh, 400px);
}

.lmg-hero__paquets {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	margin: 0 auto var(--space-m);
}

/* Les deux paquets regroupés, comme sur le montage du client : le grand
   derrière à gauche, un peu surélevé, le petit devant à droite, qui le
   chevauche d'environ 30 % de sa largeur. Chacun glisse vers l'autre d'un
   quart de sa largeur : le groupe, ruban compris, reste centré.

   Même LARGEUR pour les deux, comme en vrai : le plus haut prend la hauteur,
   l'autre la part que lui donnent ses proportions (--hauteur, posée par
   template-parts/accueil/hero.php). Sur un écran étroit, la largeur plafonne
   et l'image se réduit sans se déformer, toujours posée en bas. */
.lmg-hero__paquet {
	--regroupe: 24.5%;
	position: relative;
	width: auto;
	max-width: 50%;
	height: calc(96% * var(--hauteur, 1));
	object-fit: contain;
	object-position: bottom;
	filter: drop-shadow(0 20px 28px rgb(0 0 0 / 0.55));
	/* Légère inclinaison, comme sur le montage du client : les deux paquets
	   s'ouvrent en éventail. Pivot au pied du sachet (son milieu est à 38 %
	   de l'image, le ruban occupe la droite) : il reste posé. */
	rotate: var(--incline, 0deg);
	transform-origin: 38% 100%;
}

.lmg-hero__paquet--arriere {
	--incline: -3deg;
	bottom: 4%;
	transform: translateX(var(--regroupe));
}

.lmg-hero__paquet--avant {
	--incline: 4deg;
	z-index: 1;
	transform: translateX(calc(-1 * var(--regroupe)));
}

/* Mouvement (DESIGN_SYSTEM.md §7.5) : à l'arrivée, les paquets apparaissent
   un peu écartés et se rejoignent ; ensuite, sur ordinateur, ils suivent très
   légèrement la souris, en sens opposés (--lmg-px et --lmg-py, de -1 à 1,
   posées par assets/js/site.js). `translate` s'ajoute au `transform` du
   regroupement sans le remplacer. */
@media (prefers-reduced-motion: no-preference) {
	.lmg-hero__paquet {
		transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.lmg-hero__paquet--arriere {
		translate: calc(var(--lmg-px, 0) * -5px) calc(var(--lmg-py, 0) * -4px);
		animation: lmg-paquet-arriere 1.6s cubic-bezier(0.22, 0.7, 0.2, 1) 0.15s both;
	}

	.lmg-hero__paquet--avant {
		translate: calc(var(--lmg-px, 0) * 10px) calc(var(--lmg-py, 0) * 6px);
		animation: lmg-paquet-avant 1.6s cubic-bezier(0.22, 0.7, 0.2, 1) 0.15s both;
	}
}

/* Ils arrivent droits et prennent leur inclinaison en se rejoignant. */
@keyframes lmg-paquet-arriere {
	from {
		opacity: 0;
		transform: translateX(-6%);
		rotate: 0deg;
	}

	35% {
		opacity: 1;
	}

	to {
		opacity: 1;
		transform: translateX(var(--regroupe));
		rotate: var(--incline);
	}
}

@keyframes lmg-paquet-avant {
	from {
		opacity: 0;
		transform: translateX(6%) translateY(3%);
		rotate: 0deg;
	}

	35% {
		opacity: 1;
	}

	to {
		opacity: 1;
		transform: translateX(calc(-1 * var(--regroupe)));
		rotate: var(--incline);
	}
}

/* v2.8 : Platypi droite et légère, comme les titres (DESIGN_SYSTEM.md §4).
   Taille plafonnée par la hauteur de l'écran, pour laisser la place aux
   paquets. */
.lmg-hero__accroche {
	max-width: 46ch;
	margin: 0 auto var(--space-m);
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: clamp(1.05rem, 0.95rem + 0.8vw, 1.6rem);
	font-size: clamp(1.05rem, min(0.95rem + 0.8vw, 2.7svh), 1.6rem);
	font-weight: var(--fw-light);
	line-height: 1.35;
	letter-spacing: 0.01em;
	text-wrap: balance;
}

.lmg-hero__defiler {
	position: absolute;
	bottom: var(--space-s);
	left: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgb(0 0 0 / 0.25);
	border-radius: 50%;
	color: var(--color-accent);
	transform: translateX(-50%);
	transition: background-color var(--dur-base) ease;
	animation: lmg-rebond 2s infinite;
}

.lmg-hero__defiler:hover {
	background: rgb(0 0 0 / 0.35);
}

.lmg-hero__defiler .lmg-icone {
	width: 1.5rem;
	height: 1.5rem;
}

/* Écran bas : le chevron cède sa place aux paquets, les écarts se resserrent. */
@media (max-height: 640px) {
	.lmg-hero__contenu {
		padding-bottom: var(--space-m);
	}

	.lmg-hero__paquets,
	.lmg-hero__accroche {
		margin-bottom: var(--space-s);
	}

	.lmg-hero__defiler {
		display: none;
	}
}

/* Téléphone à l'horizontale : deux colonnes, les paquets à gauche sur toute
   la hauteur, l'accroche et le bouton à droite. */
@media (orientation: landscape) and (max-height: 520px) {
	.lmg-hero__contenu {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: 1fr auto auto 1fr;
		column-gap: var(--space-l);
		align-items: center;
		max-width: var(--container-text);
	}

	.lmg-hero__contenu > .lmg-hero__paquets {
		grid-column: 1;
		grid-row: 1 / -1;
		height: 100%;
		max-height: none;
		margin: 0;
	}

	.lmg-hero__contenu > :not(.lmg-hero__paquets) {
		grid-column: 2;
	}

	.lmg-hero__accroche {
		grid-row: 2;
	}

	.lmg-hero__contenu > .lmg-bouton {
		grid-row: 3;
		justify-self: center;
		padding-inline: var(--space-l);
		white-space: nowrap;
	}
}

/* =============================================================================
 * L'Excellence — présentation, scène, atouts
 * ========================================================================== */

.lmg-presentation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3xl);
	align-items: center;
}

/* v2.3 — Savoir-faire : les trois chapitres, photo et texte en alternance. */
.lmg-chapitres {
	display: grid;
	gap: var(--space-4xl);
	margin-block: var(--space-4xl);
}

.lmg-chapitre {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: var(--space-3xl);
	align-items: center;
}

.lmg-chapitre:nth-child(even) .lmg-chapitre__media {
	order: 2;
}

.lmg-chapitre__titre {
	margin-bottom: var(--space-m);
	color: var(--color-accent);
	font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
	font-weight: var(--fw-light);
	line-height: var(--lh-title);
}

.lmg-savoir-faire .lmg-atouts {
	margin-bottom: var(--space-l);
}

/* §7.4 — Scène L'Excellence (v2.4) ----------------------------------------
 *
 * Par défaut (sans JavaScript, mouvement réduit, petit écran) : les trois
 * chapitres l'un sous l'autre. Sur grand écran, site.js pose .est-scene : la
 * scène reste à l'écran le temps de la piste, les chapitres y sont superposés
 * et seul le chapitre .est-actif est visible. Les fondus sont des transitions,
 * déclenchées au changement de chapitre, pas calées au pixel près.
 * ------------------------------------------------------------------------- */

.lmg-scene {
	margin-bottom: var(--space-3xl);
}

.lmg-scene__chapitres {
	display: grid;
	gap: var(--space-4xl);
}

.lmg-scene__chapitre {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: center;
}

/* nth-of-type : le fil (une div) précède les chapitres (des article). */
.lmg-scene:not(.est-scene) .lmg-scene__chapitre:nth-of-type(even) .lmg-scene__photo {
	order: 2;
}

.lmg-scene__photo {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-m);
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
}

.lmg-scene__image,
.lmg-scene__photo .lmg-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	aspect-ratio: auto;
}

.lmg-scene__texte {
	color: rgb(255 255 255 / 0.86);
	font-size: var(--fs-long);
	line-height: var(--lh-long);
}

.lmg-scene__texte p + p {
	margin-top: var(--space-s);
}

.lmg-scene__titre {
	margin-bottom: var(--space-m);
	color: var(--color-accent);
	font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
	font-weight: var(--fw-light);
	line-height: var(--lh-title);
	text-align: left;
}

.lmg-fil {
	display: none;
}

/* La scène. */
.lmg-scene.est-scene {
	height: calc(var(--chapitres) * 90vh + 100vh);
	height: calc(var(--chapitres) * 90svh + 100svh);
}

.est-scene .lmg-scene__collant {
	position: sticky;
	top: 0;
	display: grid;
	align-items: center;
	height: 100vh;
	height: 100svh;
	padding-top: calc(var(--navbar-offset) / 2);
	overflow: hidden;
}

/* Mêmes colonnes que les chapitres : le fil tombe pile au-dessus du texte. */
.est-scene .lmg-scene__chapitres {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 0 clamp(2.5rem, 6vw, 6rem);
}

.est-scene .lmg-scene__chapitre {
	grid-column: 1 / -1;
	grid-row: 1;
	align-items: start;
}

.est-scene .lmg-scene__photo {
	max-height: 70svh;
	opacity: 0;
	transition: opacity 1.1s var(--ease-calm);
}

.est-scene .lmg-scene__image {
	transform: scale(1.06);
	transition: transform 2s var(--ease-calm);
}

.est-scene .lmg-scene__texte {
	padding-top: 5.25rem;
	font-size: var(--fs-base);
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s var(--ease-calm),
		transform 0.9s var(--ease-calm);
}

.est-scene .est-actif .lmg-scene__photo,
.est-scene .est-actif .lmg-scene__texte {
	opacity: 1;
}

.est-scene .est-actif .lmg-scene__image,
.est-scene .est-actif .lmg-scene__texte {
	transform: none;
}

/* Le texte suivant arrive quand le précédent s'est effacé. */
.est-scene .est-actif .lmg-scene__texte {
	transition-delay: 0.35s;
}

.est-scene .lmg-scene__libelle {
	display: none;
}

/* Fil de progression (DESIGN_SYSTEM.md §7.4) : une ligne, les trois titres,
   et un point que site.js déplace avec un ressort. site.js écrit, par titre,
   --prox (proximité du point, 0 → 1), --attire (attraction, en px), --lx
   (abscisse du point dans le titre) et --lr (rayon de la lumière). */
.est-scene .lmg-fil {
	position: relative;
	z-index: 2;
	display: block;
	grid-column: 2;
	grid-row: 1;
	align-self: start;
	height: 4rem;
	pointer-events: none;
}

.lmg-fil__etapes {
	display: flex;
	gap: 2.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-label);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-label);
	line-height: 1.4;
	text-transform: uppercase;
}

.lmg-fil__etapes li {
	--prox: 0;
	--attire: 0;
	--lx: -999px;
	--lr: 0px;

	color: color-mix(in srgb, var(--color-accent) calc(var(--prox) * 100%), var(--color-text-muted));
	transform: translate(calc(var(--attire) * 1px), calc(var(--prox) * -2px));
}

/* Lumière : le titre est éclairé depuis le point, par en dessous. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
	.lmg-fil__etapes li {
		background-image: radial-gradient(
			circle at var(--lx) 140%,
			var(--color-accent) 0,
			var(--color-accent) var(--lr),
			rgb(153 153 153 / 0.45) calc(var(--lr) + 64px)
		);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
}

.lmg-fil__ligne {
	position: absolute;
	top: 2.6rem;
	right: 0;
	left: 0;
	height: 1px;
	background-color: var(--color-line);
}

.lmg-fil__trace {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 1px;
	background: linear-gradient(to right, rgb(235 210 143 / 0.1), rgb(235 210 143 / 0.75));
}

/* Soulignement : le point s'étale sous le titre. */
.lmg-fil__souligne {
	position: absolute;
	top: 2.6rem;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--color-accent);
	will-change: transform, width;
}

/* 7 × 7 px : site.js le centre en retranchant 3.5 px. */
.lmg-fil__point {
	position: absolute;
	top: calc(2.6rem - 3px);
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--color-accent);
	will-change: transform;
}

.lmg-fil__point::after {
	content: '';
	position: absolute;
	inset: -1px;
	border: 1px solid var(--color-accent);
	border-radius: 50%;
	opacity: 0;
}

.lmg-fil.est-pose .lmg-fil__point::after {
	animation: lmg-pouls 2.6s var(--ease-calm) infinite;
}

/* §8.7 — Cartes atouts ------------------------------------------------------ */

/* Sans cartes : quatre colonnes séparées par des filets verticaux. */
.lmg-atouts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lmg-atout {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--space-l);
	border-left: 1px solid var(--color-line);
	text-align: center;
}

.lmg-atout:first-child {
	border-left: 0;
}

.lmg-atout__icone {
	margin-bottom: var(--space-s);
	color: var(--color-accent);
	font-size: 2.5rem;
}

.lmg-atout__titre {
	margin-bottom: 0.8rem;
	color: var(--color-accent);
	font-size: 1.1rem;
}

.lmg-atout p {
	color: var(--color-text-muted);
	font-size: 0.95rem;
	/* Textes de longueurs très différentes (v0.3.0) : pas de mot seul en
	   dernière ligne. */
	text-wrap: pretty;
}

/* =============================================================================
 * §8.8 — Marchés & Événements
 * ========================================================================== */

.lmg-marches__texte {
	max-width: 760px;
	margin: 0 auto var(--space-3xl);
	text-align: center;
}

.lmg-marches__photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-l);
}

/* v2.3 — Aperçu sur l'accueil : photo à gauche, texte à droite. */
.lmg-marches__apercu {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: var(--space-3xl);
	align-items: center;
}

.lmg-marches__apercu .lmg-marches__liste {
	margin-top: var(--space-l);
}

.lmg-marches__apercu .lmg-suite {
	margin-top: var(--space-l);
}

.lmg-marches__prochains {
	max-width: 760px;
	margin: 0 auto var(--space-3xl);
	text-align: center;
}

/* Prochains marchés : date en or, lieu, filets entre les lignes. */
.lmg-marches__liste {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.lmg-marches__liste li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem var(--space-m);
	padding-block: 0.9rem;
	border-bottom: 1px solid var(--color-line);
}

.lmg-marches__liste li:first-child {
	border-top: 1px solid var(--color-line);
}

.lmg-marches__date {
	min-width: 10rem;
	color: var(--color-accent);
}

.lmg-marches__lieu {
	color: var(--color-text-2);
}

.lmg-marches .lmg-marches__photos {
	margin-bottom: var(--space-l);
}

/* =============================================================================
 * §8.9 — Recettes
 * ========================================================================== */

/* Liste éditoriale : des filets entre les recettes, pas de cartes. */
.lmg-recettes {
	display: grid;
}

details.lmg-recette {
	border-bottom: 1px solid var(--color-line);
}

details.lmg-recette:first-child {
	border-top: 1px solid var(--color-line);
}

.lmg-recette__resume-ligne {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		'titre chevron'
		'meta chevron';
	align-items: center;
	gap: 0.25rem var(--space-s);
	padding: 1.75rem 0;
	list-style: none;
	cursor: pointer;
}

.lmg-recette__resume-ligne::-webkit-details-marker {
	display: none;
}

.lmg-recette__titre {
	grid-area: titre;
	color: var(--color-accent);
	font-size: var(--fs-card-title);
	font-weight: var(--fw-light);
	transition: color var(--dur-calm) var(--ease-calm);
}

details.lmg-recette:hover .lmg-recette__titre {
	color: var(--color-text);
}

.lmg-recette__resume-ligne .lmg-recette__meta {
	grid-area: meta;
}

.lmg-recette__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.lmg-recette__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.lmg-recette__meta .lmg-icone {
	color: var(--color-accent);
}

.lmg-recette__chevron {
	grid-area: chevron;
	display: inline-flex;
	color: var(--color-accent);
	transition: transform var(--dur-slow) var(--ease-standard);
}

.lmg-recette[open] .lmg-recette__chevron {
	transform: rotate(180deg);
}

/* Ouverture animée là où le navigateur sait animer une hauteur « auto ».
   Ailleurs, l'accordéon s'ouvre d'un coup : c'est la même information. */
@supports (interpolate-size: allow-keywords) {
	:root {
		interpolate-size: allow-keywords;
	}

	details.lmg-recette::details-content {
		height: 0;
		overflow: clip;
		transition:
			height var(--dur-slow) var(--ease-standard),
			content-visibility var(--dur-slow) allow-discrete;
	}

	details.lmg-recette[open]::details-content {
		height: auto;
	}
}

.lmg-recette__contenu {
	padding: 0 0 var(--space-l);
}

.lmg-recette__media {
	margin-bottom: var(--space-m);
}

.lmg-recette__photo {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius-m);
}

.lmg-recette__resume {
	margin-bottom: var(--space-l);
	color: var(--color-text-2);
	font-family: var(--font-display);
	font-size: var(--fs-long);
	font-style: italic;
}

.lmg-recette__colonnes {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: var(--space-xl);
}

.lmg-recette h4 {
	margin-bottom: var(--space-s);
	color: var(--color-accent);
	font-size: 1.1rem;
}

.lmg-recette__ingredients ul {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--color-text-2);
}

.lmg-recette__ingredients li {
	position: relative;
	padding-left: 1.1rem;
	margin-bottom: 0.4rem;
}

.lmg-recette__ingredients li::before {
	content: '';
	position: absolute;
	top: 0.65em;
	left: 0;
	width: 6px;
	height: 6px;
	background-color: var(--color-accent);
	border-radius: 50%;
}

.lmg-recette__etapes ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: etape;
}

.lmg-recette__etapes li {
	position: relative;
	min-height: 32px;
	margin-bottom: var(--space-m);
	padding-left: calc(32px + var(--space-s));
	color: var(--color-text-2);
	counter-increment: etape;
}

.lmg-recette__etapes li::before {
	content: counter(etape);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--color-accent);
	border-radius: 50%;
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: 0.95rem;
	line-height: 1;
}

.lmg-recette__etapes h5 {
	margin-bottom: 0.3rem;
	padding-top: 0.2rem;
	color: var(--color-text);
	font-size: 1rem;
	font-weight: var(--fw-medium);
}

.lmg-recette__etapes p + p {
	margin-top: 0.5rem;
}

.lmg-recette__conseil {
	margin-top: var(--space-l);
	padding: 1.25rem var(--space-m);
	background-color: var(--color-accent-a10);
	border-left: 3px solid var(--color-accent);
	border-radius: var(--radius-s);
	color: var(--color-text-2);
	font-family: var(--font-display);
	font-style: italic;
}

.lmg-recette__conseil-titre {
	margin-bottom: 0.3rem;
	color: var(--color-accent);
	font-style: normal;
	font-weight: var(--fw-medium);
}

.lmg-recette__conclusion {
	margin-top: var(--space-l);
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: var(--fs-long);
	font-style: italic;
	text-align: center;
}

.lmg-recette__lien {
	margin-top: var(--space-l);
	font-size: 0.9rem;
	text-align: right;
}

.lmg-recette__lien a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
}

.lmg-recette__lien a:hover {
	text-decoration: underline;
}

.lmg-recettes__toutes {
	margin-top: var(--space-xl);
	text-align: center;
}

.lmg-recette__entete-page {
	margin-bottom: var(--space-xl);
	text-align: center;
}

.lmg-recette__entete-page .lmg-section__sous-titre {
	margin-bottom: var(--space-m);
}

.lmg-recette__entete-page .lmg-recette__meta {
	justify-content: center;
}

/* =============================================================================
 * §8.10 — Commander
 * ========================================================================== */

/* Un cadre fin sur fond noir, plus de bloc gris ni d'ombre. */
.lmg-commande__panneau {
	padding: var(--space-2xl);
	background-color: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-l);
}

.lmg-commande__intertitre {
	margin-bottom: var(--space-l);
	color: var(--color-accent);
	font-size: var(--fs-card-title);
	text-align: center;
}

.lmg-commande__indisponible {
	color: var(--color-text-2);
	text-align: center;
}

.lmg-formats {
	display: grid;
	gap: var(--space-s);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lmg-format {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) auto minmax(0, 0.9fr);
	align-items: center;
	gap: var(--space-s);
	padding: 1.25rem var(--space-m);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-m);
	transition:
		border-color var(--dur-calm) var(--ease-calm),
		background-color var(--dur-calm) var(--ease-calm);
}

.lmg-format:hover,
.lmg-format.a-quantite {
	border-color: var(--color-accent);
}

.lmg-format.a-quantite {
	background-color: var(--color-accent-a05);
}

.lmg-format__nom {
	display: flex;
	flex-direction: column;
}

.lmg-format__poids {
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: var(--fw-light);
	line-height: 1.1;
}

.lmg-format__libelle {
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.lmg-format__prix {
	color: var(--color-text);
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: var(--fw-light);
}

.lmg-format__sous-total {
	color: var(--color-text-2);
	font-family: var(--font-display);
	font-size: 1.1rem;
	text-align: right;
}

.lmg-format__epuise {
	grid-column: 3 / -1;
	text-align: right;
}

.lmg-format.est-epuise .lmg-format__nom,
.lmg-format.est-epuise .lmg-format__prix {
	opacity: 0.5;
}

.lmg-format.est-epuise:hover {
	border-color: var(--color-line);
}

.lmg-badge {
	display: inline-block;
	padding: 0.25rem 0.7rem;
	border: 1px solid var(--color-text-muted);
	border-radius: var(--radius-s);
	color: var(--color-text-muted);
	font-size: 0.72rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
}

/* Sélecteur de quantité : un seul bloc à filets, [ − | 1 | + ]. */
.lmg-quantite {
	display: inline-flex;
	align-items: stretch;
	justify-self: start;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-s);
}

.lmg-quantite__bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 46px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--color-accent);
	cursor: pointer;
	transition:
		background-color var(--dur-calm) var(--ease-calm),
		color var(--dur-calm) var(--ease-calm);
}

.lmg-quantite__bouton .lmg-icone {
	width: 1.2rem;
	height: 1.2rem;
}

.lmg-quantite__bouton:hover:not(:disabled) {
	background-color: var(--color-accent-a10);
	color: var(--color-text);
}

.lmg-quantite__bouton:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.lmg-quantite__champ {
	width: 48px;
	height: 46px;
	padding: 0;
	background: transparent;
	border: 0;
	border-inline: 1px solid var(--color-line);
	border-radius: 0;
	color: var(--color-text);
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: var(--fw-light);
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.lmg-quantite__champ:focus {
	outline: none;
}

.lmg-quantite__champ:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: -2px;
}

.lmg-quantite__champ::-webkit-outer-spin-button,
.lmg-quantite__champ::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* Informations produit */
.lmg-infos-produit {
	margin-top: var(--space-m);
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.lmg-infos-produit summary {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--color-text-2);
	cursor: pointer;
}

.lmg-infos-produit summary .lmg-icone {
	color: var(--color-accent);
}

.lmg-infos-produit p {
	margin-top: var(--space-xs);
	padding-left: 1.4rem;
	line-height: 1.8;
}

/* Limite de 1 kg */
.lmg-limite {
	margin-top: var(--space-m);
	padding: var(--space-s) 1.25rem;
	background-color: var(--color-accent-a10);
	border-left: 3px solid var(--color-accent);
	border-radius: var(--radius-s);
}

.lmg-limite p {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: var(--space-s);
	color: var(--color-text-2);
}

.lmg-limite p .lmg-icone {
	margin-top: 0.3em;
	color: var(--color-accent);
}

.lmg-limite .lmg-boutons-contact {
	margin-inline: 0;
}

/* Récapitulatif (v1) */
.lmg-recap {
	margin-block: var(--space-m);
	padding: var(--space-l);
	background-color: var(--color-bg-2);
	border-radius: var(--radius-m);
}

.lmg-recap__ligne {
	display: flex;
	justify-content: space-between;
	gap: var(--space-s);
	margin-bottom: var(--space-s);
	color: var(--color-text-2);
}

.lmg-recap__ligne .est-offerte {
	color: var(--color-success);
}

.lmg-recap__total {
	margin: var(--space-s) 0 0;
	padding-top: var(--space-s);
	border-top: 1px solid var(--color-line);
	color: var(--color-text);
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: var(--fw-regular);
}

.lmg-jauge {
	margin-bottom: var(--space-s);
}

.lmg-jauge__texte {
	margin-bottom: 0.4rem;
	color: var(--color-text-muted);
	font-size: 0.85rem;
}

.lmg-jauge.est-atteinte .lmg-jauge__texte {
	color: var(--color-success);
}

.lmg-jauge__barre {
	height: 2px;
	overflow: hidden;
	background-color: var(--color-bg-3);
}

.lmg-jauge__barre span {
	display: block;
	width: var(--remplissage, 0%);
	height: 100%;
	background-color: var(--color-accent);
	transition: width var(--dur-slow) var(--ease-standard);
}

.lmg-commande__delai {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: var(--space-m);
	color: var(--color-text-2);
	font-size: 0.9rem;
}

.lmg-commande__delai .lmg-icone {
	color: var(--color-accent);
}

.lmg-commande__erreur {
	margin-bottom: var(--space-m);
	padding: var(--space-s) 1.25rem;
	background-color: color-mix(in srgb, var(--color-error) 10%, transparent);
	border-left: 3px solid var(--color-error);
	border-radius: var(--radius-s);
	color: var(--color-error);
}

.lmg-paiements,
.lmg-pied__paiements {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-s);
	margin: var(--space-m) 0 0;
	padding: 0;
	color: var(--color-text-muted);
	list-style: none;
}

/* En bloc : chaque logo est centré dans la rangée, quelle que soit sa hauteur,
   au lieu d'être posé sur la ligne de base du texte. */
.lmg-paiements .lmg-icone,
.lmg-pied__paiements .lmg-icone {
	display: block;
	width: auto;
	height: 24px;
}

/* TWINT : le logo officiel, plus large que les cartes ; à 20px de haut, sa
   carte a la hauteur de celles de Visa et Mastercard. */
.lmg-paiements .lmg-icone--twint,
.lmg-pied__paiements .lmg-icone--twint {
	height: 20px;
}

/* =============================================================================
 * §8.14 — Restaurateurs
 * ========================================================================== */

.lmg-resto {
	padding: var(--space-2xl);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-l);
	text-align: center;
}

.lmg-resto__accroche {
	margin-bottom: var(--space-m);
	color: var(--color-accent);
	font-size: var(--fs-card-title);
}

.lmg-resto__texte {
	margin-bottom: var(--space-xl);
	color: var(--color-text-2);
	line-height: var(--lh-long);
}

.lmg-resto__texte p:first-child {
	font-size: var(--fs-long);
}

.lmg-resto__texte p + p {
	margin-top: var(--space-s);
	opacity: 0.9;
}

.lmg-resto__actions-titre {
	margin-bottom: var(--space-m);
	color: var(--color-text-2);
	font-size: var(--fs-long);
}

.lmg-resto__atouts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-l);
	margin: var(--space-2xl) 0 0;
	padding: var(--space-l) 0 0;
	border-top: 1px solid var(--color-line);
	list-style: none;
}

.lmg-resto__atouts li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
	color: var(--color-text-2);
	font-size: 0.9rem;
}

.lmg-resto__atouts .lmg-icone {
	width: 2.5rem;
	height: 2.5rem;
	color: var(--color-accent);
}

/* v2.3 — Bandeau Professionnels sur l'accueil */
.lmg-bandeau-pro__titre {
	margin-bottom: var(--space-2xs);
	color: var(--color-accent);
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
	font-weight: var(--fw-light);
}

.lmg-bandeau-pro .lmg-bandeau-pro__texte {
	margin-bottom: var(--space-m);
}

/* =============================================================================
 * §8.10 — Page produit : Bon à savoir (v2.3)
 * ========================================================================== */

.lmg-bon-a-savoir__colonnes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: var(--space-l);
}

.lmg-bon-a-savoir__colonne {
	padding: var(--space-m) var(--space-l);
	border-left: 1px solid var(--color-line);
	color: var(--color-text-2);
	font-size: 0.95rem;
	line-height: var(--lh-long);
}

.lmg-bon-a-savoir__colonne:first-child {
	padding-left: 0;
	border-left: 0;
}

.lmg-bon-a-savoir__colonne h3 {
	margin-bottom: var(--space-s);
	color: var(--color-accent);
	font-size: 1.15rem;
}

.lmg-bon-a-savoir__colonne p + p {
	margin-top: var(--space-2xs);
}

/* =============================================================================
 * §8.15 — Pied de page
 * ========================================================================== */

/* v2.4 : sur le fond du site, séparé par un filet. */
.lmg-pied {
	padding: var(--space-3xl) 0 var(--space-m);
	border-top: 1px solid var(--color-line);
}

.lmg-pied__conteneur {
	max-width: calc(var(--container-max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.lmg-pied__colonnes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--space-2xl);
	margin-bottom: var(--space-l);
}

.lmg-pied__titre {
	margin-bottom: var(--space-m);
	color: var(--color-accent);
	font-family: var(--font-text);
	font-size: var(--fs-label);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
}

.lmg-pied__colonne p,
.lmg-pied__colonne li,
.lmg-pied__colonne a {
	color: var(--color-text-2);
	line-height: 1.8;
	text-decoration: none;
}

.lmg-pied__colonne a:hover {
	color: var(--color-accent);
}

.lmg-pied__zones {
	margin-top: var(--space-s);
	font-size: 0.85rem;
	opacity: 0.8;
}

.lmg-pied__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.4rem;
}

.lmg-pied__liens {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lmg-pied__bas {
	padding-top: var(--space-l);
	border-top: 1px solid var(--color-line);
	color: var(--color-text-muted);
	font-size: 0.9rem;
	text-align: center;
}

.lmg-pied__bas > * + * {
	margin-top: 0.5rem;
}

.lmg-pied__bas a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--dur-base) ease;
}

.lmg-pied__bas a:hover {
	color: var(--color-text);
}

.lmg-pied__bas .lmg-pied__nickel:hover {
	color: var(--color-nickel);
}

.lmg-pied__livraison {
	font-size: 0.85rem;
}

.lmg-pied__paiements {
	margin: var(--space-s) 0;
}

.lmg-pied__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 1.25rem;
	margin-block: var(--space-s);
	padding: 0;
	font-size: 0.85rem;
	list-style: none;
}

.lmg-drapeau {
	display: inline-block;
	width: 20px;
	height: 14px;
	margin: 0 5px;
	vertical-align: middle;
}

/* Révéler un contact (anti-robots, v1) */
.lmg-reveler {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 32px;
	padding: 0.2rem 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--color-line);
	color: var(--color-accent);
	font-size: 0.85rem;
	cursor: pointer;
	transition:
		color var(--dur-calm) var(--ease-calm),
		border-color var(--dur-calm) var(--ease-calm);
}

.lmg-reveler:hover {
	border-color: var(--color-text);
	color: var(--color-text);
}

/* Retour en haut (v1) */
.lmg-haut {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: var(--z-fab);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background-color: rgb(10 10 10 / 0.6);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid var(--color-line);
	border-radius: 50%;
	color: var(--color-accent);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition:
		opacity var(--dur-fast) ease,
		transform var(--dur-fast) ease,
		visibility var(--dur-fast),
		border-color var(--dur-calm) var(--ease-calm);
}

.lmg-haut.est-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lmg-haut:hover {
	border-color: var(--color-accent);
}

/* =============================================================================
 * §10.1 — Placeholder (photo absente)
 * ========================================================================== */

.lmg-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--gradient-dark);
	border: 1px solid var(--color-bg-3);
	border-radius: var(--radius-m);
}

.lmg-placeholder img {
	width: clamp(48px, 15%, 120px);
	height: auto;
	opacity: 0.25;
}

/* =============================================================================
 * Pages (légales, recettes, commande)
 * ========================================================================== */

.lmg-page {
	padding-top: calc(var(--navbar-offset) + var(--space-4xl));
	min-height: 70vh;
}

.lmg-contenu-page {
	max-width: 760px;
	margin-inline: auto;
	color: var(--color-text-2);
	font-size: 1.05rem;
	line-height: var(--lh-long);
}

.lmg-contenu-page h2 {
	margin: var(--space-xl) 0 var(--space-s);
	color: var(--color-accent);
	font-size: 1.4rem;
}

.lmg-contenu-page p,
.lmg-contenu-page ul,
.lmg-contenu-page ol {
	margin: 0 0 var(--space-s);
}

.lmg-contenu-page ul,
.lmg-contenu-page ol {
	padding-left: 1.25rem;
}

.lmg-contenu-page li {
	margin-bottom: 0.4rem;
}

.lmg-contenu-page a {
	color: var(--color-accent);
}

.lmg-a-completer {
	padding: 0.1rem 0.3rem;
	background-color: color-mix(in srgb, var(--color-warning) 20%, transparent);
	border-radius: var(--radius-s);
	color: var(--color-warning);
}

.lmg-fil {
	margin-bottom: var(--space-l);
	font-size: 0.9rem;
}

.lmg-fil a {
	color: var(--color-text-muted);
	text-decoration: none;
}

.lmg-fil a:hover {
	color: var(--color-accent);
}

.lmg-appel {
	margin-top: var(--space-3xl);
	padding: var(--space-l);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-l);
	text-align: center;
}

.lmg-appel p {
	margin-bottom: var(--space-m);
	color: var(--color-text-2);
}

.lmg-vide {
	color: var(--color-text-muted);
	text-align: center;
}

/* =============================================================================
 * WooCommerce — paiement et confirmation (DESIGN_SYSTEM.md §8.11, §8.12, §8.17)
 *
 * Les feuilles de style de WooCommerce sont retirées (inc/boutique.php) : tout
 * est mis en forme ici, aux couleurs du site.
 * ========================================================================== */

.lmg-boutique {
	color: var(--color-text-2);
}

.lmg-boutique h3,
.lmg-boutique h2 {
	margin-bottom: var(--space-m);
	color: var(--color-accent);
	font-size: var(--fs-card-title);
}

/*
 * v2.7 : un seul parcours à gauche (paiement express, coordonnées, paiement),
 * le récapitulatif à droite, collant. Les zones nommées placent les blocs de
 * WooCommerce et de l'extension Stripe sans toucher à leurs gabarits ; le
 * paiement est déplacé sous les coordonnées par inc/boutique-woocommerce.php.
 */
.lmg-boutique form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
	grid-template-areas:
		'notices notices'
		'express recap'
		'ou recap'
		'client recap'
		'etape2 recap'
		'paiement recap';
	grid-template-rows: auto auto auto auto auto 1fr;
	align-items: start;
	column-gap: clamp(var(--space-2xl), 7vw, var(--space-4xl));
	max-width: 1120px;
	margin-inline: auto;
}

.lmg-boutique .woocommerce-NoticeGroup,
.lmg-boutique form.checkout > .woocommerce-notices-wrapper {
	grid-area: notices;
}

/* Paiement express : extension Stripe officielle (celle du site en ligne). */
.lmg-boutique #wc-stripe-express-checkout-element {
	grid-area: express;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0 !important; /* l'extension pose une marge en ligne */
}

.lmg-boutique #wc-stripe-express-checkout-element::before,
.lmg-boutique #wc-stripe-express-checkout-button-separator::before,
.lmg-boutique .wc-stripe-banner-checkout legend,
.lmg-boutique .wc-stripe-banner-checkout .banner-divider,
.lmg-boutique .woocommerce-billing-fields > h3::before,
.lmg-boutique .lmg-paiement-titre::before {
	color: var(--color-text-muted);
	font-family: var(--font-text);
	font-size: var(--fs-label);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-label);
	line-height: 1.4;
	text-transform: uppercase;
}

.lmg-boutique #wc-stripe-express-checkout-element::before {
	content: 'Paiement express';
	flex-basis: 100%;
	margin-bottom: var(--space-2xs);
	text-align: center;
}

/* Apple Pay, Google Pay côte à côte ; l'un sous l'autre s'ils manquent de place. */
.lmg-boutique #wc-stripe-express-checkout-element > .StripeElement {
	flex: 1 1 14rem;
	min-width: 0;
	margin: 0 !important;
}

/* Le bouton Apple Pay noir se perdrait sur le fond : le même filet que celui
   que Google dessine autour de Google Pay. */
.lmg-boutique #wc-stripe-express-checkout-element-applePay {
	border-radius: var(--radius-s);
	outline: 1px solid rgb(255 255 255 / 0.4);
	outline-offset: -1px;
}

/* « — OU — » de l'extension : « ou » entre deux filets. */
.lmg-boutique #wc-stripe-express-checkout-button-separator {
	grid-area: ou;
	margin: var(--space-l) 0 var(--space-2xl) !important;
	background:
		linear-gradient(var(--color-line), var(--color-line)) left center / calc(50% - 2rem) 1px no-repeat,
		linear-gradient(var(--color-line), var(--color-line)) right center / calc(50% - 2rem) 1px no-repeat;
	font-size: 0;
	line-height: 1;
	text-align: center;
}

.lmg-boutique #wc-stripe-express-checkout-button-separator::before {
	content: 'ou';
	content: 'ou' / ''; /* le texte d'origine reste lu par les lecteurs d'écran */
}

/* Paiement express de Payment Plugins (en local) : même présentation. */
.lmg-boutique .wc-stripe-banner-checkout {
	grid-area: express;
	margin: 0 0 var(--space-2xl);
}

.lmg-boutique .wc-stripe-banner-checkout fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.lmg-boutique .wc-stripe-banner-checkout legend {
	margin: 0 auto var(--space-xs);
	padding: 0;
}

.lmg-boutique .wc-stripe-banner-checkout .banner-divider {
	margin-top: var(--space-l);
}

.lmg-boutique .wc-stripe-banner-checkout .banner-divider::before,
.lmg-boutique .wc-stripe-banner-checkout .banner-divider::after {
	background: var(--color-line);
}

/* Étapes : « Étape 1 » au-dessus de « Vos coordonnées », « Étape 2 » au-dessus
   de « Paiement ». Plus de cadre : les étapes sont séparées par un filet. */
.lmg-boutique #customer_details {
	grid-area: client;
}

.lmg-boutique .woocommerce-billing-fields > h3,
.lmg-boutique .lmg-paiement-titre {
	margin: 0 0 var(--space-l);
}

.lmg-boutique .woocommerce-billing-fields > h3::before,
.lmg-boutique .lmg-paiement-titre::before {
	display: block;
	margin-bottom: var(--space-2xs);
}

.lmg-boutique .woocommerce-billing-fields > h3::before {
	content: 'Étape 1';
}

.lmg-boutique .lmg-paiement-titre::before {
	content: 'Étape 2';
}

.lmg-boutique .lmg-paiement-titre {
	grid-area: etape2;
	margin-top: var(--space-2xl);
	padding-top: var(--space-2xl);
	border-top: 1px solid var(--color-line);
}

.lmg-boutique #payment {
	grid-area: paiement;
}

/* Récapitulatif : un seul cadre, titre compris (celui du gabarit est masqué,
   lmg_entete_recapitulatif() le reprend dans le cadre). */
.lmg-boutique #order_review_heading {
	display: none;
}

.lmg-boutique #order_review {
	position: sticky;
	top: calc(var(--navbar-offset) + var(--space-m));
	grid-area: recap;
	padding: var(--space-l);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-l);
}

.lmg-recap-entete {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-s);
	margin-bottom: var(--space-m);
}

.lmg-boutique .lmg-recap-entete h3 {
	margin: 0;
}

.lmg-recap-entete a {
	color: var(--color-text-muted);
	font-size: var(--fs-small);
	text-decoration: underline;
	text-decoration-color: var(--color-line-strong);
	text-underline-offset: 0.25em;
	transition: color var(--dur-base) var(--ease-standard);
}

.lmg-recap-entete a:hover {
	color: var(--color-accent);
}

.lmg-recap-delai {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: var(--space-m) 0 0;
	padding-top: var(--space-m);
	border-top: 1px solid var(--color-line);
	color: var(--color-text-2);
	font-size: 0.9rem;
}

.lmg-recap-delai .lmg-icone {
	color: var(--color-accent);
	vertical-align: 0;
}

.lmg-boutique .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 var(--space-s);
}

.lmg-boutique .form-row {
	grid-column: 1 / -1;
	margin: 0 0 1.25rem;
}

.lmg-boutique .form-row-first {
	grid-column: 1;
}

.lmg-boutique .form-row-last {
	grid-column: 2;
}

.lmg-boutique .form-row label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--color-text-2);
	font-size: 0.95rem;
}

.lmg-boutique abbr.required,
.lmg-boutique .required {
	color: var(--color-accent);
	text-decoration: none;
	border: 0;
}

.lmg-boutique .optional {
	color: var(--color-text-muted);
	font-size: 0.85rem;
}

/* Champs soulignés : un filet à 3:1 au moins, qui passe à l'or au focus. */
.lmg-boutique .input-text,
.lmg-boutique select,
.lmg-boutique textarea {
	width: 100%;
	min-height: 48px;
	padding: 0;
	background-color: transparent;
	border: 0;
	border-bottom: 1px solid var(--color-line-strong);
	border-radius: 0;
	color: var(--color-text);
	font-family: var(--font-text);
	font-size: var(--fs-base);
	transition:
		border-color var(--dur-calm) var(--ease-calm),
		box-shadow var(--dur-calm) var(--ease-calm);
}

.lmg-boutique textarea {
	min-height: 96px;
	padding: 0.75rem 0;
	resize: vertical;
}

.lmg-boutique .input-text::placeholder,
.lmg-boutique textarea::placeholder {
	color: var(--color-text-muted);
}

/* Le filet s'épaissit à 2 px au focus, sans décaler la mise en page. */
.lmg-boutique .input-text:focus,
.lmg-boutique select:focus,
.lmg-boutique textarea:focus {
	border-color: var(--color-accent);
	box-shadow: 0 1px 0 var(--color-accent);
	outline: none;
}

.lmg-boutique .woocommerce-invalid .input-text,
.lmg-boutique .woocommerce-invalid select {
	border-color: var(--color-error);
	box-shadow: 0 1px 0 var(--color-error);
}

.lmg-boutique .checkout-inline-error-message {
	margin-top: 0.4rem;
	color: var(--color-error);
	font-size: 0.85rem;
}

.lmg-boutique .woocommerce-additional-fields {
	margin-top: var(--space-s);
}

/* Le libellé du champ suffit : « Remarque (facultatif) ». */
.lmg-boutique .woocommerce-additional-fields > h3 {
	display: none;
}

/* Récapitulatif de la commande */
.lmg-boutique table.shop_table {
	width: 100%;
	border-collapse: collapse;
	color: var(--color-text-2);
}

/* v2.7 : comme le récapitulatif de la section Commander (§8.10) : pas de filet
   entre les lignes, un filet avant les totaux, un autre avant le total. */
.lmg-boutique .shop_table th,
.lmg-boutique .shop_table td {
	padding: 0.35rem 0;
	border-bottom: 0;
	font-weight: var(--fw-regular);
	text-align: left;
	vertical-align: top;
}

.lmg-boutique .shop_table td:last-child,
.lmg-boutique .shop_table th:last-child {
	text-align: right;
}

/* « Produit », « Sous-total » : pour les lecteurs d'écran seulement. */
.lmg-boutique .shop_table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.lmg-boutique .shop_table .cart_item td {
	padding: 0 0 var(--space-m);
	vertical-align: baseline;
}

.lmg-boutique .shop_table .cart_item .product-total {
	color: var(--color-text);
}

/* Une ligne : « 50 g » en grand, « × 2 », puis le nom (lmg_ligne_recap_poids()). */
.lmg-ligne-poids {
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: 1.35rem;
	line-height: 1.2;
}

.lmg-boutique .product-quantity {
	margin-left: 0.2rem;
	color: var(--color-text-muted);
	font-size: var(--fs-small);
	font-weight: var(--fw-regular);
	white-space: nowrap;
}

.lmg-ligne-nom {
	display: block;
	margin-top: 0.15rem;
	color: var(--color-text-muted);
	font-size: var(--fs-small);
}

.lmg-boutique .shop_table .cart-subtotal th,
.lmg-boutique .shop_table .cart-subtotal td {
	padding-top: var(--space-m);
	border-top: 1px solid var(--color-line);
}

.lmg-boutique .shop_table .woocommerce-shipping-totals th,
.lmg-boutique .shop_table .woocommerce-shipping-totals td {
	padding-bottom: var(--space-s);
}

.lmg-boutique .shop_table .order-total th,
.lmg-boutique .shop_table .order-total td {
	padding-top: var(--space-s);
	border-top: 1px solid var(--color-line);
	color: var(--color-text);
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: var(--fw-regular);
}

.lmg-boutique .est-offerte {
	color: var(--color-success);
}

.lmg-boutique #shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lmg-boutique #shipping_method label {
	color: var(--color-text-2);
}

.lmg-boutique .woocommerce-shipping-totals td {
	text-align: right;
}

/* Moyens de paiement */
.lmg-boutique .wc_payment_methods {
	margin: 0 0 var(--space-l);
	padding: 0;
	list-style: none;
}

.lmg-boutique .wc_payment_method {
	margin-bottom: 0.75rem;
	padding: var(--space-s);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-m);
}

/* v2.7 : un seul moyen (Stripe, en ligne) : ni cadre, ni titre, ni bouton
   radio (WooCommerce le masque déjà). Le bloc Stripe s'affiche directement. */
.lmg-boutique .wc_payment_method:only-child {
	margin: 0;
	padding: 0;
	border: 0;
}

.lmg-boutique .wc_payment_method:only-child > label {
	display: none;
}

.lmg-boutique .wc_payment_method:only-child > .payment_box {
	margin-top: 0;
}

/* Le fieldset de l'extension Stripe garde sinon le cadre du navigateur. */
.lmg-boutique .payment_box fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Logos de cartes de l'extension Stripe : monochromes, comme ceux du site. */
.lmg-boutique .wc_payment_method img {
	filter: grayscale(1) brightness(1.6);
	opacity: 0.55;
}

.lmg-boutique .wc_payment_method > label {
	color: var(--color-text);
	cursor: pointer;
}

.lmg-boutique .wc_payment_method > input[type='radio'] {
	margin-right: 0.5rem;
	accent-color: var(--color-accent);
}

.lmg-boutique .payment_box {
	margin-top: 0.75rem;
	color: var(--color-text-2);
	font-size: 0.9rem;
}

.lmg-boutique .place-order {
	margin: 0;
}

.lmg-boutique .woocommerce-privacy-policy-text {
	margin-bottom: var(--space-s);
	color: var(--color-text-muted);
	font-size: 0.85rem;
}

.lmg-boutique .woocommerce-privacy-policy-text p {
	margin: 0;
}

.lmg-boutique .woocommerce-terms-and-conditions-wrapper .form-row {
	margin: var(--space-m) 0 var(--space-l);
}

/* v2.7 : la case à gauche, puis le texte et l'astérisque à la suite (en flex,
   l'astérisque restait isolé à droite). */
.lmg-boutique .woocommerce-terms-and-conditions-wrapper .form-row label {
	position: relative;
	display: block;
	margin: 0;
	padding-left: 2rem;
	color: var(--color-text-2);
	cursor: pointer;
}

.lmg-boutique input[type='checkbox'] {
	width: 20px;
	height: 20px;
	margin: 0.2rem 0 0;
	flex-shrink: 0;
	accent-color: var(--color-accent);
}

.lmg-boutique .woocommerce-terms-and-conditions-wrapper .form-row input[type='checkbox'] {
	position: absolute;
	top: 0.15rem;
	left: 0;
	margin: 0;
}

/* Même bouton principal que le reste du site (§8.13). */
.lmg-boutique #place_order,
.lmg-boutique .button {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	padding: var(--space-s) var(--space-m);
	overflow: hidden;
	background-color: var(--color-accent);
	border: 0;
	border-radius: var(--radius-s);
	color: var(--color-bg);
	font-family: var(--font-text);
	font-size: var(--fs-label);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-label);
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.lmg-boutique #place_order::after,
.lmg-boutique .button::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--color-accent-light);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--dur-calm) var(--ease-calm);
}

.lmg-boutique #place_order:hover::after,
.lmg-boutique .button:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Sous le bouton Payer (lmg_mention_paiement_securise()). */
.lmg-paiement-securise {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: var(--space-s) 0 0;
	color: var(--color-text-muted);
	font-size: var(--fs-small);
}

.lmg-paiement-securise .lmg-icone {
	width: 1.05em;
	height: 1.05em;
	vertical-align: 0;
}

/* Le voile de chargement de WooCommerce est blanc par défaut. */
.lmg-boutique .blockUI.blockOverlay {
	background: color-mix(in srgb, var(--color-bg) 60%, transparent) !important;
}

/* Notices (§8.17) — WooCommerce les affiche aussi dans la section Commander. */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	margin: 0 0 var(--space-m);
	padding: var(--space-s) 1.25rem;
	list-style: none;
	background-color: var(--color-accent-a10);
	border-left: 3px solid var(--color-accent);
	border-radius: var(--radius-s);
	color: var(--color-text-2);
}

.woocommerce-error {
	background-color: color-mix(in srgb, var(--color-error) 10%, transparent);
	border-left-color: var(--color-error);
}

.woocommerce-message {
	background-color: color-mix(in srgb, var(--color-success) 10%, transparent);
	border-left-color: var(--color-success);
}

.woocommerce-error li + li {
	margin-top: 0.4rem;
}

.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
	color: var(--color-accent);
}

/* Confirmation de commande (§8.12) */
.lmg-boutique .woocommerce-order {
	max-width: var(--container-narrow);
	margin-inline: auto;
}

.lmg-boutique .woocommerce-thankyou-order-received {
	margin-bottom: var(--space-xl);
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: var(--fs-tagline);
	font-style: italic;
	font-weight: var(--fw-light);
	text-align: center;
}

.lmg-boutique .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--space-s);
	margin: 0 0 var(--space-xl);
	padding: var(--space-l);
	list-style: none;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-l);
	color: var(--color-text-muted);
	font-size: 0.85rem;
}

.lmg-boutique .woocommerce-order-overview strong {
	display: block;
	margin-top: 0.2rem;
	color: var(--color-text);
	font-size: 1rem;
}

.lmg-boutique .woocommerce-order-details,
.lmg-boutique .woocommerce-customer-details {
	margin-bottom: var(--space-xl);
	padding: var(--space-l);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-l);
}

.lmg-boutique .woocommerce-customer-details address {
	color: var(--color-text-2);
	font-style: normal;
	line-height: 1.8;
}

/* =============================================================================
 * Keyframes
 * ========================================================================== */

@keyframes lmg-rebond {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateX(-50%) translateY(0);
	}

	40% {
		transform: translateX(-50%) translateY(-10px);
	}

	60% {
		transform: translateX(-50%) translateY(-5px);
	}
}

/* Pulsation du point posé (fil de progression, §7.4). */
@keyframes lmg-pouls {
	0% {
		opacity: 0.55;
		transform: scale(1);
	}

	70%,
	100% {
		opacity: 0;
		transform: scale(3.4);
	}
}

@keyframes lmg-tourner {
	to {
		transform: rotate(360deg);
	}
}

/* =============================================================================
 * Responsive (DESIGN_SYSTEM.md §5 : 968 px et 640 px)
 * ========================================================================== */

@media (max-width: 968px) {
	/* Menu mobile : tiroir depuis la droite (§8.1). */
	.lmg-nav__burger {
		display: flex;
	}

	/* v2.3 : menu plein écran, liens centrés en grand. */
	.lmg-nav__menu {
		position: fixed;
		inset: 0;
		z-index: var(--z-navbar);
		flex-direction: column;
		justify-content: center;
		gap: var(--space-m);
		width: 100%;
		height: 100vh;
		height: 100dvh;
		padding: 6rem var(--gutter) var(--space-l);
		overflow-y: auto;
		background: rgb(10 10 10 / 0.98);
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
		text-align: center;
		opacity: 0;
		visibility: hidden;
		transition:
			opacity var(--dur-slow) var(--ease-standard),
			visibility var(--dur-slow);
	}

	.lmg-nav.est-ouvert .lmg-nav__menu {
		opacity: 1;
		visibility: visible;
	}

	.lmg-nav__menu li {
		opacity: 0;
		transform: translateY(12px);
		transition:
			opacity var(--dur-slow) var(--ease-calm),
			transform var(--dur-slow) var(--ease-calm);
	}

	.lmg-nav.est-ouvert .lmg-nav__menu li {
		opacity: 1;
		transform: none;
	}

	.lmg-nav.est-ouvert .lmg-nav__menu li:nth-child(1) { transition-delay: 0.1s; }
	.lmg-nav.est-ouvert .lmg-nav__menu li:nth-child(2) { transition-delay: 0.15s; }
	.lmg-nav.est-ouvert .lmg-nav__menu li:nth-child(3) { transition-delay: 0.2s; }
	.lmg-nav.est-ouvert .lmg-nav__menu li:nth-child(4) { transition-delay: 0.25s; }
	.lmg-nav.est-ouvert .lmg-nav__menu li:nth-child(5) { transition-delay: 0.3s; }
	.lmg-nav.est-ouvert .lmg-nav__menu li:nth-child(6) { transition-delay: 0.35s; }
	.lmg-nav.est-ouvert .lmg-nav__menu li:nth-child(7) { transition-delay: 0.4s; }

	.lmg-nav__lien {
		display: inline-block;
		padding: 0.4rem 0;
		font-size: clamp(1.8rem, 7vw, 2.4rem);
		font-weight: var(--fw-light);
		letter-spacing: 0.02em;
		text-transform: none;
	}

	.lmg-nav__lien::after {
		bottom: 0.2rem;
	}

	.lmg-nav__action {
		width: 100%;
		max-width: 320px;
		margin: var(--space-l) auto 0;
	}

	.lmg-nav__action .lmg-bouton {
		width: 100%;
		min-height: 52px;
	}

	.lmg-presentation,
	.lmg-recette__colonnes,
	.lmg-chapitre,
	.lmg-marches__apercu,
	.lmg-bon-a-savoir__colonnes {
		grid-template-columns: 1fr;
	}

	.lmg-chapitres {
		gap: var(--space-3xl);
		margin-block: var(--space-3xl);
	}

	.lmg-chapitre {
		gap: var(--space-l);
	}

	.lmg-chapitre:nth-child(even) .lmg-chapitre__media {
		order: 0;
	}

	.lmg-bon-a-savoir__colonne,
	.lmg-bon-a-savoir__colonne:first-child {
		padding: var(--space-m) 0;
		border-left: 0;
		border-top: 1px solid var(--color-line);
	}

	.lmg-image-editoriale {
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.lmg-scene__chapitre {
		grid-template-columns: 1fr;
		gap: var(--space-l);
	}

	.lmg-scene:not(.est-scene) .lmg-scene__chapitre:nth-of-type(even) .lmg-scene__photo {
		order: 0;
	}

	.lmg-scene__chapitres {
		gap: var(--space-3xl);
	}

	.lmg-boutons-contact,
	.lmg-resto__atouts {
		grid-template-columns: 1fr;
	}

	/* Une colonne : le bouton seul reprend toute la largeur, comme les autres. */
	.lmg-boutons-contact:has(> :only-child) {
		max-width: 500px;
	}

	/* Atouts sur deux colonnes : filet vertical au milieu, horizontal entre
	   les deux rangées. */
	.lmg-atouts {
		grid-template-columns: repeat(2, 1fr);
	}

	.lmg-atout:nth-child(odd) {
		border-left: 0;
	}

	.lmg-atout:nth-child(n + 3) {
		border-top: 1px solid var(--color-line);
	}

	/* Une colonne : le récapitulatif vient juste avant le paiement. */
	.lmg-boutique form.checkout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			'notices'
			'express'
			'ou'
			'client'
			'recap'
			'etape2'
			'paiement';
		grid-template-rows: none;
	}

	.lmg-boutique #order_review {
		position: static;
		margin-top: var(--space-2xl);
	}
}

@media (max-width: 640px) {
	.lmg-marches__photos,
	.lmg-atouts {
		grid-template-columns: 1fr;
	}

	.lmg-atout {
		border-left: 0;
	}

	.lmg-atout + .lmg-atout {
		border-top: 1px solid var(--color-line);
	}

	.lmg-commande__panneau,
	.lmg-resto {
		padding: var(--space-l) var(--space-m);
	}

	.lmg-recap,
	.lmg-boutique #order_review {
		padding: var(--space-m);
	}

	.lmg-recap__total,
	.lmg-boutique .shop_table .order-total th,
	.lmg-boutique .shop_table .order-total td {
		font-size: 1.3rem;
	}

	.lmg-format {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			'nom prix'
			'quantite sous-total';
		row-gap: var(--space-s);
		padding: var(--space-s);
	}

	.lmg-format__nom { grid-area: nom; }
	.lmg-format__prix { grid-area: prix; text-align: right; }
	.lmg-quantite { grid-area: quantite; }
	.lmg-format__sous-total { grid-area: sous-total; }
	.lmg-format__epuise { grid-column: 1 / -1; text-align: left; }

	.lmg-format__poids {
		font-size: 1.5rem;
	}

	.lmg-format__prix {
		font-size: 1.1rem;
	}

	.lmg-recette__resume-ligne {
		padding: var(--space-m) 0;
	}

	.lmg-boutique #customer_details,
	.lmg-boutique #order_review {
		padding: var(--space-m);
	}

	.lmg-boutique .woocommerce-billing-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	.lmg-boutique .form-row-first,
	.lmg-boutique .form-row-last {
		grid-column: 1;
	}
}

/* =============================================================================
 * Mouvement réduit (DESIGN_SYSTEM.md §7.3) — absent en v1
 * ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.lmg-js .lmg-revele {
		opacity: 1;
		transform: none;
	}

	.lmg-hero__defiler {
		animation: none;
	}
}
