/*
Theme Name: Ludyforge
Theme URI: https://ludyforge.fr
Author: Ludyforge
Description: Thème vitrine ludique du studio Ludyforge.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ludyforge
*/

/* ---------- Bases ---------- */

:root {
	--lf-ink: var(--wp--preset--color--encre, #231942);
	--lf-cream: var(--wp--preset--color--creme, #FFF7EC);
	--lf-fire: var(--wp--preset--color--braise, #FF5A1F);
	--lf-ruby: var(--wp--preset--color--rubis, #E23B2E);
	--lf-gold: var(--wp--preset--color--or, #FFC23C);
	--lf-mint: var(--wp--preset--color--menthe, #2EC4B6);
	--lf-sky: var(--wp--preset--color--azur, #4D7CFE);
	--lf-pink: var(--wp--preset--color--rose, #FF5D8F);
	--lf-border: 3px solid var(--lf-ink);
	--lf-radius: 22px;
	--lf-shadow: 6px 6px 0 var(--lf-ink);
	--lf-shadow-hover: 10px 10px 0 var(--lf-ink);
	--lf-fire-gradient: linear-gradient(100deg, #FF8A1F 0%, #FF5A1F 45%, #E23B2E 100%);
}

html {
	scroll-behavior: smooth;
}

.wp-site-blocks {
	overflow-x: clip;
}

body {
	background-color: var(--lf-cream);
	background-image: radial-gradient(rgba(35, 25, 66, 0.07) 1.2px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

::selection {
	background: var(--lf-gold);
	color: var(--lf-ink);
}

a {
	text-underline-offset: 0.2em;
}

:focus-visible {
	outline: 3px solid var(--lf-sky);
	outline-offset: 3px;
	border-radius: 6px;
}

.lf-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
	box-sizing: border-box;
}

.lf-main {
	margin-top: 0;
}

.lf-main > .entry-content,
.lf-main .wp-block-post-content {
	margin-top: 0;
}

.lf-section {
	position: relative;
	padding-block: clamp(64px, 9vw, 120px);
	margin-block: 0 !important;
	scroll-margin-top: 80px;
}

.lf-section__title {
	font-size: clamp(2rem, 4.5vw, 3.1rem);
	text-align: center;
	margin-bottom: 0.4em;
}

.lf-section__lead {
	text-align: center;
	max-width: 640px;
	margin-inline: auto !important;
	font-size: 1.15rem;
	opacity: 0.85;
}

/* Petit soulignement « coup de crayon » sous les titres de section */
.lf-section__title::after {
	content: "";
	display: block;
	width: 120px;
	height: 14px;
	margin: 0.35em auto 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M3 9 Q20 2 38 8 T74 8 T117 6' fill='none' stroke='%23FF5A1F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Boutons ---------- */

.wp-block-button .wp-block-button__link {
	border: var(--lf-border);
	border-radius: 999px;
	box-shadow: 4px 4px 0 var(--lf-ink);
	padding: 0.7em 1.5em;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--lf-ink);
}

.wp-block-button .wp-block-button__link:active {
	transform: translate(3px, 3px);
	box-shadow: 1px 1px 0 var(--lf-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.lf-btn-ghost .wp-block-button__link {
	background: #fff;
	color: var(--lf-ink);
}

/* ---------- En-tête ---------- */

.lf-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 247, 236, 0.86);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: var(--lf-border);
}

.admin-bar .lf-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .lf-header {
		top: 46px;
	}
}

.lf-header__inner {
	min-height: 72px;
	gap: 1rem;
}

.lf-brand {
	margin: 0 !important;
	flex: none;
}

.lf-brand img {
	display: block;
	height: 46px;
	width: auto;
	transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

.lf-brand a:hover img {
	transform: rotate(-3deg) scale(1.04);
}

@media (max-width: 480px) {
	.lf-brand img {
		height: 38px;
	}
}

.lf-nav {
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 500;
	font-size: 1.05rem;
}

.lf-nav .wp-block-navigation__container {
	gap: 0.4rem;
}

.lf-nav .wp-block-navigation-item__content {
	padding: 0.35em 0.9em;
	border-radius: 999px;
	border: 2px solid transparent;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lf-nav .wp-block-navigation-item__content:hover {
	background: var(--lf-gold);
	border-color: var(--lf-ink);
}

.lf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--lf-cream);
	padding: 2rem;
}

.lf-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: 1.6rem;
}

/* ---------- Héros ---------- */

.lf-hero {
	position: relative;
	padding-block: clamp(48px, 8vw, 110px) clamp(64px, 9vw, 120px);
	margin-block: 0 !important;
	overflow: hidden;
}

/* Confettis de fond */
.lf-hero::before,
.lf-hero::after {
	content: "";
	position: absolute;
	pointer-events: none;
	inset: 0;
	background-repeat: no-repeat;
	opacity: 0.9;
}

.lf-hero::before {
	background-image:
		radial-gradient(circle at 6% 22%, var(--lf-gold) 0 9px, transparent 10px),
		radial-gradient(circle at 46% 9%, var(--lf-pink) 0 6px, transparent 7px),
		radial-gradient(circle at 92% 86%, var(--lf-mint) 0 10px, transparent 11px),
		radial-gradient(circle at 3% 88%, var(--lf-sky) 0 7px, transparent 8px),
		radial-gradient(circle at 56% 94%, var(--lf-fire) 0 5px, transparent 6px);
}

.lf-hero::after {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 2l4 14 14 4-14 4-4 14-4-14-14-4 14-4z' fill='%23FFC23C' stroke='%23231942' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 38% 18% / 34px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 2l4 14 14 4-14 4-4 14-4-14-14-4 14-4z' fill='%23FF5D8F' stroke='%23231942' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 97% 12% / 26px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 2l4 14 14 4-14 4-4 14-4-14-14-4 14-4z' fill='%232EC4B6' stroke='%23231942' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 8% 62% / 22px no-repeat;
}

.lf-hero__grid {
	position: relative;
	z-index: 1;
	display: grid !important;
	grid-template-columns: 1.15fr 1fr;
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}

.lf-hero__text > * + * {
	margin-top: 1.2rem;
}

.lf-kicker {
	display: inline-block;
	margin: 0;
	padding: 0.35em 1em;
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 600;
	font-size: 0.95rem;
	background: #fff;
	border: var(--lf-border);
	border-radius: 999px;
	box-shadow: 3px 3px 0 var(--lf-ink);
	transform: rotate(-2deg);
}

.lf-hero h1 {
	font-size: clamp(2.6rem, 6.4vw, 4.9rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin-block: 1.4rem 0;
}

.lf-hero h1 mark {
	background-color: transparent !important;
	background-image: var(--lf-fire-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent !important;
	position: relative;
	white-space: nowrap;
	/* marge pour que le jambage du « j » ne soit pas rogné par le dégradé */
	padding: 0 0.06em 0.14em 0.14em;
	margin-left: -0.14em;
	margin-right: -0.06em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.lf-hero h1 mark::after {
	content: "";
	position: absolute;
	left: 0.14em;
	right: 0.06em;
	bottom: 0.02em;
	height: 0.22em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14 Q40 4 80 11 T150 10 T196 7' fill='none' stroke='%23FFC23C' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	z-index: -1;
}

.lf-lead {
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	max-width: 36em;
}

.lf-hero .wp-block-buttons {
	margin-top: 2rem;
	gap: 1rem;
}

/* Main de cartes en éventail */
.lf-hero__art {
	position: relative;
	width: 100%;
	max-width: 600px;
	aspect-ratio: 1.12 / 1;
	margin-inline: auto;
	container-type: inline-size;
}

.lf-hand::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 2%;
	height: 46%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 138, 31, 0.55), rgba(255, 194, 60, 0.25) 60%, transparent);
	filter: blur(6px);
	animation: lf-glow 4s ease-in-out infinite;
}

.lf-hand::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 2l4 14 14 4-14 4-4 14-4-14-14-4 14-4z' fill='%23FFC23C' stroke='%23231942' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4% 14% / 7% no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 2l4 14 14 4-14 4-4 14-4-14-14-4 14-4z' fill='%23FF5A1F' stroke='%23231942' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 94% 6% / 5% no-repeat;
	z-index: 10;
}

.lf-hand__card {
	--r: 0deg;
	--i: 0;
	--s: 1;
	--gap: 11cqi;
	--bg: #fff;
	--fg: var(--lf-ink);
	position: absolute;
	left: 33%;
	bottom: 12%;
	width: 34%;
	aspect-ratio: 5 / 7;
	margin: 0 !important;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 2cqi;
	padding: 4.5cqi 2.5cqi;
	background: var(--bg);
	color: var(--fg);
	border: 3px solid var(--lf-ink);
	border-radius: 4.5cqi;
	box-shadow: 1.2cqi 1.2cqi 0 var(--lf-ink);
	transform-origin: 50% 140%;
	transform: translateX(calc(var(--i) * var(--gap) * var(--s))) rotate(calc(var(--r) * var(--s)));
	transition: transform 0.45s cubic-bezier(.34, 1.4, .64, 1), translate 0.3s ease;
}

/* Cadre intérieur façon carte à jouer */
.lf-hand__card::before {
	content: "";
	position: absolute;
	inset: 3.5%;
	border: 2px dashed color-mix(in srgb, var(--fg) 30%, transparent);
	border-radius: 3cqi;
	pointer-events: none;
}

/* Petite étoile de coin, comme l'indice d'une carte */
.lf-hand__card::after {
	content: "\2726";
	position: absolute;
	top: 6%;
	left: 9%;
	font-size: 3.6cqi;
	line-height: 1;
	color: var(--lf-fire);
}

.lf-hand__card > * {
	margin: 0 !important;
}

.lf-hand__card .wp-block-image {
	width: 56%;
}

.lf-hand__card img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 24%;
	filter: drop-shadow(0.8cqi 0.9cqi 0 rgba(35, 25, 66, 0.85));
}

.lf-hand__name {
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 700;
	font-size: 3.7cqi;
	line-height: 1.05;
	text-align: center;
}

.lf-hand__kicker {
	font-size: 2.2cqi;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.75;
	text-align: center;
}

.lf-hand__card--salubre { --i: -2; --r: -24deg; --bg: #DCEBCF; z-index: 1; }
.lf-hand__card--essor { --i: -1; --r: -12deg; --bg: #F8D9B6; z-index: 2; }
.lf-hand__card--wof { --r: 0deg; --bg: #F6E7C1; z-index: 3; }
.lf-hand__card--ludix { --i: 1; --r: 12deg; --bg: #3A248F; --fg: #fff; z-index: 4; }
.lf-hand__card--arkus { --i: 2; --r: 24deg; --bg: #1E1210; --fg: #FFE2C9; z-index: 5; background-image: radial-gradient(circle at 50% 80%, #6B2410 0%, transparent 70%); }

.lf-hand__card--arkus .wp-block-image {
	width: 94%;
	margin-top: 4cqi !important;
}

.lf-hand__card--arkus img {
	border-radius: 0;
}

.lf-hand:hover .lf-hand__card {
	--s: 1.1;
}

.lf-hand__card:hover {
	translate: 0 -7%;
}

@keyframes lf-glow {
	0%, 100% { opacity: 0.75; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.06); }
}

/* ---------- Bandeau défilant ---------- */

.lf-ticker {
	margin-block: 0 !important;
	background: var(--lf-ink);
	color: var(--lf-cream);
	border-block: var(--lf-border);
	overflow: hidden;
	transform: rotate(-1.2deg) scale(1.03);
	position: relative;
	z-index: 2;
}

.lf-ticker p {
	margin: 0;
	padding: 0.85em 0;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: 0.02em;
	word-spacing: 0.15em;
	width: max-content;
	animation: lf-ticker 60s linear infinite;
}

@keyframes lf-ticker {
	to { transform: translateX(-50%); }
}

/* ---------- Créations ---------- */

.lf-grid {
	margin-top: clamp(40px, 5vw, 64px) !important;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)) !important;
	gap: clamp(24px, 3vw, 36px) !important;
}

.lf-card {
	--accent: var(--lf-fire);
	--head: #FFE7C2;
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: var(--lf-border);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
	overflow: hidden;
	margin: 0 !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lf-card:nth-child(odd) { --tilt: -0.8deg; }
.lf-card:nth-child(even) { --tilt: 0.8deg; }

.lf-card:hover {
	transform: translate(-4px, -4px) rotate(var(--tilt, 0deg));
	box-shadow: var(--lf-shadow-hover);
}

.lf-card__head {
	position: relative;
	margin: 0 !important;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--head);
	border-bottom: var(--lf-border);
	overflow: hidden;
}

.lf-card__head::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.35) 2px, transparent 2px);
	background-size: 18px 18px;
}

.lf-card__head img {
	position: relative;
	width: 128px;
	height: 128px;
	object-fit: contain;
	border-radius: 24%;
	filter: drop-shadow(4px 5px 0 rgba(35, 25, 66, 0.85));
	transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
}

.lf-card:hover .lf-card__head img {
	transform: scale(1.1) rotate(-6deg);
}

.lf-card__head--wide img {
	width: 78%;
	height: auto;
	max-height: 120px;
	border-radius: 0;
}

.lf-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.4rem 1.5rem 1.6rem;
	margin: 0 !important;
}

.lf-card__body > * {
	margin-block: 0;
}

.lf-card__body > * + * {
	margin-top: 0.7rem;
}

.lf-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	margin: 0 !important;
	padding: 0.25em 0.8em;
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 600;
	font-size: 0.85rem;
	background: #fff;
	border: 2px solid var(--lf-ink);
	border-radius: 999px;
	box-shadow: 2px 2px 0 var(--lf-ink);
	transform: rotate(4deg);
}

.lf-badge::before {
	content: "";
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	margin-right: 0.4em;
	border-radius: 50%;
	background: #22B455;
	box-shadow: 0 0 0 3px rgba(34, 180, 85, 0.25);
	vertical-align: 0.05em;
}

.lf-badge--alpha::before { background: var(--lf-fire); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.25); }
.lf-badge--proto::before { background: var(--lf-sky); box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.25); }

.lf-card h3 {
	font-size: 1.75rem;
	font-weight: 700;
}

.lf-card__kicker {
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	margin-top: 0.3rem !important;
}

.lf-card__pitch {
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 500;
	font-size: 1.2rem;
	line-height: 1.3;
}

.lf-card__desc {
	font-size: 0.98rem;
	opacity: 0.88;
}

.lf-chips {
	list-style: none;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.lf-chips li {
	margin: 0;
	padding: 0.2em 0.75em;
	font-size: 0.85rem;
	font-weight: 700;
	border: 2px solid var(--lf-ink);
	border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 14%, #fff);
}

.lf-card .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 1.1rem;
}

.lf-card .wp-block-button__link {
	background: var(--accent);
	color: #fff;
	font-size: 1rem;
	padding: 0.55em 1.3em;
}

.lf-soon {
	margin-top: auto !important;
	padding-top: 1.1rem;
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 600;
	color: var(--accent);
}

.lf-card--wof { --accent: #A9760F; --head: radial-gradient(circle at 50% 40%, #FFF6DD 0%, #F2DDAA 70%); }
.lf-card--ludix { --accent: #7A3DE0; --head: radial-gradient(circle at 50% 40%, #4a2ea8 0%, #23155a 75%); }
.lf-card--essor { --accent: #B35A00; --head: linear-gradient(180deg, #F9E2C6 0%, #F4C79A 100%); }
.lf-card--salubre { --accent: #4E7A3C; --head: radial-gradient(circle at 50% 40%, #EEF6E6 0%, #CFE3BE 75%); }
.lf-card--arkus { --accent: #E2461E; --head: radial-gradient(circle at 50% 75%, #6B2410 0%, #1E1210 70%); }
.lf-card--sylvestre { --accent: #2F7A45; --head: radial-gradient(circle at 50% 40%, #E6F4E9 0%, #BFE0C7 75%); }

/* ---------- L'atelier ---------- */

.lf-atelier {
	background: var(--lf-ink);
	color: var(--lf-cream);
	border-block: var(--lf-border);
	overflow: hidden;
}

.lf-atelier .lf-section__title::after {
	filter: saturate(1.3);
}

.lf-atelier::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 247, 236, 0.08) 1.5px, transparent 1.5px);
	background-size: 26px 26px;
	pointer-events: none;
}

.lf-values {
	margin-top: clamp(40px, 5vw, 64px) !important;
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
	gap: clamp(20px, 3vw, 32px) !important;
	position: relative;
}

.lf-value {
	margin: 0 !important;
	padding: 1.8rem 1.6rem;
	border: 3px solid var(--lf-cream);
	border-radius: var(--lf-radius);
	background: rgba(255, 247, 236, 0.04);
	box-shadow: 6px 6px 0 var(--lf-fire);
	transition: transform 0.2s ease;
}

.lf-value:nth-child(2) { box-shadow: 6px 6px 0 var(--lf-gold); }
.lf-value:nth-child(3) { box-shadow: 6px 6px 0 var(--lf-mint); }

.lf-value:hover {
	transform: translateY(-4px) rotate(-1deg);
}

.lf-value > * {
	margin-block: 0;
}

.lf-value > * + * {
	margin-top: 0.6rem;
}

.lf-value__icon {
	font-size: 2.6rem;
	line-height: 1;
}

.lf-value h3 {
	font-size: 1.5rem;
	color: #fff;
}

.lf-value p {
	opacity: 0.88;
}

/* ---------- Contact ---------- */

.lf-contact__box {
	position: relative;
	max-width: 860px;
	margin-inline: auto;
	padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 64px);
	text-align: center;
	background: var(--lf-gold);
	border: var(--lf-border);
	border-radius: 32px;
	box-shadow: 10px 10px 0 var(--lf-ink);
	transform: rotate(-1deg);
}

.lf-contact__box > * {
	margin-block: 0;
}

.lf-contact__box > * + * {
	margin-top: 1rem;
}

.lf-contact__box::before,
.lf-contact__box::after {
	content: "";
	position: absolute;
	width: 64px;
	height: 64px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='6' y='6' width='52' height='52' rx='12' fill='%23fff' stroke='%23231942' stroke-width='4'/%3E%3Ccircle cx='20' cy='20' r='5' fill='%23231942'/%3E%3Ccircle cx='44' cy='44' r='5' fill='%23231942'/%3E%3Ccircle cx='32' cy='32' r='5' fill='%23231942'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lf-contact__box::before {
	top: -30px;
	left: -22px;
	transform: rotate(-18deg);
}

.lf-contact__box::after {
	bottom: -28px;
	right: -18px;
	transform: rotate(14deg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='6' y='6' width='52' height='52' rx='12' fill='%23FF5A1F' stroke='%23231942' stroke-width='4'/%3E%3Ccircle cx='22' cy='22' r='5' fill='%23fff'/%3E%3Ccircle cx='42' cy='42' r='5' fill='%23fff'/%3E%3C/svg%3E");
}

.lf-contact__box h2 {
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	font-weight: 700;
}

.lf-contact__box p {
	font-size: 1.15rem;
}

.lf-contact__box .wp-block-buttons {
	justify-content: center;
	margin-top: 1.6rem;
}

.lf-contact__box .wp-block-button__link {
	background: var(--lf-ink);
	color: #fff;
	font-size: 1.15rem;
}

/* ---------- Pied de page ---------- */

.lf-footer {
	margin-top: 0 !important;
	background: var(--lf-ink);
	color: var(--lf-cream);
	border-top: var(--lf-border);
	padding-block: 48px 36px;
}

.lf-footer a {
	color: var(--lf-cream);
}

.lf-footer__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.6rem 2rem;
	align-items: center;
}

.lf-footer__inner > * {
	margin: 0 !important;
}

.lf-footer__brand img {
	display: block;
	height: 52px;
	width: auto;
}

.lf-footer__tagline {
	grid-column: 1;
	opacity: 0.8;
}

.lf-footer__links {
	grid-column: 2;
	grid-row: 1 / span 2;
	list-style: none;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.4rem;
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 500;
}

.lf-footer__links a {
	text-decoration: none;
}

.lf-footer__links a:hover {
	color: var(--lf-gold);
}

.lf-footer__legal {
	grid-column: 1 / -1;
	margin-top: 1.6rem !important;
	padding-top: 1.2rem;
	border-top: 1px solid rgba(255, 247, 236, 0.18);
	font-size: 0.9rem;
	opacity: 0.75;
}

/* ---------- Pages simples ---------- */

.lf-page {
	padding-block: clamp(48px, 7vw, 96px);
}

.lf-page h1 {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.lf-hero__grid {
		grid-template-columns: 1fr;
	}

	.lf-hero__text {
		text-align: center;
	}

	.lf-hero .wp-block-buttons {
		justify-content: center;
	}

	.lf-lead {
		margin-inline: auto;
	}

	.lf-hero__art {
		max-width: 440px;
	}

	.lf-hand__card {
		left: 35%;
		width: 30%;
		--gap: 8.5cqi;
		--s: 0.85;
	}

	.lf-hero::after {
		display: none;
	}
}

@media (max-width: 640px) {
	.lf-footer__inner {
		grid-template-columns: 1fr;
	}

	.lf-footer__links {
		grid-column: 1;
		grid-row: auto;
	}

	.lf-ticker p {
		font-size: 1.05rem;
	}

	.lf-contact__box::before,
	.lf-contact__box::after {
		width: 48px;
		height: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.lf-hand::before,
	.lf-ticker p {
		animation: none;
	}

	.lf-card,
	.lf-card__head img,
	.lf-hand__card,
	.lf-value,
	.wp-block-button .wp-block-button__link {
		transition: none;
	}
}

/* Badge bêta : point vert + liseré doré */
.lf-badge--beta {
	background: #FFF4D6;
}
