/* =========================================================
   BoClic — composants des compositions (dossier /patterns)
   ========================================================= */

/* ---------- Héros : texte + photo ---------- */
.bc-hero { position: relative; overflow: hidden; isolation: isolate; }
.bc-hero__media { position: relative; }
.bc-hero__media .wp-block-image { position: relative; z-index: 1; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
	.bc-hero__content > * { animation: bc-up .8s var(--bc-ease) both; }
	.bc-hero__content > *:nth-child(2) { animation-delay: .1s; }
	.bc-hero__content > *:nth-child(3) { animation-delay: .2s; }
	.bc-hero__content > *:nth-child(4) { animation-delay: .3s; }
	.bc-hero__content > *:nth-child(5) { animation-delay: .4s; }
	.bc-hero__media { animation: bc-zoom 1s var(--bc-ease) .2s both; }
}
@keyframes bc-zoom {
	from { opacity: 0; transform: scale(.94); }
	to   { opacity: 1; transform: none; }
}

/* Décors facultatifs : ajouter/retirer la classe bc-hero--deco sur le groupe */
.bc-hero--deco::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: clamp(320px, 46vw, 720px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--bc-alt);
	left: -14%;
	top: -38%;
}
.bc-hero--deco::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 200px;
	height: 200px;
	right: 3%;
	bottom: 4%;
	background-image: radial-gradient(var(--bc-border) 2.2px, transparent 2.4px);
	background-size: 18px 18px;
}
.bc-hero--deco .bc-hero__media::before {
	content: "";
	position: absolute;
	z-index: 0;
	inset: 9% -5% -5% 12%;
	border-radius: calc(var(--bc-radius-img) + 4px);
	background: var(--bc-accent);
	transform: rotate(4deg);
}

/* Badge flottant posé sur la photo */
.bc-badge {
	position: absolute !important;
	z-index: 2;
	left: -10%;
	bottom: 9%;
	margin: 0 !important;
	max-width: 260px;
	padding: .85rem 1.1rem !important;
	border-radius: var(--bc-radius-sm);
	background: var(--bc-surface);
	box-shadow: 0 20px 40px -14px rgba(var(--bc-shadow-rgb), .3);
}
.bc-badge p { margin: 0; line-height: 1.3; font-size: .8rem; }
.bc-badge p:first-child { font-size: .95rem; font-weight: 700; color: var(--bc-dark); }
@media (prefers-reduced-motion: no-preference) {
	.bc-badge { animation: bc-up .8s var(--bc-ease) .9s both, bc-float 6s ease-in-out 1.8s infinite; }
}
@keyframes bc-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-8px); }
}

@media (max-width: 781px) {
	.bc-hero--deco::before { left: -40%; top: -20%; }
	.bc-hero--deco::after { display: none; }
	.bc-hero__media { margin-top: 1.5rem; }
	.bc-badge { left: 4%; bottom: 5%; }
}

/* ---------- En-tête de page (pages intérieures) ---------- */
.bc-page-head {
	padding-top: clamp(2.75rem, 5vw, 4.25rem) !important;
	padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

/* ---------- Cartes ---------- */
.bc-cards > .wp-block-column:has(> .bc-card) { display: flex; }
.bc-card {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	display: flex;
	flex-direction: column;
	padding: 2rem 1.75rem !important;
	border-radius: var(--bc-radius);
	background: var(--bc-surface);
	box-shadow: var(--bc-shadow-sm);
	transition: transform .3s var(--bc-ease), box-shadow .3s ease;
}
.bc-card:hover { transform: translateY(-6px); box-shadow: var(--bc-shadow-md); }
.bc-card > * { margin-top: 0 !important; margin-bottom: .9rem; }
.bc-card h3 { font-size: 1.35rem; }
.bc-card__num {
	font-size: 2rem !important;
	font-weight: 800;
	line-height: 1;
	color: var(--bc-accent);
	margin-bottom: 1.25rem !important;
}
.bc-card .bc-more { margin-top: auto !important; margin-bottom: 0; padding-top: .5rem; }
.bc-card__price {
	font-size: 1.5rem !important;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--bc-accent);
}

/* Carte mise en avant (sombre, légèrement surélevée, pastille) */
.bc-card--featured,
.bc-card--dark {
	background: var(--bc-dark);
	box-shadow: 0 30px 60px -24px rgba(var(--bc-shadow-rgb), .55);
}
.bc-card--featured :where(h3, p, li),
.bc-card--dark :where(h3, p, li) { color: var(--bc-surface); }
.bc-card--featured .bc-card__num,
.bc-card--featured .bc-card__price { color: var(--bc-accent); }
.bc-card--featured { transform: translateY(-12px); }
.bc-card--featured:hover { transform: translateY(-18px); }
.bc-card--featured::before {
	content: var(--bc-featured-label);
	position: absolute;
	top: 1.6rem;
	right: 1.5rem;
	padding: .3rem .75rem;
	border-radius: 999px;
	background: var(--bc-accent);
	color: var(--bc-on-accent);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
@media (max-width: 781px) {
	.bc-card--featured,
	.bc-card--featured:hover { transform: none; }
	.bc-card h3 { font-size: 1.15rem; }
}

/* ---------- Bandeau de chiffres ---------- */
.bc-stats { gap: 1.5rem !important; margin-block: 0 !important; }
.bc-stats > .wp-block-column { text-align: center; position: relative; }
.bc-stats > .wp-block-column + .wp-block-column::before {
	content: "";
	position: absolute;
	left: -.75rem;
	top: 15%;
	bottom: 15%;
	width: 1px;
	background: currentColor;
	opacity: .14;
}
.bc-stat__num {
	font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--bc-accent) !important;
	opacity: 1 !important;
	margin: 0 0 .4rem !important;
}
.bc-stat__label { font-size: .9rem !important; line-height: 1.35; margin: 0 !important; }
@media (max-width: 781px) {
	.bc-stats { display: grid !important; grid-template-columns: 1fr 1fr; row-gap: 1.75rem !important; }
	.bc-stats > .wp-block-column + .wp-block-column::before { display: none; }
}

/* ---------- Arguments (grille 2 × 2) ---------- */
.bc-why {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}
.bc-why > * { margin: 0 !important; }
.bc-why__item {
	padding: 1.5rem 1.4rem;
	border-radius: calc(var(--bc-radius) - 4px);
	background: var(--bc-alt);
	border-top: 3px solid var(--bc-accent);
	transition: transform .3s var(--bc-ease);
}
.bc-why__item:hover { transform: translateY(-4px); }
.bc-why__item > * { margin: 0 0 .5rem; }
.bc-why__item > *:last-child { margin-bottom: 0; }
.bc-why__item h3 { font-size: 1.15rem; }
.bc-why__item p { font-size: .95rem; line-height: 1.55; }
@media (max-width: 781px) {
	.bc-why { grid-template-columns: 1fr; }
}

/* ---------- Étapes (flèches entre les cartes) ---------- */
@media (min-width: 782px) {
	.bc-steps > .wp-block-column:not(:last-child) .bc-card::after {
		content: "→";
		position: absolute;
		right: -1.35rem;
		top: 2.1rem;
		color: var(--bc-accent);
		font-weight: 800;
		font-size: 1.2rem;
		z-index: 2;
	}
}
.bc-steps .bc-card h3 { font-size: 1.2rem; }

/* ---------- FAQ (blocs Détails natifs) ---------- */
.bc-faq > * { margin-block: 0 .75rem !important; }
.bc-faq__item {
	background: var(--bc-surface);
	border: 1px solid var(--bc-border);
	border-radius: calc(var(--bc-radius) - 6px);
	padding: 0 1.5rem;
	transition: box-shadow .2s ease, border-color .2s ease;
}
.bc-faq__item[open] { border-color: transparent; box-shadow: var(--bc-shadow-sm); }
.bc-faq__item summary {
	margin: 0 !important;
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 1.15rem 2.5rem 1.15rem 0;
	font-weight: 700;
	color: var(--bc-dark);
}
.bc-faq__item summary::-webkit-details-marker { display: none; }
.bc-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	width: 1.8rem;
	height: 1.8rem;
	margin-top: -.9rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--bc-alt);
	color: var(--bc-accent);
	font-weight: 800;
	transition: transform .25s ease, background-color .2s ease;
}
.bc-faq__item[open] summary::after { transform: rotate(45deg); background: var(--bc-accent); color: #fff; }
.bc-faq__item > p { margin: 0 0 1.25rem; }

/* ---------- Appel à l'action final ---------- */
.bc-cta { position: relative; overflow: hidden; isolation: isolate; }
.bc-cta::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: clamp(280px, 40vw, 560px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--bc-accent) 35%, transparent), transparent 70%);
	right: -10%;
	top: -40%;
}

/* ---------- Encadré (bandeau blanc avec liseré d'accent) ---------- */
.bc-panel {
	position: relative;
	overflow: hidden;
	padding: 2.25rem 2.5rem !important;
	border-radius: var(--bc-radius);
	background: var(--bc-surface);
	box-shadow: var(--bc-shadow-sm);
}
.bc-panel::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 6px;
	background: var(--bc-accent);
}
@media (max-width: 781px) {
	.bc-panel { padding-inline: 1.5rem !important; }
}

/* ---------- Contact ---------- */
.bc-contact .wp-block-columns { gap: clamp(1.5rem, 4vw, 3.5rem); }
.bc-contact__item {
	padding: 0 0 1.25rem 1.1rem;
	margin: 0 0 1.25rem !important;
	border-left: 3px solid var(--bc-accent);
}
.bc-contact__item > * { margin: 0 0 .35rem; }
.bc-contact__item h3 { font-size: 1.05rem; }
.bc-contact__item p { font-size: .95rem; line-height: 1.6; }
.bc-contact__item a { color: var(--bc-dark); text-decoration-color: var(--bc-accent); }
.bc-contact__form {
	padding: 2.25rem !important;
	border-radius: var(--bc-radius);
	background: var(--bc-surface);
	box-shadow: 0 1px 2px rgba(var(--bc-shadow-rgb), .04), 0 24px 48px -24px rgba(var(--bc-shadow-rgb), .3);
}
@media (max-width: 781px) {
	.bc-contact__form { padding: 1.5rem !important; }
}

/* ---------- Pages légales ---------- */
.bc-legal h2 {
	font-size: 1.5rem;
	line-height: 1.25;
	margin-top: 2.25rem;
}
.bc-legal h2:first-child { margin-top: 0; }
.bc-legal .bc-updated { font-size: .85rem; opacity: .8; margin-top: 2.5rem; }
