/* ==========================================================================
   Design tokens. :root variables only, no selectors that style elements.
   Source of truth: the "Dr. Mustapha Hamdi" design system (tokens.json, theme
   "Jour"), summarised in design/design-spec.md. Names are the design-system
   names with a --c- / --f- / --fs- prefix. Sections may only use these.
   Client overrides are marked CLIENT. Since 2026-11-26 the colours follow the client's
   editorial canvas ("Espresso" palette: deeper browns, paper and sand surfaces).
   ========================================================================== */

:root {
	/* Colour: ivory, paper and sand surfaces (about 70% of a page) */
	--c-ivoire-50: #fcfaf8;        /* raised surfaces: cards, fields, open mobile menu */
	--c-ivoire-100: #faf7f2;       /* page background. CLIENT (design system: #f6f2ef) */
	--c-lin-200: #f3ede5;          /* "paper": alternate section background. CLIENT canvas 2026-11-26 (was #efe6dd) */
	--c-sable-300: #eadfd3;        /* "sand": contact band. CLIENT canvas 2026-11-26 */
	--c-lin-300: #e3d6cb;          /* decorative 1px hairlines. Too light for a field border */

	/* Colour: brown, the brand colour (arc of the logo) */
	--c-brun-400: #957763;         /* field and secondary-button borders, 4:1 on ivoire-100 */
	--c-brun-500: #6e4429;         /* links, italic line of titles. 8.4:1 on ivoire-100. CLIENT canvas */
	--c-brun-700: #553220;         /* hover of brun-500 */
	--c-btn: #592104;              /* buttons: primary fill, secondary outline and text. CLIENT canvas 2026-11-26 (was #702a06). 13:1 under white */
	--c-btn-hover: #461a03;
	--c-dark: #1f120b;             /* background of dark bands. CLIENT canvas 2026-11-26 (was #381909) */
	--c-dark-2: #3b2416;           /* second stop of dark gradients */
	--c-on-brand: #ffffff;         /* text on --c-btn, brun-500 and brun-700 */
	--c-on-dark-text: #e3d6cb;     /* paragraphs on --c-dark: the dark-background twin of cacao-700. 11.5:1 */
	--c-on-dark-muted: #c9b6a7;    /* secondary text on --c-dark (design system, theme Nuit). 9:1 */

	/* Colour: amber, the accent (figure of the logo). A light, never a background for long text */
	--c-ambre-50: #fdf3e3;         /* info banners, icon chips, active-row highlight */
	--c-ambre-200: #fcd9a4;        /* halo behind photos, decorative rings */
	--c-ambre-500: #faa52d;        /* fills, "Appeler" button, focus ring. Never text on a light background (1.9:1) */
	--c-ambre-700: #9a5b0e;        /* amber as text or icon: small warm labels, key figures. 5.1:1 on ivoire-100 */
	--c-on-accent: #2a1a11;        /* text on ambre-500, 8.6:1 */

	/* Colour: cocoa ink (CLIENT canvas 2026-11-26) */
	--c-cacao-900: #2a1a11;        /* titles and body text, 16:1 on ivoire-100 */
	--c-cacao-700: #54402f;        /* paragraphs, 9.6:1 on ivoire-100 */
	--c-cacao-600: #7a6656;        /* secondary text and index labels, 5:1 on ivoire-100, 4.7:1 on lin-200 */
	--c-cacao-650: #6b5545;        /* secondary text on sable-300, 5.3:1 */

	/* Colour: states */
	--c-sauge-600: #4f6e4b;        /* success, always with an icon */
	--c-terre-600: #a34a34;        /* form error, always with an icon and a text */
	--c-focus: #faa52d;            /* keyboard focus ring: 2px, offset 2px */

	/* Font families (must match hec_fonts() in functions.php). The serif stops at h2. */
	--f-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--f-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

	/* Font sizes: mobile (375px) to desktop (1240px), as in the Hierarchie component */
	--fs-display: clamp(3rem, 1.916rem + 4.624vw, 5.5rem);        /* 48 -> 88px. Hero only, once per page */
	--fs-h1: clamp(2.5rem, 1.85rem + 2.775vw, 4rem);              /* 40 -> 64px */
	--fs-h2: clamp(2rem, 1.675rem + 1.387vw, 2.75rem);            /* 32 -> 44px */
	--fs-citation: clamp(1.375rem, 1.212rem + 0.694vw, 1.75rem);  /* 22 -> 28px, Fraunces italic 400 */
	--fs-h3: clamp(1.375rem, 1.267rem + 0.462vw, 1.625rem);       /* 22 -> 26px, Inter Tight 500 */
	--fs-h4: clamp(1.125rem, 1.098rem + 0.116vw, 1.1875rem);      /* 18 -> 19px, Inter Tight 600 */
	--fs-lead: clamp(1.125rem, 1.071rem + 0.231vw, 1.25rem);      /* 18 -> 20px */
	--fs-body: clamp(1rem, 0.973rem + 0.116vw, 1.0625rem);        /* 16 -> 17px */
	--fs-body-sm: 0.9375rem;                                      /* 15px */
	--fs-label: 0.8125rem;                                        /* 13px, 600, +0.02em, sentence case */
	--fs-caption: 0.8125rem;                                      /* 13px */
	--fs-ui: 1rem;                                                /* buttons and nav: 16px mobile, 15px desktop */
	--fs-title: clamp(2rem, 1.6rem + 1.6vw, 3rem);                /* 32 -> 48px: section titles of the editorial canvas (h2), always smaller than the hero h1 (client, 2026-11-26; was 40 -> 68px) */
	--fs-index: 0.75rem;                                          /* 12px: index labels "01 — Label", uppercase, +0.16em */

	/* Section titles of the canvas: Fraunces 340, tight, italic accent in Regular 400 */
	--fw-title: 340;
	--lh-title: 1.02;
	--ls-title: -0.025em;

	/* Line heights */
	--lh-display: 0.98;
	--lh-h1: 1.06;
	--lh-h2: 1.13;
	--lh-h3: 1.25;
	--lh-body: 1.65;
	--lh-ui: 1.4;

	/* Spacing: 4px scale */
	--space-1: 0.25rem;            /* 4 */
	--space-2: 0.5rem;             /* 8 */
	--space-3: 0.75rem;            /* 12 */
	--space-4: 1rem;               /* 16 */
	--space-5: 1.5rem;             /* 24: card padding */
	--space-6: 2rem;               /* 32: gap between cards */
	--space-7: 3rem;               /* 48: section title to content */
	--space-8: 4rem;               /* 64 */
	--space-9: 6rem;               /* 96 */
	--space-10: 9rem;              /* 144 */
	--space-gutter: clamp(1rem, -0.056rem + 4.507vw, 4rem);     /* side margins: 16 mobile, 32 tablet, 64 desktop */
	--space-section: clamp(4rem, 3.133rem + 3.699vw, 6rem);     /* between sections: 64 mobile, 96 desktop */

	/* Shape */
	--radius-sm: 0.5rem;           /* fields, badges */
	--radius-md: 1rem;             /* cards, info blocks */
	--radius-lg: 1.75rem;          /* rectangular photos, large panels */
	--radius-arc: 50%;             /* photo frames as ellipse or circle (the arc of the logo) */
	--radius-pill: 999px;          /* buttons, chips, mobile call bar */

	/* Shadows: tinted cocoa, never grey */
	--shadow-sm: 0 1px 2px rgb(42 26 17 / 0.06), 0 1px 1px rgb(42 26 17 / 0.04);
	--shadow-md: 0 12px 32px -12px rgb(42 26 17 / 0.16);          /* cards on hover, dropdowns, chips */
	--shadow-lg: 0 32px 64px -24px rgb(42 26 17 / 0.24);          /* hero photo, modal */
	--shadow-dark: 0 20px 40px -18px rgb(31 18 11 / 0.6);         /* dark discs (hero seal, numerals) */
	--shadow-glow: 0 14px 32px -12px rgb(250 165 45 / 0.55);      /* amber halo on button hover */

	/* Gradients: at most one visible per area, never under body text (except crepuscule) */
	--gradient-aube: linear-gradient(160deg, var(--c-ambre-50) 0%, var(--c-ivoire-100) 45%, var(--c-lin-200) 100%);  /* hero background */
	--gradient-halo: radial-gradient(60% 60% at 70% 40%, rgb(250 165 45 / 0.28) 0%, rgb(250 165 45 / 0) 70%);       /* behind photos */
	--c-marque-mid: #a8662f;                                                                                        /* middle stop of gradient-marque only */
	--gradient-marque: linear-gradient(135deg, var(--c-brun-500) 0%, var(--c-marque-mid) 55%, var(--c-ambre-500) 100%); /* signature: hairlines, arc, active menu */
	--gradient-crepuscule: linear-gradient(170deg, #1f120b 0%, #3b2416 60%, #6e4429 100%);                          /* footer, contact band; ivory text */
	--gradient-voile: linear-gradient(180deg, rgb(250 247 242 / 0) 0%, var(--c-ivoire-100) 100%);                    /* fade at the bottom of a photo */
	/* Soft mustard halo of the canvas: a round light that fades to nothing (shared .hec-halo, sections.css) */
	--gradient-halo-doux: radial-gradient(circle, rgb(250 165 45 / 0.2) 0%, rgb(250 165 45 / 0.07) 40%, rgb(250 165 45 / 0) 70%);

	/* Motion: one easing for every entrance and hover (soft, no bounce) */
	--ease-doux: cubic-bezier(0.2, 0.7, 0.2, 1);

	/* Watermark opacity (the arc SVG already carries its own 8%) */
	--opacity-filigrane: 0.06;
	--opacity-filigrane-sombre: 0.08;

	/* Layout */
	--container: calc(1240px + 2 * var(--space-gutter));  /* 1240px of content */
	--header-h: 4.25rem;           /* 68px mobile and after scroll, 88px desktop at the top */
}

@media (min-width: 1024px) {
	:root {
		--fs-ui: 0.9375rem;
		--header-h: 5.5rem;
	}
}
