/*
 * Tokens de L'Instant Lorrain.
 *
 * Les couleurs et typographies vivent dans le KIT GLOBAL D'ELEMENTOR :
 * ce fichier ne fait que les aliaser. Le client les modifie depuis une
 * interface qu'il connait, et tout le site suit.
 *
 * Engagement 5 : aucun hexadecimal, valeurs de repli comprises.
 */

/*
 * `body` et non `:root` : Elementor ecrit ses variables globales sur
 * `body.elementor-kit-<id>`, jamais sur `html`. Aliase depuis `:root`,
 * `--e-global-color-primary` n'est pas resolue — une variable ne remonte
 * pas d'un descendant vers son ancetre — et c'est la valeur de REPLI qui
 * part dans tout le site. Le symptome est muet : la page s'affiche, en
 * noir et blanc, quelle que soit la palette du kit. Constate le 16 aout
 * 2026 sur instant-home-tarn, ou les 53 fichiers du socle qui lisent ces
 * tokens servaient tous rgb( 17 17 17 ).
 */
body {
	/* Palette de la maquette V2 (site-v2/src/styles/jetons.css, 17b5a7f) : action, sable, encre, encre-2. */
	--ivy-accent: var( --e-global-color-primary, rgb( 16 74 92 ) );
	--ivy-ink: var( --e-global-color-text, rgb( 14 47 56 ) );
	--ivy-surface: var( --e-global-color-secondary, rgb( 246 241 232 ) );
	--ivy-muted: var( --e-global-color-accent, rgb( 86 101 106 ) );
	--ivy-line: rgb( 14 47 56 / 0.12 );
	--ivy-surface-soft: rgb( 237 227 211 );
	--ivy-line-soft: rgb( 14 47 56 / 0.12 );
	--ivy-deep: rgb( 14 47 56 );
	--ivy-on-deep: rgb( 246 241 232 );
	--ivy-on-deep-muted: rgb( 246 241 232 / 0.72 );
	--ivy-line-deep: rgb( 246 241 232 / 0.14 );
	--ivy-accent-on-deep: rgb( 226 179 60 );
	--ivy-on-accent: rgb( 246 241 232 );
	--ivy-on-accent-muted: rgb( 246 241 232 / 0.72 );
	--ivy-line-accent: rgb( 246 241 232 / 0.14 );
	--ivy-support: rgb( 226 179 60 );
	--ivy-veil: rgb( 14 47 56 );
	--ivy-danger: rgb( 169 47 47 );
	/* Les trois autres jetons de la maquette : mirabelle (aplats, filets), mirabelle lisible sur clair, carte blanche. */
	--ivy-mirabelle: rgb( 226 179 60 );
	--ivy-mirabelle-text: rgb( 166 116 24 );
	--ivy-card: rgb( 255 255 255 );
	--ivy-title-font: 'Salvager', 'Times New Roman', serif;
	--ivy-ease: cubic-bezier( 0.16, 1, 0.3, 1 );
}


:root {
	/* Multiplicateur de rythme, unique pour tout le site (spec §5.6). Il ne
	   vient pas du kit : il reste donc sur `:root`, ou le JS le lit. */
	--ivy-motion: 1;
}

/* Polices de la maquette (site-v2) : Salvager (fichier unique, une seule graisse) et Mona Sans
   statique 400/500/600 de fontsource, memes fichiers donc memes coupures de ligne. */
@font-face {
	font-family: 'Salvager';
	font-display: swap;
	src: url( 'polices/salvager.woff2' ) format( 'woff2' );
}

@font-face {
	font-family: 'Mona Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url( 'polices/mona-sans-latin-400-normal.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Mona Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url( 'polices/mona-sans-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Mona Sans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url( 'polices/mona-sans-latin-500-normal.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Mona Sans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url( 'polices/mona-sans-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Mona Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url( 'polices/mona-sans-latin-600-normal.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Mona Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url( 'polices/mona-sans-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Règles globales de la maquette (base.css) : lissage et crénage, paragraphes « pretty » (jamais « balance »),
   ancres sous l'en-tête fixe de 72 px, anneau de focus. */
html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc( 72px + 16px );
	scroll-behavior: auto !important;
}

body .ivy-root :is( h1, h2 ) {
	--ivy-heading-motion: none;
}

body {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

p,
li,
h1,
h2,
h3,
h4,
body .ivy-root :is( p, li, h1, h2, h3, h4, [class$="__title"], [class*="__title "], [class$="__text"], [class*="__text "] ) {
	text-wrap: pretty;
	overflow-wrap: break-word;
}

:focus-visible {
	outline: 2px solid var( --ivy-accent );
	outline-offset: 3px;
	border-radius: 4px;
}

/* Salvager n'a qu'une graisse : la maquette l'épaissit (garde-fou d'Alex) de .03em, seulement en grand. */
h1,
h2 {
	-webkit-text-stroke: 0.03em currentColor;
}

/* `.ton-2` de la maquette : le trait épaissi suit la couleur du mot mis en valeur, pas celle du titre. */
.ivy-hl {
	-webkit-text-stroke-color: currentColor;
	-webkit-box-decoration-break: slice;
	box-decoration-break: slice;
}
