/* GENIUS Core — mise en page pleine largeur et composants */

:root {
	--genius-gutter: clamp(16px, 4vw, 56px);
}

/* ---------- Pleine largeur ---------- */
body.genius-full-width #content > .tg-container,
body.genius-full-width .site-content > .tg-container,
body.genius-full-width .tg-page-header .tg-container {
	max-width: none !important;
	width: 100% !important;
	padding-left: var(--genius-gutter) !important;
	padding-right: var(--genius-gutter) !important;
	box-sizing: border-box !important;
}

body.genius-full-width #primary,
body.genius-full-width .content-area,
body.genius-full-width .masteriyo-w-100,
body.genius-full-width .masteriyo-container,
body.genius-full-width .masteriyo-account,
body.genius-full-width .masteriyo-checkout,
body.genius-full-width .masteriyo-courses-wrapper,
body.genius-full-width .masteriyo-single-course,
body.genius-full-width .entry-content > .wp-block-group.is-layout-constrained,
body.genius-full-width .entry-content > .alignwide {
	max-width: none !important;
	width: 100% !important;
}

/* Le texte courant reste lisible même en pleine largeur. */
body.genius-full-width .entry-content > p,
body.genius-full-width .entry-content > ul,
body.genius-full-width .entry-content > ol {
	max-width: 900px;
}

/* ---------- Paiement : pas de code SWIFT pour le Mobile Money ---------- */
.wire-transfer-details .wire-transfer-row:nth-child(3) {
	display: none;
}

/* ---------- Page de paiement (façon grandes plateformes) ---------- */
body.masteriyo-checkout { background: #f7f9fa; }
.masteriyo-checkout-section--title { font-size: 20px !important; font-weight: 800 !important; color: #0f172a !important; }

/* Bloc Mobile Money */
.genius-mm { margin-top: 6px; }
.genius-mm__demo {
	margin: 0 0 16px;
	padding: 10px 14px;
	background: #fef3c7;
	border-left: 4px solid #d97706;
	color: #92400e;
	font-size: 14px;
}
.genius-mm__operators { border: 0; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.genius-mm__operators legend { font-weight: 700; color: #0f172a; margin-bottom: 10px; padding: 0; font-size: 15px; }
.genius-mm__op {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 8px 14px;
	background: #fff;
	border: 2px solid #d1d7dc;
	cursor: pointer;
	text-align: center;
	transition: border-color .15s, box-shadow .15s;
}
.genius-mm__op:hover { border-color: #0f172a; }
.genius-mm__op input { position: absolute; opacity: 0; pointer-events: none; }
.genius-mm__logo {
	width: 52px; height: 52px;
	display: grid; place-items: center;
	font-weight: 900; font-size: 17px;
	border-radius: 50%;
}
.genius-mm__name { font-size: 13px; font-weight: 700; color: #1c1d1f; }
.genius-mm__check {
	position: absolute; top: 6px; right: 6px;
	width: 20px; height: 20px; border-radius: 50%;
	display: none; place-items: center;
	background: #b91c1c; color: #fff; font-size: 12px; font-weight: 800;
}
.genius-mm__op.is-selected { border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(185, 28, 28, .15); }
.genius-mm__op.is-selected .genius-mm__check { display: grid; }
.genius-mm__op:has(input:focus-visible) { outline: 3px solid #fbbf24; outline-offset: 2px; }
.genius-mm__field label { display: block; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.genius-mm__phone { display: flex; border: 2px solid #d1d7dc; background: #fff; max-width: 420px; }
.genius-mm__phone:focus-within { border-color: #0f172a; }
.genius-mm__prefix { padding: 12px 14px; background: #f1f5f9; border-right: 1px solid #d1d7dc; font-weight: 700; white-space: nowrap; }
.genius-mm__phone input { flex: 1; min-width: 0; border: 0 !important; padding: 12px 14px !important; font-size: 17px !important; letter-spacing: .04em; outline: none; box-shadow: none !important; }
.genius-mm__field small { display: block; margin-top: 6px; color: #6a6f73; }

/* Page de confirmation : bandeau « paiement confirmé » + reçu */
.masteriyo-order-invoice-download { display: none; } /* remplacé par le bouton « Télécharger mon reçu » */
.genius-receipt-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin: 0 0 24px; padding: 20px 22px;
	background: #ecfdf5; border: 1px solid #a7f3d0; border-left: 5px solid #059669;
}
.genius-receipt-cta strong { display: block; font-size: 18px; color: #065f46; }
.genius-receipt-cta span { color: #065f46; font-size: 14px; }
.genius-receipt-cta p { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.genius-receipt-btn {
	display: inline-block; padding: 12px 20px; font-weight: 700; font-size: 15px;
	background: #b91c1c; color: #fff !important; text-decoration: none !important; border: 2px solid #b91c1c;
}
.genius-receipt-btn:hover { background: #991b1b; border-color: #991b1b; }
.genius-receipt-btn--ghost { background: #fff; color: #0f172a !important; border-color: #0f172a; }
.genius-receipt-btn--ghost:hover { background: #0f172a; color: #fff !important; border-color: #0f172a; }

/* Bouton et garanties */
#masteriyo-place-order { font-size: 17px !important; padding: 16px !important; border-radius: 0 !important; }
.genius-checkout-legal { font-size: 12px; color: #6a6f73; text-align: center; margin: 10px 0 0; }
.genius-checkout-trust { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid #e2e8f0; display: grid; gap: 14px; }
.genius-checkout-trust li { display: flex; gap: 12px; font-size: 13px; color: #475569; line-height: 1.45; }
.genius-checkout-trust li > span { font-size: 20px; line-height: 1; }
.genius-checkout-trust strong { display: block; color: #0f172a; font-size: 14px; }

@media (max-width: 600px) {
	.genius-mm__operators { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Carrousel d'accueil [genius_hero_slider] ---------- */
.genius-hero {
	--genius-hero-interval: 6000ms;
	position: relative;
	width: 100%;
	height: clamp(480px, 78vh, 760px);
	overflow: hidden;
	background: #0f172a;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.genius-hero__track {
	display: flex;
	height: 100%;
	transition: transform 900ms cubic-bezier(.65, 0, .35, 1);
	will-change: transform;
}
.genius-hero__slide {
	position: relative;
	flex: 0 0 100%;
	height: 100%;
	overflow: hidden;
}
.genius-hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.02);
	transition: transform calc(var(--genius-hero-interval) + 1500ms) linear;
}
/* Zoom lent sur la diapositive affichée : donne du mouvement, comme une vidéo. */
.genius-hero__slide.is-active .genius-hero__media {
	transform: scale(1.12);
}
.genius-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(15, 23, 42, .94) 0%, rgba(15, 23, 42, .82) 34%, rgba(15, 23, 42, .35) 62%, rgba(15, 23, 42, .1) 100%),
		linear-gradient(0deg, rgba(15, 23, 42, .55) 0%, rgba(15, 23, 42, 0) 35%);
}
.genius-hero__content {
	position: relative;
	z-index: 1;
	height: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 64px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}
.genius-hero__content > * {
	max-width: 640px;
}
.genius-hero__eyebrow {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fca5a5;
}
.genius-hero__eyebrow::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 3px;
	margin-right: 10px;
	vertical-align: middle;
	background: #b91c1c;
}
.genius-hero .genius-hero__title {
	margin: 0 0 18px;
	font-size: clamp(30px, 4.4vw, 58px);
	line-height: 1.08;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.genius-hero__text {
	margin: 0 0 22px;
	font-size: clamp(16px, 1.35vw, 19px);
	line-height: 1.55;
	color: #e2e8f0;
}
.genius-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 26px;
	font-size: 14px;
	font-weight: 700;
}
.genius-hero__meta span {
	padding: 6px 12px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
}
.genius-hero__rating { color: #fbbf24; }
.genius-hero__rating small { color: #e2e8f0; font-weight: 500; }
.genius-hero__price { background: #b91c1c !important; border-color: #b91c1c !important; }
.genius-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}
.genius-hero .genius-hero__btn {
	display: inline-block;
	padding: 15px 28px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 0;
	transition: background-color .2s, color .2s, border-color .2s;
}
.genius-hero .genius-hero__btn--primary { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.genius-hero .genius-hero__btn--primary:hover { background: #991b1b; border-color: #991b1b; color: #fff; }
.genius-hero .genius-hero__btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.genius-hero .genius-hero__btn--ghost:hover { background: #fff; color: #0f172a; }
.genius-hero__btn:focus-visible,
.genius-hero__arrow:focus-visible,
.genius-hero__dot:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }

/* Flèches */
.genius-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 52px;
	height: 52px;
	margin-top: -26px;
	padding: 0;
	font-size: 34px;
	line-height: 1;
	color: #fff;
	background: rgba(15, 23, 42, .45);
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 0;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s, background-color .2s;
}
.genius-hero:hover .genius-hero__arrow,
.genius-hero__arrow:focus-visible { opacity: 1; }
.genius-hero__arrow:hover { background: #b91c1c; border-color: #b91c1c; }
.genius-hero__arrow--prev { left: 18px; }
.genius-hero__arrow--next { right: 18px; }

/* Points avec barre de progression */
.genius-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 26px;
	z-index: 2;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}
.genius-hero__dot {
	position: relative;
	width: 46px;
	height: 4px;
	padding: 0;
	background: rgba(255, 255, 255, .35);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	overflow: hidden;
}
.genius-hero__dot::after { /* zone cliquable plus grande */
	content: "";
	position: absolute;
	inset: -12px 0;
}
.genius-hero__dot span {
	position: absolute;
	inset: 0;
	width: 0;
	background: #fff;
}
.genius-hero__dot.is-active span {
	animation: genius-hero-progress var(--genius-hero-interval) linear forwards;
}
.genius-hero.is-paused .genius-hero__dot.is-active span { animation-play-state: paused; }
.genius-hero.is-static .genius-hero__dot.is-active span { animation: none; width: 100%; }
@keyframes genius-hero-progress { from { width: 0; } to { width: 100%; } }

/* Mobile : texte en bas, image au-dessus, dégradé vertical */
@media (max-width: 768px) {
	.genius-hero { height: clamp(520px, 86vh, 680px); }
	.genius-hero__shade {
		background: linear-gradient(0deg, rgba(15, 23, 42, .97) 0%, rgba(15, 23, 42, .88) 48%, rgba(15, 23, 42, .25) 80%, rgba(15, 23, 42, .1) 100%);
	}
	.genius-hero__content { justify-content: flex-end; padding-bottom: 70px; }
	.genius-hero__text { font-size: 15px; }
	.genius-hero .genius-hero__btn { padding: 13px 20px; font-size: 14px; }
	.genius-hero__arrow { display: none; }
}

/* Animations réduites (réglage d'accessibilité de l'appareil) */
@media (prefers-reduced-motion: reduce) {
	.genius-hero__track, .genius-hero__media { transition: none !important; }
	.genius-hero__slide.is-active .genius-hero__media { transform: none; }
}

/* ---------- Bandeau de statistiques réelles ---------- */
.genius-stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
	text-align: center;
}
.genius-stats strong {
	display: block;
	font-size: 28px;
	font-weight: 800;
	color: #0f172a;
}
.genius-stats span {
	color: #6a6f73;
	font-size: 14px;
}
