/* Ultimate Sport · thème (en-tête, menu mobile, pied de page). Le contenu est stylé par l'extension. */

:root {
	--ust-bg: #18191B;
	--ust-bg-2: #111213;
	--ust-cream: #F0E4D0;
	--ust-orange: #FF5A1F;
	--ust-display: "US Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
	--ust-text: "US Text", "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
	--ust-gutter: max(1.25rem, calc((100% - 74rem) / 2));
	--ust-top: var(--wp-admin--admin-bar--height, 0px);
	--ust-header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ust-header-h) + var(--ust-top)); }
body { margin: 0; background: var(--ust-bg); color: #26231F; font-family: var(--ust-text); overflow-x: clip; }
img, video { max-width: 100%; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ust-skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ust-orange); color: var(--ust-bg); padding: .75rem 1rem; font-weight: 600; }
.ust-skip:focus { top: 1rem; }

/* ---------- En-tête ---------- */
.ust-header {
	position: fixed;
	top: var(--ust-top);
	left: 0;
	right: 0;
	z-index: 100;
	padding-top: env(safe-area-inset-top, 0px);
	color: var(--ust-cream);
	transition: background-color 200ms, box-shadow 200ms;
}
.ust-header.is-solid, .ust-solid .ust-header, .ust-header.is-open { background: rgba(24, 25, 27, 0.97); box-shadow: 0 1px 0 rgba(240, 228, 208, 0.08); }
.ust-solid main { padding-top: calc(var(--ust-header-h) + 2rem); }
.ust-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--ust-header-h); padding: 0 var(--ust-gutter); }

.ust-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ust-cream); text-decoration: none; flex: none; }
.ust-logo { width: 34px; height: auto; display: block; }
.ust-brand__name { font-family: var(--ust-display); font-weight: 800; font-size: 1.55rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }

.ust-nav { margin-left: auto; }
.ust-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.ust-menu a {
	color: var(--ust-cream);
	text-decoration: none;
	font-family: var(--ust-display);
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: .02em;
	padding: .35rem 0;
	border-bottom: 2px solid transparent;
	transition: border-color 150ms, color 150ms;
}
.ust-menu a:hover, .ust-menu .current-menu-item > a, .ust-menu .current_page_item > a { border-color: var(--ust-orange); }
.ust-nav__extra { display: none; }

.ust-cta {
	display: inline-block;
	flex: none;
	background: var(--ust-orange);
	color: var(--ust-bg);
	font-family: var(--ust-display);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.1;
	padding: .75rem 1.2rem;
	border-radius: 2px;
	text-decoration: none;
	transition: background-color 150ms, transform 150ms;
}
.ust-cta:hover { background: var(--ust-cream); transform: translateY(-2px); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ust-orange); outline-offset: 3px; }

.ust-burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ust-cream); cursor: pointer; position: relative; }
.ust-burger__bars, .ust-burger__bars::before, .ust-burger__bars::after {
	position: absolute; left: 12px; width: 24px; height: 2px; background: currentColor; content: ""; transition: transform 200ms, opacity 200ms;
}
.ust-burger__bars { top: 23px; }
.ust-burger__bars::before { left: 0; top: -8px; }
.ust-burger__bars::after { left: 0; top: 8px; }
.ust-header.is-open .ust-burger__bars { background: transparent; }
.ust-header.is-open .ust-burger__bars::before { transform: translateY(8px) rotate(45deg); }
.ust-header.is-open .ust-burger__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1180px) {
	:root { --ust-header-h: 4.25rem; }
	.ust-burger { display: block; }
	.ust-cta--desktop { display: none; }
	.ust-brand__name { font-size: 1.35rem; }
	.ust-nav {
		position: fixed;
		inset: calc(var(--ust-header-h) + var(--ust-top) + env(safe-area-inset-top, 0px)) 0 0 0;
		background: var(--ust-bg);
		padding: 2rem var(--ust-gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 200ms, transform 200ms, visibility 0s 200ms;
	}
	.ust-header.is-open .ust-nav { visibility: visible; opacity: 1; transform: none; transition: opacity 200ms, transform 200ms; }
	.ust-menu { flex-direction: column; gap: .25rem; }
	.ust-menu a { display: block; font-size: 2.4rem; font-weight: 800; text-transform: uppercase; padding: .3rem 0; border: 0; }
	.ust-menu .current-menu-item > a, .ust-menu .current_page_item > a { color: var(--ust-orange); }
	.ust-nav__extra { display: block; margin-top: 2rem; }
	.ust-nav__extra .ust-cta { display: block; text-align: center; font-size: 1.35rem; padding: 1rem; }
	.ust-nav__infos { color: rgba(240, 228, 208, .75); margin: 1rem 0 0; line-height: 1.6; }
	.ust-nav__infos a { color: var(--ust-cream); }
	body.ust-menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.ust-header, .ust-nav, .ust-cta, .ust-burger__bars, .ust-burger__bars::before, .ust-burger__bars::after { transition: none !important; }
}

/* ---------- Pied de page ---------- */
.ust-footer { background: var(--ust-bg-2); color: rgba(240, 228, 208, .75); font-size: 1rem; line-height: 1.6; padding: 4rem var(--ust-gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.ust-footer a { color: var(--ust-cream); text-decoration-color: var(--ust-orange); text-underline-offset: .2em; }
.ust-footer a:hover { color: var(--ust-orange); }
.ust-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.ust-footer__brand .ust-brand { margin-bottom: .75rem; }
.ust-footer__title { font-family: var(--ust-display); font-weight: 700; font-size: 1.2rem; color: var(--ust-orange); margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .03em; }
.ust-footer p { margin: 0; }
.ust-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(240, 228, 208, .12); font-size: .9rem; }
.ust-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (max-width: 780px) { .ust-footer__grid { grid-template-columns: 1fr 1fr; } .ust-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .ust-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Pages hors modèle (pages ajoutées à la main, 404) ---------- */
.ust-page { background: #F4EEE6; padding: 0 var(--ust-gutter) 5rem; min-height: 60vh; }
.ust-prose { max-width: 48rem; font-size: 1.1rem; line-height: 1.65; }
.ust-prose h1 { font-family: var(--ust-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: .95; text-transform: uppercase; margin: 0 0 1.5rem; }
.ust-prose h2 { font-family: var(--ust-display); font-weight: 700; font-size: 2rem; }
.ust-404 .ust-cta { margin-top: 1rem; }
