/* =========================================================
   Alsharidah Child — Page Header (hero des pages internes)
   Valeurs relevées dans PageHeader.tsx et theme.css.
   ========================================================= */

.ash-page-header {
	position: relative;
	overflow: hidden;
	padding-top: 112px;
	padding-bottom: 80px;
	color: #fff;
	/* .hero-gradient de theme.css */
	background:
		radial-gradient(900px 500px at 90% 10%, rgba(76, 175, 80, 0.1), transparent 60%),
		radial-gradient(700px 500px at 0% 100%, rgba(29, 78, 216, 0.12), transparent 55%),
		linear-gradient(135deg, #0a0d14 0%, #071630 45%, #0f2957 100%);
}

@media (min-width: 768px) {
	.ash-page-header {
		padding-top: 144px;
		padding-bottom: 112px;
	}
}

/* ---------- Motif de calligraphie ---------- */

.ash-page-header__pattern {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
	background-image: url("../img/frame2.svg");
	background-size: 700px auto;
	background-repeat: repeat;
	background-position: center;
	filter: brightness(0) invert(1);
	opacity: 0.45;
}

/* ---------- Halos décoratifs ---------- */

.ash-page-header__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(64px);
	pointer-events: none;
}

.ash-page-header__blob--green {
	top: -80px;
	inset-inline-end: -80px;
	width: 300px;
	height: 300px;
	background: rgba(76, 175, 80, 0.05);
}

.ash-page-header__blob--blue {
	bottom: -80px;
	inset-inline-start: -80px;
	width: 250px;
	height: 250px;
	background: rgba(59, 130, 246, 0.08);
}

/* ---------- Contenu ---------- */

.ash-page-header__inner {
	position: relative;
	z-index: 10;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 16px;
	text-align: center;
}

@media (min-width: 640px) {
	.ash-page-header__inner {
		padding-inline: 24px;
	}
}

@media (min-width: 1024px) {
	.ash-page-header__inner {
		padding-inline: 32px;
	}
}

/* Surtitre — utilisé par les articles du blog (catégorie). */
.ash-page-header__eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: 16px;
	padding: 6px 18px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: #81c784;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: uppercase;
}

/* sm:text-xs pose la taille et la hauteur de ligne ensemble
   (--text-xs--line-height: calc(1 / .75)). Sans elle, la hauteur
   serait héritée du body (2) : 38px au lieu de 30px. */
@media (min-width: 640px) {
	.ash-page-header__eyebrow {
		font-size: 12px;
		line-height: calc(1 / 0.75);
	}
}

/* h1 de theme.css : clamp(2.2rem, 5vw, 4.25rem) au-dessus de 768px,
   clamp(1.85rem, 6vw, 2.5rem) en dessous. */
.ash-page-header__title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.85rem, 6vw, 2.5rem);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: normal;
	text-wrap: balance;
}

@media (min-width: 768px) {
	.ash-page-header__title {
		font-size: clamp(2.2rem, 5vw, 4.25rem);
		line-height: 1.4;
	}
}

/* .brand-divider de theme.css */
.ash-page-header__divider {
	width: 64px;
	height: 3px;
	margin: 20px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ash-navy), var(--ash-green));
}

.ash-page-header__subtitle {
	max-width: 672px;
	margin: 24px auto 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	line-height: 2;
}

@media (min-width: 768px) {
	.ash-page-header__subtitle {
		font-size: 16px;
		line-height: 1.625;
	}
}

/* ---------- Frise de losanges ---------- */

.ash-page-header__frieze {
	position: absolute;
	bottom: 0;
	inset-inline: 0;
	height: 32px;
	overflow: hidden;
	background: #071630;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ash-page-header__frieze svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: rgba(129, 199, 132, 0.7);
	pointer-events: none;
}

/* ---------- Titre natif de GeneratePress ---------- */

/* Le hero porte déjà le h1 : on masque celui du thème parent pour ne
   pas avoir deux titres de niveau 1 sur la même page. */
.ash-has-page-header .entry-header {
	display: none;
}

/* ---------- Version anglaise ---------- */

/* tracking-* du source. La règle globale html[dir="rtl"] h1..h6,
   span, p, a, button { letter-spacing: normal !important } l'annule
   en arabe ; en anglais elle ne joue pas et la valeur du build
   s'applique (Tailwind 4.1.12 : tight -0.025em, wide 0.025em,
   wider 0.05em, widest 0.1em). Toutes les règles ci-dessous sont
   limitées à html[dir="ltr"] : la version arabe n'en reçoit aucune. */

/* PageHeader.tsx l.29 : tracking-normal en arabe, tracking-[0.25em]
   en anglais. */
html[dir="ltr"] .ash-page-header__eyebrow {
	letter-spacing: 0.25em;
}
