/**
 * Hero page d’accueil — Djizhub
 *
 * Marquage HTML attendu (front-page.php, template Elementor « HTML personnalisé », etc.) :
 *
 * <section class="djizhub-hero" id="djizhub-hero" aria-label="Accueil">
 *   <div class="djizhub-hero__bg">
 *     <svg class="djizhub-hero__continent" viewBox="0 0 320 380" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
 *       <path class="djizhub-hero__continent-path" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"
 *         d="M168 12c28 6 52 28 62 54 8 22 6 48 18 68 14 24 42 36 48 64 4 18-8 36-6 54 2 22 22 38 18 60-4 26-32 44-54 58-26 18-58 22-88 16-32-6-58-28-72-56-12-26-10-56-4-84 6-32 22-60 40-86 16-24 34-46 40-74 4-18 0-38 0-58z"/>
 *     </svg>
 *     <div class="djizhub-hero__pattern" aria-hidden="true"></div>
 *     <div class="djizhub-hero__particles" id="djizhub-hero-particles" aria-hidden="true"></div>
 *   </div>
 *   <div class="djizhub-hero__inner">
 *     <div class="djizhub-hero__col djizhub-hero__col--copy">
 *       <img class="djizhub-hero__logo" src="..." alt="Djizhub" width="160" height="40" />
 *       <h1 class="djizhub-hero__headline">
 *         <span class="djizhub-hero__word">L'écosystème</span>
 *         <span class="djizhub-hero__word">financier</span>
 *         <span class="djizhub-hero__word">africain.</span>
 *       </h1>
 *       <p class="djizhub-hero__sub">L'écosystème financier africain qui connecte l'épargne, le commerce et les entreprises.</p>
 *       <div class="djizhub-hero__ctas">
 *         <a class="djizhub-hero__btn djizhub-hero__btn--primary" href="#">Télécharger l'app</a>
 *         <a class="djizhub-hero__btn djizhub-hero__btn--ghost" href="#">Découvrir les Coffres</a>
 *       </div>
 *     </div>
 *     <div class="djizhub-hero__col djizhub-hero__col--visual">
 *       <div class="djizhub-hero__phone">
 *         <div class="djizhub-hero__phone-rim"></div>
 *         <div class="djizhub-hero__phone-body">
 *           <div class="djizhub-hero__phone-notch" aria-hidden="true"></div>
 *           <div class="djizhub-hero__phone-screen">
 *             <div class="djizhub-hero__phone-scroll" id="djizhub-hero-phone-scroll">
 *               <ul class="djizhub-hero__txn-list" id="djizhub-hero-txns">
 *                 <li class="djizhub-hero__txn"><span class="djizhub-hero__txn-brand">WAVE</span><span class="djizhub-hero__txn-amt">+12 500 FCFA</span></li>
 *                 ... (autres lignes)
 *               </ul>
 *             </div>
 *           </div>
 *         </div>
 *       </div>
 *     </div>
 *   </div>
 *   <div class="djizhub-hero__kpi">
 *     <div class="djizhub-hero__kpi-item"><span class="djizhub-hero__kpi-value" data-target="80000" data-suffix="+">0</span><span class="djizhub-hero__kpi-label">utilisateurs</span></div>
 *     <div class="djizhub-hero__kpi-item"><span class="djizhub-hero__kpi-value" data-target="75000" data-suffix="+">0</span><span class="djizhub-hero__kpi-label">coffres</span></div>
 *     <div class="djizhub-hero__kpi-item"><span class="djizhub-hero__kpi-value" data-target="4" data-suffix=" Mds FCFA">0</span><span class="djizhub-hero__kpi-label">transactés</span></div>
 *   </div>
 * </section>
 */

.djizhub-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	background-color: #03111a;
	color: var(--color-text, #e8f4f8);
	font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
}

.djizhub-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

/* Continent — pulsation + lueur #00597E */
.djizhub-hero__continent {
	position: absolute;
	right: -8%;
	bottom: -12%;
	width: min(85vw, 520px);
	height: auto;
	color: #00597e;
	opacity: 0.55;
	filter: drop-shadow(0 0 24px rgba(0, 89, 126, 0.55))
		drop-shadow(0 0 60px rgba(0, 89, 126, 0.35));
	animation: djizhub-hero-continent-pulse 5s ease-in-out infinite;
}

.djizhub-hero__continent-path {
	vector-effect: non-scaling-stroke;
}

@keyframes djizhub-hero-continent-pulse {
	0%,
	100% {
		opacity: 0.45;
		filter: drop-shadow(0 0 18px rgba(0, 89, 126, 0.45))
			drop-shadow(0 0 48px rgba(0, 89, 126, 0.28));
		transform: scale(1);
	}
	50% {
		opacity: 0.65;
		filter: drop-shadow(0 0 32px rgba(0, 89, 126, 0.7))
			drop-shadow(0 0 72px rgba(0, 89, 126, 0.42));
		transform: scale(1.02);
	}
}

/* Motif géométrique type bogolan / tissu — texture ~5 % */
.djizhub-hero__pattern {
	position: absolute;
	inset: 0;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%2300C6FF' stroke-width='0.8'%3E%3Cpath d='M0 40h80M40 0v80M10 10l60 60M70 10L10 70'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3Cpath d='M20 0v20M60 0v20M20 60v20M60 60v20M0 20h20M60 20h20M0 60h20M60 60h20'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 80px 80px;
}

.djizhub-hero__particles {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.djizhub-hero__particle {
	position: absolute;
	bottom: -2rem;
	left: 0;
	font-size: clamp(0.65rem, 1.8vw, 0.85rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(0, 198, 255, 0.55);
	text-shadow: 0 0 12px rgba(0, 198, 255, 0.35);
	user-select: none;
	pointer-events: none;
	white-space: nowrap;
}

.djizhub-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-10, 2.5rem);
	align-items: center;
	width: 100%;
	max-width: var(--container-max, 72rem);
	margin: 0 auto;
	padding: calc(var(--header-height, 4.5rem) + var(--space-6, 1.5rem)) var(--container-pad, 1.5rem)
		var(--space-12, 3rem);
}

@media (min-width: 960px) {
	.djizhub-hero__inner {
		grid-template-columns: 1fr minmax(280px, 38%);
		gap: var(--space-12, 3rem);
	}
}

.djizhub-hero__col--copy {
	max-width: 36rem;
}

/* Logo texte (fallback si aucun logo dans les réglages). */
.djizhub-hero__logo.djizhub-hero__logo--text {
	display: block;
	margin: 0 0 var(--space-4, 1rem);
	max-width: 160px;
	font-family: var(--font-display, "Clash Display", sans-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	text-decoration: none;
}

/* Logo image depuis le personnalisateur WordPress. */
.djizhub-hero__logo.djizhub-hero__logo--image {
	display: block;
	margin: 0 0 var(--space-4, 1rem);
	max-width: min(240px, 75vw);
	text-decoration: none;
}

.djizhub-hero__logo--image .djizhub-site-logo__img--hero {
	display: block;
	width: auto;
	height: auto;
	max-height: clamp(40px, 8vw, 56px);
	max-width: 100%;
}

.djizhub-hero__logo-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 6px;
	vertical-align: middle;
	border-radius: 50%;
	background: var(--color-accent, #00c6ff);
	box-shadow: 0 0 12px rgba(0, 198, 255, 0.55);
}

/* Conteneur logo (texte ou image) — animé au chargement (hero.js). */
.djizhub-hero__logo {
	display: block;
	height: auto;
	margin-bottom: var(--space-6, 1.5rem);
	opacity: 0;
}

.djizhub-hero__headline {
	margin: 0 0 var(--space-5, 1.25rem);
	font-family: var(--font-display, "Clash Display", "DM Sans", sans-serif);
	font-size: clamp(2rem, 4vw + 1rem, 3.35rem);
	font-weight: 600;
	line-height: var(--lh-tight, 1.15);
	letter-spacing: -0.02em;
}

.djizhub-hero__word {
	display: inline-block;
	margin-right: 0.35em;
	opacity: 0;
}

.djizhub-hero__sub {
	margin: 0 0 var(--space-8, 2rem);
	font-size: var(--fs-md, 1.125rem);
	line-height: var(--lh-relaxed, 1.6);
	color: var(--color-muted, #8baebf);
	max-width: 32rem;
	opacity: 0;
}

.djizhub-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4, 1rem);
}

.djizhub-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.5rem;
	font-family: inherit;
	font-size: var(--fs-sm, 0.9375rem);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius-md, 12px);
	transition: transform var(--duration-fast, 150ms) var(--ease-out, ease),
		box-shadow var(--duration-base, 280ms) var(--ease-out, ease);
	opacity: 0;
}

.djizhub-hero__btn:focus-visible {
	outline: 2px solid var(--color-accent, #00c6ff);
	outline-offset: var(--focus-offset, 2px);
}

.djizhub-hero__btn--primary {
	color: #fff;
	background-color: #00597e;
	border: 1px solid rgba(0, 198, 255, 0.25);
	box-shadow: 0 4px 24px rgba(0, 89, 126, 0.45);
}

.djizhub-hero__btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(0, 89, 126, 0.55);
}

.djizhub-hero__btn--ghost {
	color: var(--color-text, #e8f4f8);
	background: rgba(7, 28, 38, 0.35);
	border: 1px solid rgba(0, 198, 255, 0.35);
	backdrop-filter: blur(8px);
}

.djizhub-hero__btn--ghost:hover {
	border-color: rgba(0, 198, 255, 0.6);
	box-shadow: var(--shadow-glow, 0 0 40px rgba(0, 198, 255, 0.15));
	transform: translateY(-2px);
}

/* iPhone — glassmorphism + bordure dégradée */
.djizhub-hero__phone {
	position: relative;
	justify-self: center;
	width: min(100%, 280px);
	padding: 3px;
	border-radius: 36px;
	background: linear-gradient(145deg, #00597e 0%, #00c6ff 50%, #00597e 100%);
	background-size: 200% 200%;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 48px rgba(0, 198, 255, 0.12);
	opacity: 0;
}

.djizhub-hero__phone-rim {
	display: none;
}

.djizhub-hero__phone-body {
	position: relative;
	border-radius: 33px;
	overflow: hidden;
	background: rgba(3, 17, 26, 0.65);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.djizhub-hero__phone-notch {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	width: 38%;
	height: 22px;
	background: #03111a;
	border-radius: 0 0 14px 14px;
	transform: translateX(-50%);
}

.djizhub-hero__phone-screen {
	padding: 2.25rem 0.75rem 1rem;
	min-height: 380px;
}

.djizhub-hero__phone-scroll {
	position: relative;
	height: 320px;
	overflow: hidden;
	mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}

.djizhub-hero__txn-list {
	margin: 0;
	padding: 0;
	list-style: none;
	will-change: transform;
	display: flex;
	flex-direction: column;
	gap: var(--space-2, 0.5rem);
}

.djizhub-hero__txn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3, 0.75rem);
	padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
	margin: 0;
	font-size: var(--fs-xs, 0.8125rem);
	background: rgba(0, 89, 126, 0.22);
	border: 1px solid rgba(0, 198, 255, 0.12);
	border-radius: var(--radius-sm, 8px);
}

.djizhub-hero__txn-brand {
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--color-accent, #00c6ff);
}

.djizhub-hero__txn-amt {
	font-weight: 600;
	color: var(--color-text, #e8f4f8);
}

/* Bande confiance / liens utiles (remplace les faux KPI investisseurs). */
.djizhub-hero__trust-strip {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--space-4, 1rem);
	width: 100%;
	max-width: var(--container-max, 72rem);
	margin: 0 auto;
	padding: var(--space-8, 2rem) var(--container-pad, 1.5rem) var(--space-10, 2.5rem);
	border-top: 1px solid rgba(0, 198, 255, 0.1);
	background: linear-gradient(180deg, transparent, rgba(0, 89, 126, 0.1));
}

.djizhub-hero__trust-item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3, 0.75rem);
	padding: var(--space-4, 1rem) var(--space-5, 1.25rem);
	text-align: left;
	text-decoration: none;
	color: inherit;
	background: rgba(3, 17, 26, 0.55);
	border: 1px solid rgba(0, 198, 255, 0.14);
	border-radius: var(--radius-md, 12px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.35s ease,
		box-shadow 0.35s ease;
}

.djizhub-hero__trust-item:hover,
.djizhub-hero__trust-item:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(0, 198, 255, 0.35);
	box-shadow: 0 18px 48px rgba(0, 89, 126, 0.25), 0 0 0 1px rgba(0, 198, 255, 0.12);
	outline: none;
}

.djizhub-hero__trust-icon {
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	line-height: 1;
	color: var(--color-accent, #00c6ff);
	background: rgba(0, 198, 255, 0.1);
	border-radius: 10px;
}

.djizhub-hero__trust-text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.djizhub-hero__trust-text strong {
	font-family: var(--font-display, "Clash Display", sans-serif);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--color-text, #e8f4f8);
}

.djizhub-hero__trust-text small {
	font-size: var(--fs-xs, 0.8125rem);
	line-height: 1.4;
	color: var(--color-muted, #8baebf);
}

@media (prefers-reduced-motion: reduce) {
	.djizhub-hero__continent {
		animation: none;
		opacity: 0.5;
	}
}
