/* ==========================================================================
   Ouazzani Heading — modern section title
   Signature: a brand-gradient accent (underline / side bar / extending rule)
   paired with a small uppercase eyebrow. Everything else stays quiet.
   Scoped to .oz-heading. Colors come from CSS vars set by the widget.
   ========================================================================== */

.oz-heading {
	--oz-hd-accent: #109da9;
	--oz-hd-accent-2: #09b9c0;
	display: block;
}

/* main row: title block on one side, optional link on the other */
.oz-heading__main {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.oz-heading__text {
	display: inline-flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

/* ---- Alignment (driven by wrapper class from the widget) ---- */
.oz-heading--align-center { text-align: center; }
.oz-heading--align-center .oz-heading__main { justify-content: center; }
.oz-heading--align-center .oz-heading__text { align-items: center; }

.oz-heading--align-right { text-align: right; }
.oz-heading--align-right .oz-heading__main { justify-content: flex-end; }
.oz-heading--align-right .oz-heading__text { align-items: flex-end; }

/* ---- Eyebrow ---- */
.oz-heading__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--oz-hd-accent);
}

/* ---- Title ---- */
.oz-heading__title {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #1f2933;
	position: relative;
}

.oz-heading__title .oz-heading__hl {
	color: var(--oz-hd-accent);
}

/* ==========================================================================
   Accent variants
   ========================================================================== */

/* 1) Underline bar — a short gradient rule beneath the title */
.oz-heading--accent-underline .oz-heading__title {
	padding-bottom: 14px;
}
.oz-heading--accent-underline .oz-heading__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--oz-hd-accent), var(--oz-hd-accent-2));
}
/* center / right alignment moves the underline with the text */
.oz-heading--accent-underline.oz-heading--align-center .oz-heading__title::after {
	left: 50%;
	transform: translateX(-50%);
}
.oz-heading--accent-underline.oz-heading--align-right .oz-heading__title::after {
	left: auto;
	right: 0;
}

/* 2) Side bar — a vertical gradient bar to the left of the text block */
.oz-heading--accent-sidebar .oz-heading__text {
	padding-left: 16px;
	border-left: 4px solid transparent;
	border-image: linear-gradient(180deg, var(--oz-hd-accent), var(--oz-hd-accent-2)) 1;
}

/* 3) Extending rule — a hairline that runs from the title across the row */
.oz-heading--accent-rule .oz-heading__main {
	align-items: center;
}
.oz-heading--accent-rule .oz-heading__text {
	position: relative;
}
.oz-heading--accent-rule .oz-heading__title {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	white-space: nowrap;
}
.oz-heading--accent-rule .oz-heading__title::after {
	content: "";
	flex: 1 1 auto;
	height: 2px;
	min-width: 40px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--oz-hd-accent), transparent);
}

/* ==========================================================================
   Link ("Voir tout")
   ========================================================================== */
.oz-heading__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--oz-hd-accent);
	white-space: nowrap;
	transition: gap .2s ease, color .2s ease;
}
.oz-heading__link-arrow {
	display: inline-flex;
	line-height: 0;
	transition: transform .2s ease;
}
.oz-heading__link:hover {
	gap: 11px;
}
.oz-heading__link:hover .oz-heading__link-arrow {
	transform: translateX(2px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 767px) {
	.oz-heading__title { font-size: 23px; }
	.oz-heading--accent-rule .oz-heading__title { white-space: normal; }
	.oz-heading--accent-rule .oz-heading__title::after { display: none; }
}

/* Quality floor — visible focus + reduced motion */
.oz-heading__link:focus-visible {
	outline: 2px solid var(--oz-hd-accent);
	outline-offset: 3px;
	border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
	.oz-heading__link,
	.oz-heading__link-arrow { transition: none; }
}
