/* ==========================================================
   Bonne Pioche — styles
   ========================================================== */
:root {
	--encre: var(--wp--preset--color--encre, #0F0F0F);
	--creme: var(--wp--preset--color--creme, #F2ECE4);
	--papier: var(--wp--preset--color--papier, #FAF7F2);
	--trait: var(--wp--preset--color--trait, #DCD3C8);
	--rose: var(--wp--preset--color--rose, #EE4D72);
	--jaune: var(--wp--preset--color--jaune, #F8D640);
	--turquoise: var(--wp--preset--color--turquoise, #6FD0C5);
	--orange: var(--wp--preset--color--orange, #F47B20);
	--vert: var(--wp--preset--color--vert, #A2DC6E);
	--display: var(--wp--preset--font-family--display, Anton, sans-serif);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
}

html { scroll-behavior: smooth; }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.bp-main { margin: 0 !important; }
.bp-main > * { margin-block-start: 0 !important; }
::selection { background: var(--jaune); color: var(--encre); }

/* ---------- Header ---------- */
.bp-header {
	background: var(--encre);
	color: var(--papier);
	position: sticky; top: 0; z-index: 50;
	padding-block: 1rem;
}
.admin-bar .bp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bp-header { top: 46px; } }

.bp-logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.bp-logo__card {
	width: 30px; height: 42px; border-radius: 5px;
	background: var(--papier); color: var(--encre);
	display: grid; place-items: center; font-size: 1.15rem; line-height: 1;
	transform: rotate(-8deg); transition: transform .5s var(--spring);
}
.bp-logo:hover .bp-logo__card { transform: rotate(8deg) translateY(-3px); }
.bp-logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.bp-logo__txt strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.bp-logo__txt small { font-size: .7rem; opacity: .7; letter-spacing: .04em; }

.bp-nav { font-size: .9rem; font-weight: 500; }
.bp-nav .wp-block-navigation-item__content { position: relative; padding: .25rem 0; }
.bp-nav .wp-block-navigation-item:not(.bp-nav__cta) .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--jaune); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.bp-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); transform-origin: left; }
.bp-nav .wp-block-navigation-item__content:hover { color: var(--papier) !important; }
.bp-nav .bp-nav__cta > a {
	background: var(--jaune); color: var(--encre) !important; padding: .45rem 1rem !important; border-radius: 999px;
	transition: transform .3s var(--spring), background .3s;
}
.bp-nav .bp-nav__cta > a:hover { background: var(--rose); transform: rotate(-3deg) scale(1.05); }
.bp-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--encre) !important; color: var(--papier) !important; }
.bp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--display); font-size: 2.6rem; text-transform: uppercase; }

/* ---------- Hero ---------- */
.bp-hero {
	background: var(--encre); color: var(--papier);
	padding-top: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: 1.5rem;
}
.bp-hero__title {
	font-size: clamp(4.2rem, 17.2vw, 16.5rem) !important;
	line-height: .86 !important; letter-spacing: -.005em;
	margin: 0 0 1.5rem; white-space: nowrap; text-align: center;
	color: var(--creme);
}
@media (min-width: 1500px) { .bp-hero__title { font-size: 16.5rem !important; } }
.bp-split .bp-ch {
	display: inline-block; transform: translateY(105%) rotate(6deg); opacity: 0;
	animation: bp-rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 100ms);
}
.bp-split .bp-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.bp-split .bp-space { display: inline-block; width: .22em; }
@keyframes bp-rise { to { transform: none; opacity: 1; } }

.bp-hero__intro { font-size: .95rem; opacity: 0; animation: bp-fade .8s .7s var(--ease) forwards; margin-bottom: 2rem !important; gap: 2rem !important; }
.bp-hero__intro p { max-width: 34ch; margin: 0; color: rgba(250,247,242,.82); }
.bp-hero__cta-col { display: flex; justify-content: flex-end; align-items: flex-end; }
@keyframes bp-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.bp-arrow-link a {
	text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em;
	border-bottom: 2px solid currentColor; padding-bottom: 2px; transition: letter-spacing .3s var(--ease), color .2s;
}
.bp-arrow-link a:hover { letter-spacing: .12em; }
.bp-hero .bp-arrow-link a:hover { color: var(--jaune); }

/* Scène : panneau quadrillé crème, bord droit arrondi */
.bp-stage {
	position: relative; isolation: isolate;
	height: clamp(420px, 46vw, 600px);
	border-radius: 0 999px 999px 0;
	background: var(--creme); overflow: hidden;
	opacity: 0; animation: bp-fade 1s .45s var(--ease) forwards;
	touch-action: pan-y;
}
.bp-stage__grid {
	position: absolute; inset: 0; z-index: -1;
	background-image:
		linear-gradient(var(--trait) 1px, transparent 1px),
		linear-gradient(90deg, var(--trait) 1px, transparent 1px);
	background-size: 52px 52px; background-position: -1px -1px;
	animation: bp-grid 30s linear infinite;
}
@keyframes bp-grid { to { background-position: 51px 51px; } }

/* Carte à jouer */
.bp-card {
	all: unset; cursor: pointer;
	position: absolute; left: 50%; top: 50%;
	width: clamp(170px, 19vw, 250px); aspect-ratio: 5 / 7;
	transform: translate(-50%, -50%);
	perspective: 1200px; z-index: 2;
}
.bp-card:focus-visible { outline: 3px solid var(--rose); outline-offset: 8px; border-radius: 16px; }
.bp-card__inner {
	position: absolute; inset: 0; display: block;
	transform-style: preserve-3d;
	transform: rotateX(var(--tx, 0deg)) rotateY(calc(var(--ty, 0deg) + var(--flip, 180deg))) rotateZ(-4deg);
	transition: transform .9s var(--spring);
}
.bp-card.is-ready .bp-card__inner { --flip: 0deg; }
.bp-card.is-tilting .bp-card__inner { transition: transform .15s linear; }
.bp-card__face {
	position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
	box-shadow: 0 30px 50px -20px rgba(15,15,15,.45), 0 0 0 1px rgba(15,15,15,.08);
}
.bp-card__face--front { background: #fff; color: var(--encre); }
.bp-card__face--front::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--encre); border-radius: 8px; }
.bp-card__face--back {
	transform: rotateY(180deg); background: var(--encre);
	background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(250,247,242,.12) 10px 12px),
		repeating-linear-gradient(-45deg, transparent 0 10px, rgba(250,247,242,.12) 10px 12px);
	display: grid; place-items: center;
}
.bp-card__face--back::before { content: ""; position: absolute; inset: 10px; border: 2px solid var(--creme); border-radius: 8px; }
.bp-card__back-mono {
	font-family: var(--display); font-size: 3.2rem; color: var(--encre); background: var(--jaune);
	width: 4.6rem; height: 4.6rem; border-radius: 50%; display: grid; place-items: center; transform: rotate(-10deg);
}
.bp-card__corner { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .9; z-index: 1; }
.bp-card__corner b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; }
.bp-card__corner i { font-style: normal; font-size: 1.15rem; }
.bp-card__corner--tl { top: 16px; left: 16px; }
.bp-card__corner--br { bottom: 16px; right: 16px; transform: rotate(180deg); }
.bp-card__center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .6rem; padding: 2.5rem 1.6rem; text-align: center; }
.bp-card__suit { width: 44%; fill: currentColor; transition: transform .5s var(--spring); }
.bp-card:hover .bp-card__suit { transform: scale(1.08) rotate(-4deg); }
.bp-card__label { font-family: var(--display); text-transform: uppercase; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1; }
.bp-card.is-red .bp-card__face--front { color: var(--rose); }
.bp-card__hint {
	position: absolute; left: 50%; bottom: -2.4rem; transform: translateX(-50%); white-space: nowrap;
	font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--encre); opacity: .55;
}

/* Stickers */
.bp-sticker {
	--x: 50%; --y: 50%; --r: 0deg; --d: 0s; --dx: 0px; --dy: 0px;
	position: absolute; left: var(--x); top: var(--y); z-index: 3;
	display: inline-flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
	font-family: var(--display); text-transform: uppercase; line-height: .95; color: var(--encre);
	box-shadow: 0 10px 18px -10px rgba(15,15,15,.45);
	transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(0);
	animation: bp-pop .7s var(--spring) forwards, bp-float 6s ease-in-out infinite;
	animation-delay: calc(.9s + var(--d)), calc(1.7s + var(--d));
	cursor: grab; user-select: none; -webkit-user-select: none;
	transition: box-shadow .25s;
}
.bp-sticker:hover { box-shadow: 0 18px 26px -12px rgba(15,15,15,.55); }
.bp-sticker.is-dragging { cursor: grabbing; animation-play-state: paused; z-index: 10; box-shadow: 0 28px 34px -14px rgba(15,15,15,.55); }
.bp-sticker b { font-weight: 400; }
.bp-sticker small { font-family: var(--wp--preset--font-family--texte); font-size: .62rem; font-weight: 700; letter-spacing: .04em; margin-top: .3rem; }
@keyframes bp-pop {
	0% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) - 25deg)) scale(0); }
	100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); }
}
@keyframes bp-float {
	0%, 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); }
	50% { transform: translate(var(--dx), calc(var(--dy) - 9px)) rotate(calc(var(--r) + 2deg)) scale(1); }
}
.bp-sticker--pill { padding: .55rem 1.1rem; border-radius: 999px; font-size: clamp(1rem, 1.5vw, 1.35rem); }
.bp-sticker--rect { padding: .75rem 1.1rem; border-radius: 10px; font-size: clamp(1.05rem, 1.7vw, 1.55rem); }
.bp-sticker--round { width: clamp(108px, 10vw, 138px); aspect-ratio: 1; border-radius: 50%; font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
.bp-sticker--badge { width: clamp(108px, 10vw, 136px); aspect-ratio: 1; border-radius: 50%; }
.bp-badge__ring { position: absolute; inset: 6%; width: 88%; height: 88%; animation: bp-spin 14s linear infinite; }
.bp-badge__ring text { font-family: var(--wp--preset--font-family--texte); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; fill: var(--encre); }
.bp-badge__core { width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--encre); color: var(--vert); display: grid; place-items: center; font-size: 1.4rem; }
@keyframes bp-spin { to { transform: rotate(360deg); } }

.bp-c-rose { background: var(--rose); }
.bp-c-jaune { background: var(--jaune); }
.bp-c-turquoise { background: var(--turquoise); }
.bp-c-orange { background: var(--orange); }
.bp-c-vert { background: var(--vert); }
.bp-c-encre { background: var(--encre); color: var(--creme); }

.bp-hero__foot { font-size: .75rem; opacity: .65; margin-top: 1.25rem !important; }
.bp-hero__foot p { margin: 0; }

/* ---------- Bandeau ---------- */
.bp-marquee { background: var(--jaune); color: var(--encre); overflow: hidden; border-block: 2px solid var(--encre); transform: rotate(-1.2deg); margin: -.9rem -2vw 0 !important; position: relative; z-index: 5; }
.bp-marquee__track { display: flex; width: max-content; animation: bp-marquee 32s linear infinite; padding-block: .9rem; }
.bp-marquee:hover .bp-marquee__track { animation-play-state: paused; }
.bp-marquee span { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1; padding-inline: 1.4rem; }
.bp-marquee i { font-style: normal; font-size: clamp(1.1rem, 2vw, 1.7rem); align-self: center; }
@keyframes bp-marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.bp-section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.bp-section__head { margin-bottom: 3rem !important; gap: 1.5rem; }
.bp-section h2 { margin: 0; }
.bp-kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem !important; }
.bp-hl { padding: 0 .12em; display: inline-block; transform: rotate(-1.5deg); }
.bp-hl--jaune { background: var(--jaune); }
.bp-note { font-size: .92rem; opacity: .7; margin-top: 2rem !important; }

.bp-manifeste { background: var(--papier); padding-top: clamp(6rem, 11vw, 9.5rem); }
.bp-manifeste__title { font-size: clamp(2.8rem, 7vw, 6.4rem) !important; margin-bottom: 3rem !important; }
.bp-manifeste .wp-block-columns { gap: clamp(2rem, 5vw, 5rem) !important; }

/* Services */
.bp-services { background: var(--creme); }
.bp-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--encre); border-left: 2px solid var(--encre); }
.bp-service {
	position: relative; padding: 1.5rem 1.4rem 1.8rem; min-height: 260px;
	border-right: 2px solid var(--encre); border-bottom: 2px solid var(--encre);
	background: var(--creme); overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; justify-content: flex-end;
	transition: color .3s;
}
.bp-service::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c);
	clip-path: circle(0% at 100% 0%); transition: clip-path .6s var(--ease);
}
.bp-service:hover::before { clip-path: circle(150% at 100% 0%); }
.bp-service__num { position: absolute; top: 1.2rem; left: 1.4rem; font-size: .8rem; font-weight: 700; }
.bp-service__suit { position: absolute; top: .6rem; right: 1.1rem; font-size: 2.6rem; line-height: 1; transition: transform .6s var(--spring); }
.bp-service:hover .bp-service__suit { transform: rotate(-20deg) scale(1.25); }
.bp-service h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); margin: 0 0 .6rem; }
.bp-service p { font-size: .9rem; margin: 0; line-height: 1.45; }

/* Offres */
.bp-offres { background: var(--papier); }
.bp-offres h2 { margin-bottom: 3rem !important; }
.bp-offres__cols { gap: 1.5rem !important; align-items: stretch !important; }
.bp-offre {
	background: #fff; border: 2px solid var(--encre); border-radius: 22px; padding: 2rem 1.75rem !important;
	display: flex; flex-direction: column; gap: .4rem;
	box-shadow: 8px 8px 0 var(--encre); transition: transform .35s var(--spring), box-shadow .35s var(--spring);
}
.bp-offre:hover { transform: translate(-4px, -6px) rotate(-1deg); box-shadow: 14px 16px 0 var(--encre); }
.bp-offre--star { background: var(--encre); color: var(--papier); box-shadow: 8px 8px 0 var(--rose); }
.bp-offre--star:hover { box-shadow: 14px 16px 0 var(--rose); transform: translate(-4px, -6px) rotate(1deg); }
.bp-offre__tag { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .7rem; border-radius: 999px; background: var(--turquoise); color: var(--encre); margin: 0 0 .8rem !important; }
.bp-offre--star .bp-offre__tag { background: var(--jaune); }
.bp-offre h3 { font-size: clamp(2rem, 3vw, 2.7rem); margin: 0; }
.bp-offre__prix { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; margin: 0 0 .8rem !important; }
.bp-offre__list { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.bp-offre__list li { padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid rgba(15,15,15,.15); position: relative; font-size: .95rem; }
.bp-offre--star .bp-offre__list li { border-color: rgba(250,247,242,.2); }
.bp-offre__list li::before { content: "♠"; position: absolute; left: 0; top: .55rem; font-size: .85rem; }
.bp-offre .bp-arrow-link { margin-top: auto; }
.bp-offre--star .bp-arrow-link a:hover { color: var(--jaune); }
/* Marqueur visible des contenus à compléter */
.bp-todo { background: var(--rose); color: #fff; padding: 0 .3em; border-radius: 4px; outline: 2px dashed var(--encre); outline-offset: 2px; }

/* Réalisations */
.bp-refs { background: var(--encre); color: var(--papier); }
.bp-refs .bp-arrow-link a:hover { color: var(--jaune); }
.bp-refs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bp-ref { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .8rem; }
.bp-ref--big { grid-row: span 2; }
.bp-ref--wide { grid-column: span 2; }
.bp-ref__media {
	flex: 1; min-height: 220px; border-radius: 18px; background: var(--c); position: relative; overflow: hidden;
	display: grid; place-items: center; transition: border-radius .5s var(--ease), transform .5s var(--ease);
}
.bp-ref__media span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--encre); opacity: .55; }
.bp-ref__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bp-ref:hover .bp-ref__media { border-radius: 60px 18px 60px 18px; }
.bp-ref:hover .bp-ref__media img { transform: scale(1.05); }
.bp-ref__txt { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.bp-ref__txt b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; }
.bp-ref__txt small { font-size: .82rem; opacity: .7; }

/* À propos */
.bp-apropos { background: var(--creme); }
.bp-apropos h2 { margin-bottom: 1.5rem !important; }
.bp-apropos p { max-width: 58ch; }
.bp-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.bp-stats li { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.4rem; border: 2px solid var(--encre); border-radius: 999px; background: var(--papier); transition: transform .35s var(--spring); }
.bp-stats li:nth-child(1) { transform: rotate(-2deg); }
.bp-stats li:nth-child(2) { transform: rotate(1.5deg); background: var(--turquoise); }
.bp-stats li:nth-child(3) { transform: rotate(-1deg); background: var(--jaune); }
.bp-stats li:hover { transform: rotate(0) scale(1.03); }
.bp-stats b { font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: 1; min-width: 3.2ch; }
.bp-stats span { font-weight: 600; font-size: .95rem; }

/* CTA final */
.bp-cta { background: var(--rose); color: var(--encre); padding-block: clamp(5rem, 10vw, 9rem); position: relative; overflow: hidden; }
.bp-cta__title { font-size: clamp(4rem, 13vw, 12rem) !important; line-height: .85 !important; margin: 0 0 1.5rem !important; }
.bp-cta p { font-size: 1.15rem; font-weight: 500; }
.bp-cta .wp-block-buttons { gap: 1rem; margin-top: 2rem !important; }
.bp-btn-big .wp-block-button__link { font-size: 1.05rem; padding: 1.05rem 2rem; transition: transform .3s var(--spring), background .3s; }
.bp-btn-big .wp-block-button__link:hover { background: var(--jaune) !important; color: var(--encre) !important; transform: rotate(-2deg) scale(1.04); }
.bp-btn-ghost .wp-block-button__link { border: 2px solid var(--encre) !important; color: var(--encre) !important; background: transparent !important; padding: 1rem 1.6rem; }
.bp-btn-ghost .wp-block-button__link:hover { background: var(--encre) !important; color: var(--papier) !important; }
.bp-cta__sticker { position: absolute; right: clamp(1rem, 8vw, 9rem); top: clamp(2rem, 8vw, 6rem); left: auto; background: var(--jaune); }

/* Footer */
.bp-footer { background: var(--encre); color: var(--papier); padding-block: 4rem 2rem; font-size: .92rem; }
.bp-footer a { text-decoration: none; }
.bp-footer a:hover { color: var(--jaune); }
.bp-footer__brand { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; margin-bottom: 1rem !important; }
.bp-footer__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .55; font-weight: 700; }
.bp-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.bp-footer__legal { margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid rgba(250,247,242,.18); font-size: .78rem; opacity: .65; }
.bp-footer__legal p { margin: 0; }

/* Pages intérieures */
.bp-page { padding-bottom: 6rem; }
.bp-page__head { background: var(--encre); color: var(--creme); padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); margin-bottom: 3.5rem !important; }
.bp-page__title { font-size: clamp(3.5rem, 11vw, 10rem) !important; line-height: .88 !important; margin: 0; }
.bp-404 { padding-block: 8rem; text-align: center; }
.bp-404__title { font-size: clamp(4rem, 12vw, 10rem) !important; }
.bp-404 .wp-block-buttons { justify-content: center; }

/* ---------- Révélation au scroll ---------- */
.bp-js .bp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.bp-js .bp-reveal.is-in { opacity: 1; transform: none; }
.bp-js .bp-stats li.bp-reveal.is-in:nth-child(1) { transform: rotate(-2deg); }
.bp-js .bp-stats li.bp-reveal.is-in:nth-child(2) { transform: rotate(1.5deg); }
.bp-js .bp-stats li.bp-reveal.is-in:nth-child(3) { transform: rotate(-1deg); }
.bp-js .bp-stats li.bp-reveal.is-in:hover { transform: rotate(0) scale(1.03); }
.bp-js .bp-offre.bp-reveal.is-in:hover { transform: translate(-4px, -6px) rotate(-1deg); }
.bp-js .bp-offre--star.bp-reveal.is-in:hover { transform: translate(-4px, -6px) rotate(1deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.bp-services__grid { grid-template-columns: repeat(2, 1fr); }
	.bp-refs__grid { grid-template-columns: repeat(2, 1fr); }
	.bp-ref--big { grid-row: auto; }
}
@media (max-width: 781px) {
	.bp-hero__title { white-space: normal; font-size: 23vw !important; text-align: left; }
	.bp-hero__intro { gap: 1rem !important; }
	.bp-hero__cta-col { justify-content: flex-start; }
	.bp-stage { height: 560px; border-radius: 0 0 160px 160px; }
	.bp-card { width: 170px; top: 46%; }
	.bp-sticker--rect, .bp-sticker--pill { font-size: .95rem; }
	.bp-sticker--round, .bp-sticker--badge { width: 92px; }
	.bp-sticker small { font-size: .55rem; }
	.bp-sticker { cursor: default; }
	.bp-services__grid, .bp-refs__grid { grid-template-columns: 1fr; }
	.bp-ref--wide { grid-column: auto; }
	.bp-service { min-height: 200px; }
	.bp-cta__sticker { display: none; }
}

/* Mobile : repositionne les stickers pour qu'ils ne recouvrent pas la carte */
@media (max-width: 781px) {
	.bp-stage .bp-sticker:nth-of-type(1) { --x: 52% !important; --y: 6% !important; }
	.bp-stage .bp-sticker:nth-of-type(2) { --x: 4% !important; --y: 4% !important; }
	.bp-stage .bp-sticker:nth-of-type(3) { --x: 4% !important; --y: 72% !important; }
	.bp-stage .bp-sticker:nth-of-type(4) { --x: 2% !important; --y: 26% !important; }
	.bp-stage .bp-sticker:nth-of-type(5) { --x: 62% !important; --y: 30% !important; }
	.bp-stage .bp-sticker:nth-of-type(6) { --x: 66% !important; --y: 68% !important; }
	.bp-stage .bp-sticker:nth-of-type(7) { --x: 26% !important; --y: 88% !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.bp-marquee__track { animation: none; }
}

/* L'en-tête collant doit s'appliquer au conteneur de la partie de modèle */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.bp-header { position: relative; top: auto !important; }

/* Marges latérales gérées par section (fonds pleine largeur) */
body { padding-left: 0 !important; padding-right: 0 !important; }
.bp-header, .bp-hero, .bp-section, .bp-cta, .bp-footer, .bp-page__head, .bp-prose { padding-left: clamp(1.25rem, 4vw, 3rem) !important; padding-right: clamp(1.25rem, 4vw, 3rem) !important; }
.bp-page__sub { font-size: 1.15rem; opacity: .75; margin-top: 1.25rem !important; max-width: 46ch; }
.bp-page__head + * { margin-top: 0 !important; }
.bp-prose h2 { font-size: 1.6rem !important; margin-top: 2.5rem !important; }
.bp-prose h2:first-child { margin-top: 0 !important; }

/* Correctifs après relecture */
html { overflow-x: clip; }
.bp-badge__ring text { letter-spacing: 0; }
.bp-stats b { min-width: 4.4ch; flex-shrink: 0; text-align: center; }
.bp-ref--wide { grid-column: 1 / -1; }
.bp-ref--wide .bp-ref__media { min-height: 260px; }
@media (max-width: 781px) {
	.bp-card__hint { display: none; }
	.bp-service { min-height: 0; padding-top: 3.5rem; }
	.bp-stage .bp-sticker:nth-of-type(7) { --x: 30% !important; --y: 90% !important; }
}

/* ==========================================================
   Formulaire de contact
   ========================================================== */
.bp-contact { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--papier); }
.bp-contact__cols { gap: clamp(2rem, 5vw, 5rem) !important; }
.bp-contact__aside { position: sticky; top: 120px; align-self: flex-start; }
.bp-contact__aside h2 { font-size: 1.6rem !important; margin: 0 0 .5rem !important; }
.bp-contact__aside p { margin: 0 0 1.75rem; }
.bp-contact__aside .bp-aside-card { background: var(--encre); color: var(--papier); border-radius: 22px; padding: 1.75rem; box-shadow: 8px 8px 0 var(--jaune); transform: rotate(-1deg); }
.bp-contact__aside .bp-aside-card a:hover { color: var(--jaune); }

.bp-form-wrap { position: relative; }
.bp-form { display: grid; gap: 2.4rem; }
.bp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bp-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.bp-step legend, .bp-legend-like {
	font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1;
	padding: 0; margin: 0 0 1rem; display: flex; align-items: center; gap: .7rem;
}
.bp-step legend span, .bp-legend-like span {
	font-family: var(--wp--preset--font-family--texte); font-size: .75rem; font-weight: 800; letter-spacing: .05em;
	background: var(--encre); color: var(--papier); border-radius: 999px; padding: .25rem .55rem;
}
.bp-step__hint { margin: -.5rem 0 1rem; font-size: .85rem; opacity: .65; }
.bp-step--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.bp-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.bp-chips--col { flex-direction: column; align-items: flex-start; }
.bp-chip { --c: var(--jaune); position: relative; cursor: pointer; }
.bp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bp-chip span {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .6rem 1.05rem; border: 2px solid var(--encre); border-radius: 999px; background: #fff;
	font-weight: 600; font-size: .92rem; line-height: 1.2;
	transition: transform .3s var(--spring), background .2s, box-shadow .2s;
	user-select: none;
}
.bp-chip span::before { content: "+"; font-weight: 800; width: .8em; text-align: center; transition: transform .3s var(--spring); }
.bp-chips--radio .bp-chip span::before { content: ""; width: .7em; height: .7em; border-radius: 50%; border: 2px solid var(--encre); background: transparent; }
.bp-chip:hover span { transform: translateY(-2px) rotate(-1.5deg); box-shadow: 3px 3px 0 var(--encre); }
.bp-chip input:checked + span { background: var(--c); transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--encre); }
.bp-chip:nth-child(even) input:checked + span { transform: rotate(2deg); }
.bp-chip input:checked + span::before { content: "✓"; transform: scale(1.15); }
.bp-chips--radio .bp-chip input:checked + span::before { content: ""; background: var(--encre); transform: none; }
.bp-chips--radio .bp-chip { --c: var(--jaune); }
.bp-chip input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 3px; }
.bp-chip[style*="creme"] input:checked + span { background: var(--creme); }

.bp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.bp-field { display: flex; flex-direction: column; gap: .4rem; }
.bp-field--full { grid-column: 1 / -1; }
.bp-field > span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.bp-field input, .bp-field select, .bp-field textarea {
	font: inherit; font-size: 1rem; color: var(--encre);
	background: #fff; border: 2px solid var(--encre); border-radius: 14px; padding: .8rem 1rem;
	transition: box-shadow .2s, transform .2s var(--spring);
	width: 100%; box-sizing: border-box;
}
.bp-field textarea { resize: vertical; min-height: 140px; }
.bp-field input:focus, .bp-field select:focus, .bp-field textarea:focus { outline: none; box-shadow: 5px 5px 0 var(--turquoise); transform: translate(-2px, -2px); }
.bp-field.is-invalid input, .bp-field.is-invalid textarea { border-color: var(--rose); box-shadow: 5px 5px 0 var(--rose); }

.bp-consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .88rem; line-height: 1.45; cursor: pointer; }
.bp-consent input { width: 1.3rem; height: 1.3rem; flex-shrink: 0; margin-top: .1rem; accent-color: var(--encre); }
.bp-consent.is-invalid span { color: var(--rose); }

.bp-submit {
	justify-self: start; display: inline-flex; align-items: center; gap: .8rem; cursor: pointer;
	font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1;
	background: var(--encre); color: var(--papier); border: 0; border-radius: 999px; padding: 1.1rem 2rem 1rem;
	box-shadow: 6px 6px 0 var(--rose); transition: transform .3s var(--spring), box-shadow .3s var(--spring), background .2s;
}
.bp-submit i { font-style: normal; transition: transform .3s var(--spring); }
.bp-submit:hover { transform: translate(-3px, -3px) rotate(-1.5deg); box-shadow: 10px 10px 0 var(--rose); }
.bp-submit:hover i { transform: translateX(6px); }
.bp-submit:disabled { opacity: .6; cursor: wait; }
.bp-submit.is-loading i { animation: bp-spin .8s linear infinite; }

.bp-form__alert { background: var(--rose); color: #fff; font-weight: 600; padding: .9rem 1.2rem; border-radius: 14px; }
.bp-form__alert[hidden] { display: none; }

.bp-form__done { display: none; text-align: center; padding: 3rem 1rem; }
.bp-form__done:focus { outline: none; }
.bp-form-wrap.is-sent .bp-form { display: none; }
.bp-form-wrap.is-sent .bp-form__done { display: block; animation: bp-fade .6s var(--ease); }
.bp-form__done h2 { font-size: clamp(3rem, 7vw, 5.5rem) !important; margin: 1.5rem 0 .75rem !important; }
.bp-form__done p { max-width: 40ch; margin-inline: auto; }
.bp-done-card {
	width: 120px; aspect-ratio: 5/7; margin: 0 auto; border-radius: 12px; background: #fff; border: 2px solid var(--encre);
	box-shadow: 8px 8px 0 var(--jaune); position: relative; color: var(--rose);
	animation: bp-done-flip 1s var(--spring) both;
}
.bp-done-card span { position: absolute; top: 8px; left: 10px; font-family: var(--display); font-size: 1.4rem; }
.bp-done-card b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.2rem; }
@keyframes bp-done-flip { from { transform: rotateY(180deg) rotate(-20deg) scale(.6); opacity: 0; } to { transform: rotateY(0) rotate(-6deg) scale(1); opacity: 1; } }

@media (max-width: 781px) {
	.bp-step--duo, .bp-fields { grid-template-columns: 1fr; }
	.bp-contact__aside { position: static; }
	.bp-submit { justify-self: stretch; justify-content: center; }
}

/* ==========================================================
   Projets
   ========================================================== */
.bp-refs__grid { grid-auto-flow: row dense; }
.bp-refs__grid--3 { grid-template-columns: repeat(3, 1fr); }
.bp-ref.is-hidden { display: none; }
.bp-ref__go {
	position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--encre); color: var(--papier); display: grid; place-items: center; font-style: normal; font-size: 1.2rem;
	transform: scale(0) rotate(-90deg); transition: transform .4s var(--spring); z-index: 2;
}
.bp-ref:hover .bp-ref__go { transform: scale(1) rotate(0); }
.bp-ref__txt small { text-align: right; max-width: 32ch; }

.bp-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: -1rem 0 2.5rem !important; }
.bp-filter {
	font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
	padding: .55rem 1.05rem; border-radius: 999px; border: 2px solid var(--papier); background: transparent; color: var(--papier);
	transition: transform .3s var(--spring), background .2s, color .2s;
}
.bp-filter:hover { transform: rotate(-2deg) translateY(-2px); }
.bp-filter.is-active { background: var(--jaune); border-color: var(--jaune); color: var(--encre); transform: rotate(-2deg); }
.bp-ref.is-filtering { animation: bp-fade .45s var(--ease) both; }

/* Fiche projet */
.bp-projet__top { background: var(--encre); color: var(--papier); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) 0 !important; }
.bp-projet-head .bp-kicker a { text-decoration: none; }
.bp-projet-head .bp-kicker a:hover { color: var(--jaune); }
.bp-projet-head__title { font-size: clamp(3.2rem, 10vw, 9rem) !important; line-height: .88 !important; margin: 0 0 1.5rem; color: var(--creme); }
.bp-projet-head__resume { font-size: 1.25rem; max-width: 48ch; opacity: .85; margin: 0 0 1.75rem; }
.bp-projet-head__meta { list-style: none; padding: 0; margin: 0 0 3rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.bp-tag { padding: .4rem .9rem; border-radius: 999px; background: var(--c, var(--jaune)); color: var(--encre); font-weight: 700; font-size: .82rem; }
.bp-tag:nth-child(odd) { transform: rotate(-2deg); }
.bp-tag:nth-child(even) { transform: rotate(1.5deg); }
.bp-tag--ghost { background: transparent; border: 2px solid var(--papier); color: var(--papier); }
.bp-projet-head__meta .bp-arrow-link { margin-left: .6rem; }
.bp-projet-head__meta .bp-arrow-link a:hover { color: var(--jaune); }
.bp-projet-visuel { position: relative; margin-bottom: -7rem !important; z-index: 2; }
.bp-projet-visuel img, .bp-projet-visuel__vide {
	display: block; width: 100%; height: auto; max-height: 720px; object-fit: cover;
	border-radius: 28px; border: 2px solid var(--encre); box-shadow: 10px 10px 0 var(--c, var(--jaune));
}
.bp-projet-visuel__vide { aspect-ratio: 16 / 8; background: var(--c); display: grid; place-items: center; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--encre); }
.bp-projet__body { padding-top: calc(7rem + clamp(3rem, 6vw, 5rem)) !important; }
.bp-projet__body h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 2.5rem; }
.bp-projet__body img { border-radius: 18px; }
.bp-projet__body .wp-block-image, .bp-projet__body .wp-block-gallery { margin-block: 2.5rem; }

@media (max-width: 1024px) { .bp-refs__grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 781px) {
	.bp-refs__grid--3 { grid-template-columns: 1fr; }
	.bp-projet-visuel { margin-bottom: -3rem !important; }
	.bp-projet__body { padding-top: calc(3rem + 3rem) !important; }
	.bp-ref__txt small { text-align: left; }
}

/* Ajustements grille projets / pages pleine largeur */
.bp-filters { margin-top: -1rem !important; margin-bottom: 2.5rem !important; margin-left: auto !important; margin-right: auto !important; }
.bp-main > .wp-block-post-content > * { margin-block-start: 0 !important; }
.bp-ref__txt { flex-direction: column; align-items: flex-start; gap: .2rem; }
.bp-ref__txt small { text-align: left !important; max-width: 46ch; }

/* Bouton retour des fiches projet : grande zone cliquable */
.bp-projet-head__top { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-bottom: 2rem; }
.bp-projet-head__top .bp-kicker { margin: 0 !important; opacity: .7; }
.bp-back {
	display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; box-sizing: border-box;
	padding: .7rem 1.3rem .7rem 1rem; border: 2px solid var(--papier); border-radius: 999px;
	font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--papier);
	transition: background .2s, color .2s, transform .3s var(--spring);
}
.bp-back i { font-style: normal; font-size: 1.15rem; line-height: 1; transition: transform .3s var(--spring); }
.bp-back:hover, .bp-back:focus-visible { background: var(--jaune); border-color: var(--jaune); color: var(--encre) !important; transform: rotate(-2deg); }
.bp-back:hover i { transform: translateX(-5px); }
.bp-back:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* 4e pastille chiffrée (12 ans) */
.bp-stats li:nth-child(4) { transform: rotate(1.5deg); background: var(--rose); }
.bp-js .bp-stats li.bp-reveal.is-in:nth-child(4) { transform: rotate(1.5deg); }
.bp-stats li:nth-child(1) { background: var(--encre); color: var(--papier); }

/* Galeries des fiches projet : plus larges que le texte */
.bp-projet__body .wp-block-gallery.alignwide { max-width: min(1100px, 100%) !important; width: 1100px; margin-left: auto !important; margin-right: auto !important; }
@media (min-width: 1200px) { .bp-projet__body .wp-block-gallery.alignwide { position: relative; left: 50%; transform: translateX(-50%); margin-left: 0 !important; max-width: none !important; width: 1100px; } }
.bp-projet__body .wp-block-gallery img { border-radius: 14px; box-shadow: 0 18px 30px -18px rgba(15,15,15,.45); }
.bp-projet__body .wp-block-gallery.aligncenter { max-width: 640px !important; margin-left: auto !important; margin-right: auto !important; }
/* Captures de sites dans les grandes cartes : on garde le côté gauche (titres) */
.bp-ref--big .bp-ref__media img { object-position: 18% center; }
/* Images pleine largeur (doubles pages) dans les fiches projet */
.bp-projet__body .wp-block-image.alignwide { max-width: min(1100px, 100%) !important; margin-left: auto !important; margin-right: auto !important; }
@media (min-width: 1200px) { .bp-projet__body .wp-block-image.alignwide { position: relative; left: 50%; transform: translateX(-50%); margin-left: 0 !important; max-width: none !important; width: 1100px; } }
.bp-projet__body .wp-block-image img { box-shadow: 0 18px 30px -18px rgba(15,15,15,.45); }
/* Pas de bande crème entre l'en-tête de page et la première section */
.bp-main > .wp-block-post-content > .bp-page__head { margin-bottom: 0 !important; }

/* Offres — options & à la carte */
.bp-extras{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2.5rem}
.bp-extra{border:2px solid var(--encre);border-radius:14px;padding:1.1rem 1.2rem;background:var(--creme)}
.bp-extra p{margin:0}
.bp-extra__nom{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.bp-extra__prix{font-family:var(--display);font-size:1.5rem;text-transform:uppercase;margin:.2rem 0 .4rem !important}
.bp-extra__desc{font-size:.88rem;line-height:1.45}
.bp-extra:first-child{background:var(--jaune)}
.bp-offre__list strong{font-weight:700}
@media (max-width:900px){.bp-extras{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.bp-extras{grid-template-columns:1fr}}

/* Offres rendues en PHP (menu Tarifs) */
.bp-offres__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;align-items:stretch}
.bp-offres__grid .bp-offre__list strong{font-weight:700}
@media (max-width:900px){.bp-offres__grid{grid-template-columns:1fr}}
.bp-footer__legal .bp-footer__liens a + a{margin-left:1.2rem}

/* Galeries justifiées (fiches projet) : même hauteur par rangée, sans recadrage */
.bp-projet__body .wp-block-gallery.bp-justified { display: block !important; }
.bp-justified .bp-jrow { display: flex; gap: 1rem; align-items: flex-start; }
.bp-justified .bp-jrow + .bp-jrow { margin-top: 1rem; }
.bp-justified .bp-jrow > figure.wp-block-image { flex-basis: 0 !important; flex-shrink: 1; width: auto !important; max-width: none !important; margin: 0 !important; background: none !important; }
.bp-justified .bp-jrow > figure.wp-block-image img { width: 100% !important; height: auto !important; object-fit: contain !important; display: block; }
.bp-justified .bp-jrow__vide { flex-basis: 0; }
@media (max-width: 600px) {
	.bp-justified .bp-jrow { flex-wrap: wrap; }
	.bp-justified .bp-jrow > figure.wp-block-image { flex: 1 1 100% !important; }
	.bp-justified .bp-jrow__vide { display: none; }
}

/* Page Audit offert */
.bp-audit__lead{font-size:clamp(1.1rem,1.6vw,1.35rem);line-height:1.5;max-width:46rem}
.bp-audit__steps{list-style:none;padding:0;margin:0 0 3rem;display:grid;grid-template-columns:1fr;gap:.8rem}
.bp-audit__steps li{border:2px solid var(--encre);border-radius:14px;padding:1rem 1.2rem;background:var(--creme);display:flex;gap:1rem;align-items:center;line-height:1.5}
.bp-audit__steps li:nth-child(2){transform:rotate(.5deg)}.bp-audit__steps li:nth-child(1),.bp-audit__steps li:nth-child(3){transform:rotate(-.4deg)}
.bp-audit__steps b{flex:0 0 auto;width:2rem;height:2rem;border-radius:50%;background:var(--jaune);border:2px solid var(--encre);display:grid;place-items:center;font-size:.95rem}


/* Grille d'options : une carte seule en fin de grille prend toute la largeur */
@media (min-width: 801px) { .bp-extras > .bp-extra:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }

/* Manifeste : ce que Bonne Pioche n'est pas */
.bp-manifeste__non{list-style:none;padding:0;margin:3rem 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.bp-manifeste__non li{border:2px solid currentColor;border-radius:14px;padding:1.2rem 1.3rem;line-height:1.5}
.bp-manifeste__non li:nth-child(1){transform:rotate(-1deg)}.bp-manifeste__non li:nth-child(2){transform:rotate(.8deg)}.bp-manifeste__non li:nth-child(3){transform:rotate(-.6deg)}
.bp-manifeste__non b{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;font-size:1.5rem;line-height:1;margin-bottom:.5rem}
@media (max-width:800px){.bp-manifeste__non{grid-template-columns:1fr}}

/* Appel à l'action en bas des projets */
.bp-projet-cta{margin:4rem auto 0;max-width:46rem;border:2px solid var(--encre);border-radius:14px;background:var(--jaune);padding:2rem 2.2rem;transform:rotate(-1deg);box-shadow:0 10px 18px -10px rgba(15,15,15,.45)}
.bp-projet-cta .bp-kicker{margin:0 0 .6rem}
.bp-projet-cta__titre{font-family:var(--display);text-transform:uppercase;font-size:clamp(1.8rem,3.4vw,2.8rem);line-height:.95;margin:0 0 1.4rem}
.bp-projet-cta__btns{display:flex;flex-wrap:wrap;gap:.8rem}
.bp-btn-pill{display:inline-block;padding:.9rem 1.5rem;border-radius:999px;border:2px solid var(--encre);background:var(--papier);color:var(--encre);font-weight:700;text-decoration:none;transition:transform .3s cubic-bezier(.34,1.56,.64,1),background .3s}
.bp-btn-pill--jaune{background:var(--encre);color:var(--papier)}
.bp-btn-pill:hover{background:var(--rose);color:var(--encre);transform:rotate(-2deg) scale(1.04)}

/* Bande de logos clients */
.bp-logos{padding:3rem 0;overflow:hidden;border-top:2px solid var(--encre);border-bottom:2px solid var(--encre);background:var(--papier)}
.bp-logos .bp-kicker{text-align:center;margin:0 0 1.5rem}
.bp-logos__track{display:flex;width:max-content;animation:bp-logos 40s linear infinite}
.bp-logos:hover .bp-logos__track{animation-play-state:paused}
.bp-logos__list{display:flex;align-items:center;gap:4rem;list-style:none;margin:0;padding:0 2rem}
.bp-logos__item img{height:64px;width:auto;max-width:190px;object-fit:contain;filter:grayscale(1) contrast(1.3) brightness(.8);opacity:.85;transition:filter .3s,opacity .3s}
.bp-logos__item img:hover{filter:none;opacity:1}
.bp-logos__item--carre img{height:84px}
@keyframes bp-logos{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.bp-logos__track{animation:none;flex-wrap:wrap}.bp-logos__list[aria-hidden]{display:none}}

/* Pique, la mascotte */
.bp-pique{display:block;line-height:0}
.bp-pique img{width:100%;height:auto;display:block}
.bp-audit__intro{display:grid;grid-template-columns:1fr auto;gap:2rem;align-items:center;margin-bottom:2.5rem}
.bp-audit__intro .bp-kicker{margin:0 0 1rem}
.bp-audit__intro .bp-audit__lead{margin:0}
.bp-audit__pique{width:clamp(130px,18vw,200px);transform:rotate(4deg)}
.bp-projet-cta{position:relative;padding-right:clamp(2.2rem,24%,13rem)}
.bp-projet-cta__pique{position:absolute;right:-1.2rem;bottom:-1.5rem;width:clamp(110px,22%,190px);transform:rotate(6deg)}
.bp-done-pique{width:150px;margin:0 auto 1rem;animation:bp-pique-hop .8s cubic-bezier(.34,1.56,.64,1) both}
.bp-404__pique{width:clamp(180px,30vw,300px);margin:1rem 0 1.5rem;transform:rotate(-3deg)}
@keyframes bp-pique-hop{from{transform:translateY(30px) rotate(-8deg);opacity:0}to{transform:none;opacity:1}}
@media (max-width:700px){.bp-audit__intro{grid-template-columns:1fr}.bp-audit__pique{margin:0 auto;width:150px}.bp-projet-cta{padding-right:2.2rem;padding-bottom:9rem}.bp-projet-cta__pique{right:1rem;bottom:-1rem;width:120px}}

/* ------------------------------------------------------------------
   Rythme vertical des pages de contenu (audit, CGV, mentions…)
   et du corps des fiches projet : plus de blocs collés.
   ------------------------------------------------------------------ */
.bp-main > .bp-page__content { padding-top: clamp(3rem, 6vw, 5rem) !important; padding-bottom: clamp(4rem, 8vw, 7rem) !important; }
.bp-main > .bp-page__content > * + * { margin-block-start: 1.5rem !important; }
.bp-main > .bp-page__content > * + :is(h2, h3) { margin-block-start: 3rem !important; }
.bp-main > .bp-page__content > :is(h2, h3) + * { margin-block-start: 1rem !important; }
.bp-main > .bp-page__content > * + :is(.bp-form-wrap, .bp-audit__steps, .wp-block-embed, figure, .wp-block-gallery, .wp-block-buttons) { margin-block-start: 2.5rem !important; }
.bp-main > .bp-page__content > :is(.bp-form-wrap, .bp-audit__steps, .wp-block-embed, figure, .wp-block-gallery) + * { margin-block-start: 3rem !important; }
.bp-main > .bp-page__content > * + .bp-note,
.bp-section .bp-note { margin-block-start: 3rem !important; }
.bp-audit__steps { margin-bottom: 0 !important; }

.bp-projet__body .wp-block-post-content > * + * { margin-block-start: 1.5rem; }
.bp-projet__body .wp-block-post-content > * + :is(h2, h3) { margin-block-start: 3.5rem !important; }
.bp-projet__body .wp-block-post-content > :is(h2, h3) + * { margin-block-start: 1rem !important; }
.bp-projet__body .wp-block-post-content > * + :is(figure, .wp-block-gallery, .wp-block-embed, .wp-block-image) { margin-block-start: 2.5rem !important; }
.bp-projet__body .wp-block-post-content > :is(figure, .wp-block-gallery, .wp-block-embed, .wp-block-image) + * { margin-block-start: 2.5rem !important; }
.bp-projet__body .wp-block-embed + .wp-block-embed { margin-block-start: 1.5rem !important; }
.bp-projet-cta { margin-top: 5rem !important; }

/* Formulaires : l'ombre décalée du bouton ne doit pas toucher le texte suivant */
.bp-form-wrap { padding-bottom: .75rem; }
/* Cartes d'options et encart contact : un peu plus d'air */
.bp-extra__prix{margin:.45rem 0 .7rem !important}
.bp-extra{padding:1.3rem 1.4rem}
.bp-contact__aside h2{margin:0 0 .9rem !important}
.bp-step__hint{margin:-.2rem 0 1.1rem}

/* Texte réservé aux lecteurs d'écran et aux moteurs */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}
.bp-hero__title .bp-split{display:inline}

/* FAQ */
.bp-faq{max-width:860px;margin:4rem auto 0}
.bp-faq .bp-kicker{margin:0 0 .6rem}
.bp-faq h2{margin:0 0 1.6rem !important}
.bp-faq__item{border:2px solid var(--encre);border-radius:18px;background:#fff;margin:0 0 .8rem;transition:box-shadow .2s,transform .2s}
.bp-faq__item[open]{box-shadow:5px 5px 0 var(--encre);transform:translate(-2px,-2px)}
.bp-faq__item summary{cursor:pointer;list-style:none;padding:1.1rem 3.2rem 1.1rem 1.4rem;font-weight:700;position:relative}
.bp-faq__item summary::-webkit-details-marker{display:none}
.bp-faq__item summary::after{content:'+';position:absolute;right:1.3rem;top:50%;transform:translateY(-50%);font-size:1.6rem;line-height:1;transition:transform .2s}
.bp-faq__item[open] summary::after{transform:translateY(-50%) rotate(45deg)}
.bp-faq__item p{margin:0 !important;padding:0 1.4rem 1.3rem}

/* Logo (Piepie retouché + Moonblossom) */
.bp-logo__img{display:block;height:46px;width:auto}
@media (max-width:600px){.bp-logo__img{height:38px}}
.bp-footer__brand img{display:block;width:min(360px,100%);height:auto}

/* ------------------------------------------------------------------
   Consentement cookies
   ------------------------------------------------------------------ */
.bp-cookies{position:fixed;left:1.25rem;bottom:1.25rem;z-index:9999;width:min(460px,calc(100vw - 2.5rem));opacity:0;transform:translateY(20px) rotate(-1.5deg);transition:opacity .25s,transform .4s var(--spring)}
.bp-cookies.is-on{opacity:1;transform:none}
.bp-cookies__carte{background:var(--papier);color:var(--encre);border:2px solid var(--encre);border-radius:22px;box-shadow:6px 6px 0 var(--encre);padding:1.4rem 1.5rem 1.3rem;max-height:calc(100vh - 2.5rem);overflow:auto}
.bp-cookies__titre{font-family:var(--display);text-transform:uppercase;font-size:1.55rem;line-height:1.05;margin:0 0 .6rem}
.bp-cookies__txt{font-size:.88rem;line-height:1.5;margin:0 0 1rem}
.bp-cookies__txt a{color:inherit;text-decoration:underline}
.bp-cookies__btns{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.bp-cookies__btn{font:inherit;font-weight:700;font-size:.9rem;cursor:pointer;border:2px solid var(--encre);border-radius:999px;background:var(--papier);color:var(--encre);padding:.65rem 1.15rem;transition:transform .3s var(--spring),background .2s}
.bp-cookies__btn:hover{transform:rotate(-2deg) scale(1.04)}
.bp-cookies__btn--plein{background:var(--encre);color:var(--papier)}
.bp-cookies__btn--plein:hover{background:var(--jaune);color:var(--encre)}
.bp-cookies__btn--lien{border-color:transparent;background:none;text-decoration:underline;padding-inline:.4rem}
.bp-cookies__btn--lien:hover{transform:none}
.bp-cookies__reglages{display:grid;gap:.7rem;margin:0 0 1.1rem}
.bp-cookies__cat{display:flex;gap:.8rem;align-items:flex-start;margin:0;cursor:pointer}
.bp-cookies__cat strong{display:block;font-size:.92rem}
.bp-cookies__cat small{display:block;font-size:.8rem;line-height:1.4;opacity:.75}
.bp-cookies__cat--fixe{cursor:default}
.bp-cookies__fixe{flex:0 0 42px;height:24px;border-radius:999px;background:var(--trait);display:grid;place-items:center;font-size:.8rem;font-weight:700}
.bp-cookies__switch{position:relative;flex:0 0 42px;height:24px}
.bp-cookies__switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.bp-cookies__switch span{position:absolute;inset:0;border-radius:999px;border:2px solid var(--encre);background:var(--papier);transition:background .2s}
.bp-cookies__switch span::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--encre);transition:transform .3s var(--spring)}
.bp-cookies__switch input:checked+span{background:var(--vert)}
.bp-cookies__switch input:checked+span::after{transform:translateX(18px)}
.bp-cookies__switch input:focus-visible+span{outline:3px solid var(--rose);outline-offset:2px}
@media (max-width:600px){.bp-cookies{left:.75rem;bottom:.75rem;width:calc(100vw - 1.5rem)}.bp-cookies__titre{font-size:1.3rem}}

/* Intégrations en pause */
.bp-embed-bloque{display:grid;place-items:center;min-height:180px;background:var(--creme);border:2px dashed var(--encre);border-radius:18px;padding:1.5rem;text-align:center}
.wp-has-aspect-ratio .bp-embed-bloque{position:absolute;inset:0;min-height:0}
.bp-embed-bloque__titre{font-family:var(--display);text-transform:uppercase;font-size:1.4rem;margin:0 0 .3rem !important}
.bp-embed-bloque p{margin:0 0 .6rem}
.bp-embed-bloque__btns{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;align-items:center;margin:.4rem 0 0 !important}
.bp-embed-bloque__btns .bp-btn-pill{font:inherit;font-weight:700;cursor:pointer}
.bp-embed-bloque__lien{background:none;border:0;font:inherit;text-decoration:underline;cursor:pointer;color:inherit}
.bp-cookies [hidden],.bp-cookies[hidden]{display:none !important}

.bp-card__back-mono img{display:block;width:52%;height:auto;transform:rotate(10deg)}

/* Stickers dessinés à la main (images) */
.bp-sticker--img { background: none !important; box-shadow: none !important; padding: 0; border-radius: 0; }
.bp-sticker--img:hover { box-shadow: none; }
.bp-sticker--img picture { display: block; }
.bp-sticker__img { display: block; height: auto; pointer-events: none; filter: drop-shadow(0 10px 9px rgba(15,15,15,.32)); }
.bp-sticker--img:hover .bp-sticker__img, .bp-sticker--img.is-dragging .bp-sticker__img { filter: drop-shadow(0 16px 13px rgba(15,15,15,.42)); }
.bp-sticker__img--pill { width: clamp(170px, 17vw, 250px); }
.bp-sticker__img--rect { width: clamp(150px, 15vw, 215px); }
.bp-sticker__img--round { width: clamp(108px, 10vw, 140px); }
@media (max-width: 600px) {
	.bp-sticker__img--pill { width: 140px; }
	.bp-sticker__img--rect { width: 125px; }
	.bp-sticker__img--round { width: 92px; }
}

/* --- 30/11 : « Du papier au pixel » en encadré de presse (fini les pilules) --- */
.bp-stats { position: relative; gap: 0; padding: 1.6rem 1.8rem; border-top: 6px solid var(--encre); border-bottom: 2px solid var(--encre); background: transparent; }
.bp-stats::before, .bp-stats::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--encre); pointer-events: none; }
.bp-stats::before { top: -24px; left: -14px; border-left-width: 1px; border-top-width: 1px; transform: translate(-6px, -6px); }
.bp-stats::after { bottom: -20px; right: -14px; border-right-width: 1px; border-bottom-width: 1px; transform: translate(6px, 6px); }
.bp-stats li, .bp-stats li:nth-child(n), .bp-js .bp-stats li.bp-reveal.is-in:nth-child(n) { transform: none; background: transparent; color: var(--encre); border: 0; border-radius: 0; padding: 1rem 0; box-shadow: none; }
.bp-stats li + li { border-top: 1px solid color-mix(in srgb, var(--encre) 35%, transparent); }
.bp-stats li:hover, .bp-js .bp-stats li.bp-reveal.is-in:hover { transform: none; }
.bp-stats b { font-size: 3.4rem; text-align: left; }
.bp-stats li:nth-child(1) b { color: var(--rose); }
.bp-stats span { font-weight: 500; font-size: 1rem; line-height: 1.35; }
.bp-stats li:hover b { color: var(--rose); }
