/*
 * tokens.css — variables natives du design + webfonts auto-hébergées.
 *
 * Source des couleurs : les trois teintes du logo fourni par le client
 * (annexes/Logos/Ceibo Lodge/LOGO-CeiboLodge.pdf) : vert #14554C, brun #77451E, or #B37C08.
 * Les neutres (crème, sable, encre) sont ajoutés pour porter le texte et les fonds.
 *
 * ⚠️ À garder en phase avec theme.json (presets éditeur) : mêmes slugs, mêmes valeurs.
 * Les noms sont sémantiques : à la personnalisation on change les VALEURS, jamais les noms.
 *
 * Contrastes mesurés (WCAG, ratio ; texte normal : 4,5:1 minimum) :
 *   encre / crème 14,7      · texte-doux / crème 7,1  · texte-doux / sable 6,4
 *   vert / crème 8,0        · crème / vert 8,0        · crème / vert-profond 11,7
 *   or-encre / crème 5,2    · or-doux / vert-profond 6,3 · brun / crème 7,3
 *   L'or du logo (#B37C08) tombe à 3,4:1 sur crème et n'atteint que 4,4:1 avec du texte
 *   encre dessus : réservé aux filets, icônes et gros éléments décoratifs, jamais à un
 *   texte courant ni à un bouton. Pour du TEXTE doré sur clair : --color-gold-ink.
 */

/* == TOKENS DESIGN — GÉNÉRÉ, NE PAS ÉDITER À LA MAIN == */
:root {
	/* Marque (logo) */
	--color-forest: #14554C;
	--color-forest-deep: #0D3A34;
	--color-earth: #77451E;
	--color-gold: #B37C08;
	--color-gold-ink: #8A5F00;
	--color-gold-soft: #E3B04B;
	/* Neutres chauds */
	--color-cream: #FBF6EC;
	--color-sand: #F3EAD8;
	--color-line: #E2D6BF;
	--color-ink: #2A2118;
	--color-ink-soft: #5E5143;
	--color-white: #FFFFFF;
}
/* == FIN TOKENS DESIGN == */

:root {
	/* Alias sémantiques : c'est eux que lisent main.css et les compositions. */
	--surface: var(--color-cream);
	--surface-alt: var(--color-sand);
	--surface-dark: var(--color-forest-deep);
	--text: var(--color-ink);
	--text-soft: var(--color-ink-soft);
	--text-on-dark: var(--color-cream);
	--text-heading: var(--color-forest);
	--accent: var(--color-forest);
	--accent-hover: var(--color-forest-deep);
	--highlight: var(--color-gold);
	--link: var(--color-forest);
	--border: var(--color-line);
	--focus: var(--color-gold-ink);

	/* Typographie : Fraunces (titres, serif souple) + Figtree (texte). */
	--font-heading: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-md: 1.0625rem;
	--fs-lg: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
	--fs-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	--fs-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.875rem);
	--fs-3xl: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);

	/* Gouttière commune header / sections / footer (piège « layout-largeurs » du socle). */
	--gutter: clamp(1.25rem, 5vw, 5rem);
	--container-max: 1280px;

	/* Espacements */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: clamp(2rem, 1.4rem + 2vw, 3rem);
	--space-xl: clamp(3rem, 2rem + 4vw, 6rem);

	/* Formes */
	--radius-sm: 6px;
	--radius: 14px;
	--radius-pill: 999px;
	--shadow: 0 1px 2px rgb(42 33 24 / 0.06), 0 8px 24px rgb(42 33 24 / 0.08);

	--header-h: 6.25rem;
	--header-h-compact: 3.75rem;
}

/* Polices auto-hébergées : variables, sous-ensembles latin + latin-ext (couvrent es, fr, de).
   Pas d'@import Google Fonts : il transmettrait l'IP du visiteur à chaque page vue. */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/fraunces-latin.woff2") format("woff2-variations");
	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: "Fraunces";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/fraunces-latin-ext.woff2") format("woff2-variations");
	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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/fraunces-latin-italic.woff2") format("woff2-variations");
	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: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/figtree-latin.woff2") format("woff2-variations");
	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: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/figtree-latin-ext.woff2") format("woff2-variations");
	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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
