/*
 * RENATER design layer: foundations.
 *
 * The design is a set of small stylesheets in assets/css/design/, loaded after
 * brand-tokens.css (see inc/design.php for the order and the per-page loading).
 * They restyle the existing markup without depending on its structure, so
 * removing them restores the base look. Everything is scoped under body.renater-design.
 *
 *   foundations.css        tokens, page, typography, links           (all pages)
 *   header-menu.css        header, full-width menu, mobile sheet     (all pages)
 *   buttons.css            buttons                                   (all pages)
 *   cards.css              cards and tiles                           (all pages)
 *   content-blocks.css     download, columns, text/image, card mosaic (all pages)
 *   footer.css             footer, site map, back to top             (all pages)
 *   floating-actions.css   floating action bar                       (all pages)
 *   services-launcher.css  header grid button and full-screen overlay (all pages)
 *   motion.css             scroll reveal and reduced motion          (all pages)
 *   search.css             search results                            (search only)
 *   other-news.css         other news below a news item              (single news only)
 *   mosaic.css             mosaic page, detailed cards               (mosaic template only)
 *   section-head.css       head shared by the home blocks            (home only)
 *   hero.css               home hero                                 (home only)
 *   home-featured.css      home "featured" block                     (home only)
 *   home-pillars.css       home pillars (editable Columns block)     (home only)
 *   home-jobs.css          home job offers block                     (home only)
 *
 * Palette (from the logo and the service pictograms):
 *   ink    #031a30   deep background
 *   navy   #00457c   primary brand blue
 *   sky    #3198bc   secondary blue
 *   teal   #57bcc2   signal / accent
 *   lav    #8a91c6   tertiary accent
 *   red    #e83b3b   rare alert accent
 */

:root {
	--renater-ink: #031a30;
	--renater-ink-2: #062b4d;
	--renater-navy: #00457c;
	--renater-sky: #3198bc;
	--renater-teal: #57bcc2;
	--renater-lav: #8a91c6;
	--renater-red: #e83b3b;
	--renater-paper: #f4f8fc;
	--renater-radius: 1.25rem;
	--renater-wide: 120rem;
	--renater-gutter: clamp(1.5rem, 3vw, 4rem);
	--renater-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--renater-signal: linear-gradient(120deg, var(--renater-teal), var(--renater-sky) 55%, var(--renater-lav));
}

/* ---------- Page ---------- */

.renater-design {
	background-color: var(--renater-paper);
}

/* Static soft glows replace the drifting animated background of brand-tokens.css: calmer behind content, no continuous repaint. */
.renater-design::before {
	background:
		radial-gradient(60% 40% at 90% 0%, color-mix(in srgb, var(--renater-teal) 14%, transparent), transparent 70%),
		radial-gradient(50% 40% at 0% 60%, color-mix(in srgb, var(--renater-lav) 12%, transparent), transparent 70%);
	animation: none;
}

.renater-design main {
	position: relative;
}

/* ---------- Typography ---------- */

.renater-design h1,
.renater-design h2,
.renater-design h3,
.renater-design h4,
.renater-design h5 {
	font-weight: 700;
	color: var(--renater-ink-2);
}

.renater-design h1,
.renater-design h2 {
	letter-spacing: -0.03em;
	line-height: 1.04;
}

.renater-design h3 {
	letter-spacing: -0.015em;
	line-height: 1.2;
}

/* h1: 2.5rem desktop (parent at md), 2rem mobile — no override needed */

/* h2 → 2.2rem desktop */
.renater-design h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem);
}

/* h3 → 1.6rem desktop */
.renater-design h3 {
	font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
}

/* h4 → 1.4rem (parent desktop: 1.5rem) */
.renater-design h4 {
	font-size: 1.4rem;
}

/* h5 → 1.3rem (parent desktop: 1.375rem) */
.renater-design h5 {
	font-size: 1.3rem;
}

/* ---------- Links ---------- */

.renater-design .fr-link {
	font-weight: 700;
}
