/**
 * Being Confident Academy : page Academy, boutons et composants communs.
 * Tout est préfixé « bca- » et limité à .bca pour ne pas interférer avec le thème.
 *
 * Polices : le plugin hérite de la police du thème pour le texte et utilise une police
 * serif du système pour les titres (aucun chargement Google Fonts, conforme RGPD).
 * Pour changer : définir --bca-font-heading / --bca-font-body dans « Apparence → Personnaliser → CSS additionnel ».
 */

.bca,
.bca-floating {
	--bca-ink: #23273a;
	--bca-cream: #fbf7f1;
	--bca-orange: #f08a3c;
	--bca-orange-dark: #d9722a;
	--bca-gold: #ffd21f;
	--bca-night: #171925;
	--bca-muted: #6b6f80;
	--bca-radius: 18px;
	--bca-font-heading: Georgia, 'Times New Roman', serif;
	--bca-font-body: inherit;
}

.bca,
.bca *,
.bca *::before,
.bca *::after {
	box-sizing: border-box;
}

.bca {
	font-family: var(--bca-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--bca-ink);
}

.bca h1,
.bca h2,
.bca h3,
.bca h4,
.bca p {
	margin-top: 0;
}

.bca a {
	text-decoration: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Pleine largeur (option des réglages) ------------------------------- */

body.bca-page--full {
	overflow-x: clip;
}

body.bca-page .entry-title,
body.bca-page .page-title,
body.bca-page .wp-block-post-title {
	display: none;
}

/*
 * Les thèmes « bloc » imposent une largeur et des marges automatiques au contenu, avec une
 * spécificité égale à la nôtre : on double la classe et on utilise !important pour l'emporter.
 */
.bca.bca--full {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

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

.bca-btn {
	display: inline-block;
	padding: 0.85em 1.6em;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.bca-btn:hover,
.bca-btn:focus-visible {
	transform: translateY(-2px);
}

.bca-btn:focus-visible {
	outline: 3px solid var(--bca-gold);
	outline-offset: 2px;
}

.bca-btn--primary {
	background: var(--bca-orange);
	color: #fff;
}

.bca-btn--primary:hover {
	background: var(--bca-orange-dark);
	color: #fff;
}

.bca-btn--gold {
	background: var(--bca-gold);
	color: var(--bca-night);
}

.bca-btn--gold:hover {
	background: #ffe066;
	color: var(--bca-night);
}

.bca-btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.bca-btn--block {
	display: block;
	width: 100%;
}

.bca-btn--small {
	padding: 0.55em 1.1em;
	font-size: 0.75rem;
}

.bca-floating {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	background: var(--bca-orange);
	color: #fff;
}

/* --- Bandeau d'en-tête -------------------------------------------------- */

.bca-hero {
	background:
		radial-gradient(60% 90% at 90% 60%, rgba(240, 138, 60, 0.45), transparent 70%),
		linear-gradient(120deg, #171925 30%, #2a1d1a 100%);
	color: #fff;
	padding: clamp(48px, 8vw, 110px) 24px;
}

.bca-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
}

.bca-hero--no-image .bca-hero__inner {
	grid-template-columns: minmax(0, 1fr);
	max-width: 820px;
}

.bca-eyebrow {
	margin-bottom: 1rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bca-orange);
}

.bca-eyebrow--gold {
	color: var(--bca-gold);
}

.bca-hero__title {
	margin-bottom: 1.2rem;
	font-family: var(--bca-font-heading);
	font-size: clamp(2.4rem, 6vw, 4.4rem);
	font-weight: 800;
	line-height: 1.05;
	color: #fff;
}

.bca-hero__title em {
	font-style: italic;
	color: var(--bca-gold);
}

.bca-hero__text {
	max-width: 34em;
	margin-bottom: 1.8rem;
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.86);
}

.bca-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.bca-hero__media {
	padding: 10px;
	border-radius: 28px;
	background: linear-gradient(160deg, #f6a13f, #ee7a2f);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.bca-hero__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}

/* --- Section des cours -------------------------------------------------- */

.bca-courses {
	background: var(--bca-cream);
	padding: clamp(48px, 7vw, 96px) 24px;
}

.bca-courses__inner {
	max-width: 1180px;
	margin: 0 auto;
	text-align: center;
}

.bca-section-title {
	margin-bottom: 2.5rem;
	font-family: var(--bca-font-heading);
	font-size: clamp(1.9rem, 4.5vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--bca-ink);
}

.bca-section-title em {
	font-style: italic;
	color: var(--bca-orange);
}

.bca-empty {
	color: var(--bca-muted);
}

/* --- Grille et cartes de cours ------------------------------------------ */

.bca-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	text-align: left;
}

.bca-grid--1 { grid-template-columns: minmax(0, 1fr); }
.bca-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bca-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bca-card {
	display: flex;
	flex-direction: column;
	padding: 28px 26px 26px;
	border-top: 3px solid var(--bca-orange);
	border-radius: 6px 6px var(--bca-radius) var(--bca-radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(35, 39, 58, 0.07);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bca-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(35, 39, 58, 0.12);
}

.bca-card__icon {
	margin-bottom: 0.8rem;
	font-size: 1.6rem;
	line-height: 1;
}

.bca-card__title {
	margin-bottom: 0.6rem;
	font-family: var(--bca-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--bca-ink);
}

.bca-card__text {
	margin-bottom: 1.2rem;
	font-size: 0.95rem;
	color: var(--bca-muted);
}

.bca-card__foot {
	margin-top: auto;
}

.bca-card__price {
	margin-bottom: 0.9rem;
	font-family: var(--bca-font-heading);
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--bca-orange);
}

.bca-card__meta {
	margin-bottom: 0.4rem;
	font-size: 0.85rem;
	color: var(--bca-muted);
}

/* --- Barre de progression ----------------------------------------------- */

.bca-bar {
	display: block;
	height: 6px;
	margin-bottom: 0.9rem;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(127, 127, 140, 0.25);
}

.bca-bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--bca-orange);
}

/* --- Adaptation mobile -------------------------------------------------- */

@media (max-width: 900px) {
	.bca-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.bca-grid,
	.bca-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.bca-grid,
	.bca-grid--2,
	.bca-grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.bca-hero__actions .bca-btn {
		width: 100%;
	}
}
