/*
 * RENATER brand tokens.
 *
 * PROVISIONAL placeholder palette, to be replaced by the brand values once the
 * brand assets are delivered. Only values are overridden; component structure
 * is untouched.
 */

:root,
:root[data-fr-theme="light"] {
	--renater-bevel: clamp(1.5rem, 3.2vw, 3.5rem); /* height of the slanted edges of the bands */
	--blue-france-main-525: #3198bc; /*6F90A7*/ /* original DS #3f7fc9;*/
	--blue-france-sun-113-625: #00457C;/*#3198bc;*//* original DS #0b4a8f;*/
	--blue-france-sun-113-625-hover: #0e5db5;
	--blue-france-sun-113-625-active: #1473d6;
	--blue-france-975-sun-113: #f3f7fc;
	--blue-france-975-75: #f3f7fc;
	--blue-france-975-75-hover: #dfeaf7;
	--blue-france-975-75-active: #c6daf0;
	--blue-france-950-100: #e6eef8;
	--blue-france-950-100-hover: #cfdff2;
	--blue-france-950-100-active: #b7d0ec;
	--blue-france-925-125: #d3e2f3;
	--blue-france-925-125-hover: #b6cfeb;
	--blue-france-925-125-active: #9bbce0;
	--blue-france-850-200: #a9c6e8;
}

:root[data-fr-theme="dark"] {
	--blue-france-main-525: #5b97dc;
	--blue-france-sun-113-625: #7eb0ea;
	--blue-france-sun-113-625-hover: #a2c6f0;
	--blue-france-sun-113-625-active: #bcd5f5;
	--blue-france-975-sun-113: #0b4a8f;
	--blue-france-975-75: #101c2b;
	--blue-france-975-75-hover: #1f3550;
	--blue-france-975-75-active: #2c4a70;
	--blue-france-950-100: #152538;
	--blue-france-950-100-hover: #243e5e;
	--blue-france-950-100-active: #325481;
	--blue-france-925-125: #1b2f48;
	--blue-france-925-125-hover: #2d4a70;
	--blue-france-925-125-active: #3f6598;
	--blue-france-850-200: #a9c6e8;
}

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/lato-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: "Lato";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/lato-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: "Lato";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/lato-latin-ext-700-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: "Lato";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/lato-latin-700-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;
}

/* Typography: Marianne, as asked by the client (files and @font-face come from the parent stylesheet). Lato stays as the self-hosted fallback. */
:root {
	--renater-font-family: Marianne, "Lato", arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea {
	font-family: var(--renater-font-family);
}

/* The institutional logo block keeps its official typeface (Marianne, loaded by the parent stylesheet). */
.fr-logo {
	font-family: Marianne, arial, sans-serif;
}

.renater-section-tiles {
	margin-block: 2rem;
}

/* Footer: institutional block and site logo side by side, as in the header. */
.fr-footer__brand > a {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
}

.renater-footer-logo {
	display: block;
	width: auto;
	height: 3rem;
}

.renater-header-logo {
	display: block;
	width: auto;
	height: 3.5rem;
}

/* The parent theme's link helper outputs `.sr-only` (e.g. "Nouvelle fenêtre"), but only `.fr-sr-only` is styled. */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.renater-service-tile__logo {
	display: block;
	width: auto;
	height: 3rem;
	max-width: 100%;
	margin-inline: auto;
}

.renater-service-tile .fr-tile__header {
	order: -1;
	margin-bottom: 1rem;
}

main{
	/* background-color: #f4f4f4; */
	margin-top:0px;
}

.fr-container{
	max-width: 100rem;
}

/*
 * Animated page background: a few soft light-blue glows derived from the brand
 * blues, drifting slowly behind the content. Fixed and transform-only, so it
 * costs no layout or repaint while scrolling.
 */
body {
	background-color: var(--blue-france-975-75);
}

body::before {
	content: "";
	position: fixed;
	inset: -25%;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(40% 35% at 15% 20%, color-mix(in srgb, var(--blue-france-main-525) 28%, transparent), transparent 60%),
		radial-gradient(35% 40% at 85% 15%, color-mix(in srgb, var(--blue-france-sun-113-625) 18%, transparent), transparent 60%),
		radial-gradient(45% 40% at 70% 80%, color-mix(in srgb, var(--blue-france-main-525) 22%, transparent), transparent 60%),
		radial-gradient(35% 35% at 20% 85%, color-mix(in srgb, var(--blue-france-sun-113-625) 14%, transparent), transparent 60%);
	animation: renater-bg-drift 40s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes renater-bg-drift {
	0% {
		transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
	}
	50% {
		transform: translate3d(4%, -3%, 0) rotate(6deg) scale(1.08);
	}
	100% {
		transform: translate3d(-4%, 3%, 0) rotate(-5deg) scale(1.02);
	}
}

@media (prefers-reduced-motion: reduce) {
	body::before {
		animation: none;
	}
}

/* Cards and tiles: rounded corners and a light shadow instead of the hairline border. */
:root {
	--renater-card-radius: 0.8rem;
	--renater-card-bg: rgba(255, 255, 255, 0.62);
	--renater-card-shadow: 0 1px 2px rgba(0, 69, 124, 0.03), 0 8px 24px rgba(0, 69, 124, 0.02);
	--renater-card-shadow-hover: 0 2px 4px rgba(0, 69, 124, 0.08), 0 16px 36px rgba(0, 69, 124, 0.14);
	--renater-card-border: 1px solid rgba(255, 255, 255, 0.7);
}

:root[data-fr-theme="dark"] {
	--renater-card-bg: rgba(16, 28, 43, 0.65);
	--renater-card-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Frosted-glass cards: translucent surface over the animated background. */
.fr-card,
.fr-tile {
	border-radius: var(--renater-card-radius);
	background-color: var(--renater-card-bg);
	box-shadow: var(--renater-card-shadow);
	border: var(--renater-card-border);
	overflow: hidden;
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fr-card:hover,
.fr-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--renater-card-shadow-hover);
}

@media (prefers-reduced-motion: reduce) {
	.fr-card,
	.fr-tile {
		transition: none;
	}

	.fr-card:hover,
	.fr-tile:hover {
		transform: none;
	}
}

.fr-card:not(.fr-card--no-border):not(.fr-card--shadow),
.fr-tile:not(.fr-tile--no-border):not(.fr-tile--shadow) {
	background-image: none;
}

/* Event practical information: same frosted card as the tiles, without the coloured side bar. */
.renater-event-info {
	border-radius: var(--renater-card-radius);
	background-color: var(--renater-card-bg);
	background-image: none;
	box-shadow: var(--renater-card-shadow);
	border: var(--renater-card-border);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
}

.renater-event-info::before {
	content: none;
}

/* Quick access tiles: no dark blue line under the title. */
.renater-service-tile .fr-tile__title::before,
.renater-service-tile .fr-tile__title a::before {
	background-image: none;
}

/* Main menu: bottom border in the brand colour (desktop; on mobile the menu is a modal). */
@media (min-width: 62em) {
	.fr-header__menu {
		border-bottom: 2px solid var(--blue-france-main-525);
	}
}
dl, dd {
	padding-inline-start: 0px;
}

.blocks-container .wp-block-paragraph {
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

@media (min-width: 48em) {
	.blocks-container .wp-block-paragraph {
		font-size: 1.2rem;
	}
}

.hero__title {
	margin-top:2rem;
	margin-bottom: 3rem;
}