/* STA 2026 – styles communs du design.
 * La mise en page vient surtout des styles en ligne de la maquette ; ce fichier
 * ajoute les polices, neutralise les styles globaux de Divi hors contenu Divi,
 * et gère les états (filtres, survol, menu mobile, WooCommerce). */

/* ---------- Polices (auto-hébergées, SIL Open Font License) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url(../fonts/inter-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url(../fonts/inter-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
	src: url(../fonts/barlow-condensed-600-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
	src: url(../fonts/barlow-condensed-700-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
	src: url(../fonts/barlow-condensed-700-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
	src: url(../fonts/barlow-condensed-800-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
	src: url(../fonts/barlow-condensed-800-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bowlby One'; font-style: normal; font-weight: 400; font-display: swap;
	src: url(../fonts/bowlby-one-latin.woff2) format('woff2'); }

/* ---------- Base (remplace les styles globaux de Divi) ---------- */
body.sta {
	margin: 0;
	background: #0b0b0c;
	font-family: Inter, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	color: #141414;
	-webkit-font-smoothing: antialiased;
}
.sta-root { overflow-x: clip; }
/* Le « customizer » Divi du site impose : titres en Montserrat, h3 { display: inline-flex }
   et a { font-weight: 300; font-size: 16px; line-height: 20px; color: #ED1D26 }.
   On rétablit le comportement attendu par la maquette (les styles en ligne restent prioritaires). */
.sta-root :is(h1, h2, h3, h4, h5, h6):not(.sta-divi *, .sta-prose *, .sta-woo__content *) {
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-weight: 700;
	line-height: normal;
	letter-spacing: normal;
	display: block;
	width: auto;
}
.sta-root p:not(.sta-divi *, .sta-prose *, .sta-woo__content *) { padding: 0; }
.sta-root a:not(.sta-divi *, .sta-woo__content *) { color: #c8101a; }
/* Spécificité (0,1,1) : bat le « a » de Divi (0,0,1) sans écraser .sta-nav a, a.sta-btn… déclarés plus bas. */
.sta-root a:where(:not(.sta-divi *, .sta-woo__content *)) {
	font-weight: inherit;
	font-size: inherit;
	line-height: inherit;
}
.sta-root :is(input, textarea, select, button):not(.sta-divi *) { font-family: Inter, system-ui, sans-serif; }
.sta-prose a, .sta-woo__content a { font-weight: inherit; font-size: inherit; line-height: inherit; }
.sta-woo__content { font-family: Inter, system-ui, sans-serif; }
.sta-root a:not(.sta-divi *, .sta-woo__content *):hover { color: #8f0a12; }
.sta-root a[style*="color"]:hover { opacity: .92; }
.sta-root :focus-visible { outline: 3px solid #ff4049; outline-offset: 2px; }

.sta-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sta-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; color: #141414; padding: 10px 16px; border-radius: 8px; }
.sta-skip:focus { left: 8px; }

/* ---------- Bandeau Ekiden (accueil) ---------- */
.ekiden-tab { transition: padding-right .25s ease; animation: ekiden-in .7s cubic-bezier(.2,.8,.2,1) .4s both; }
.ekiden-tab:hover { color: #231F20 !important; padding-right: 44px !important; }
@keyframes ekiden-in { from { transform: translateX(110%); } to { transform: none; } }
/* Colonnes empilées (≤ 1060 px) : 40 px d'écart entre colonnes au-dessus + 40 px en dessous = bouton centré. */
@media (max-width: 1060px) { .sta-ekiden-wrap { padding: 0 0 40px !important; } }

/* ---------- Bandeau des valeurs (accueil) ----------
   Ordinateur : liste centrée de la maquette (la copie et le « / » final sont masqués).
   Mobile : une seule ligne qui défile en boucle (2 copies identiques, translation de -50 %). */
.sta-values__set { display: contents; }
.sta-values__set[aria-hidden="true"], .sta-values__sep { display: none; }
@media (max-width: 900px) {
	.sta-values-band { padding-left: 0 !important; padding-right: 0 !important; }
	.sta-values {
		flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 0 !important;
		width: max-content; max-width: none !important; margin: 0 !important;
		animation: sta-values-scroll 28s linear infinite;
	}
	.sta-values__set, .sta-values__set[aria-hidden="true"] { display: flex; flex: 0 0 auto; gap: 0 22px; padding-right: 22px; white-space: nowrap; }
	.sta-values__sep { display: inline; }
	.sta-values-band:hover .sta-values { animation-play-state: paused; }
}
@keyframes sta-values-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
	.sta-values { animation: none; }
	.sta-values-band { overflow-x: auto !important; }
}

/* ---------- Cartes ---------- */
.sta-card { transition: transform .2s ease, box-shadow .2s ease; }
.sta-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }

/* ---------- Filtres (résultats, boutique) ---------- */
.sta-chip {
	font-family: Inter, sans-serif; font-size: 15px; font-weight: 600;
	padding: 12px 22px; min-height: 44px; border-radius: 999px; cursor: pointer;
	border: 1px solid #d4d4d0; background: #fff; color: #141414;
}
.sta-chip[aria-selected="true"] { border-color: #141414; background: #141414; color: #fff; }
.sta-chip:not([aria-selected="true"]):hover { border-color: #141414; }
.sta-chip__count { opacity: .6; font-weight: 500; }
.sta-filter__item.is-hidden, .sta-filter__more.is-hidden { display: none !important; }

/* ---------- Boutons boutique ---------- */
.sta-btn, a.sta-btn {
	display: flex; align-items: center; justify-content: center; text-align: center;
	font-family: Inter, sans-serif; font-size: 15px; font-weight: 700;
	padding: 13px 18px; min-height: 44px; box-sizing: border-box; border-radius: 999px;
	text-decoration: none; cursor: pointer; border: 2px solid #d3121b;
}
.sta-root a.sta-btn--red, .sta-btn--red { background: #d3121b; color: #fff; }
.sta-root a.sta-btn--red:hover { background: #b10e16; border-color: #b10e16; color: #fff; }
.sta-btn--disabled { background: #f4f4f2; color: #5a5a5e; border-color: #d4d4d0; cursor: not-allowed; }

.sta-qty__btn { width: 48px; height: 52px; border: 0; background: transparent; font-size: 22px; font-weight: 700; cursor: pointer; color: #141414; }
.sta-qty__input {
	width: 44px; border: 0; background: transparent; text-align: center;
	font: 700 17px Inter, sans-serif; font-variant-numeric: tabular-nums; color: #141414; -moz-appearance: textfield;
}
.sta-qty__input::-webkit-outer-spin-button, .sta-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sta-buy__submit {
	flex: 1 1 220px; font-family: Inter, sans-serif; font-size: 17px; font-weight: 700;
	min-height: 56px; padding: 0 28px; border-radius: 999px; cursor: pointer; border: 0;
	background: #d3121b; color: #fff;
}
.sta-buy__submit:hover { background: #b10e16; }

/* Choix de la taille (boutons radio présentés comme dans la maquette) */
.sta-size { position: relative; display: inline-flex; cursor: pointer; }
.sta-size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sta-size span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 56px; min-height: 48px; padding: 0 14px; box-sizing: border-box; border-radius: 12px;
	font: 700 15px Inter, sans-serif; border: 2px solid #d4d4d0; background: #fff; color: #141414;
}
.sta-size:hover span { border-color: #141414; }
.sta-size input:checked + span { border-color: #141414; background: #141414; color: #fff; }
.sta-size input:focus-visible + span { outline: 3px solid #ff4049; outline-offset: 2px; }

/* Guide des tailles (tableau de la page « guide-des-tailles », style de la maquette) */
.sta-size-guide p { margin: 0 0 16px; color: #c9c9cc; font-size: 15px; line-height: 1.5; padding: 0; }
.sta-size-guide figure { margin: 0; overflow-x: auto; border: 1px solid #26262b; border-radius: 16px; }
.sta-size-guide table { width: 100%; border-collapse: collapse; font-size: 15px; color: #fff; margin: 0; border: 0; }
.sta-size-guide thead tr, .sta-size-guide tr:first-child th { background: #17171a; text-align: left; }
.sta-size-guide th, .sta-size-guide td { padding: 12px 20px; border: 0; border-top: 1px solid #26262b; text-align: left; }
.sta-size-guide thead th { padding: 14px 20px; border-top: 0; font-weight: 700; }
.sta-size-guide td:first-child { font-weight: 700; }
.sta-size-guide td:not(:first-child) { color: #9a9aa0; }
.sta-size-guide figcaption { padding: 12px 20px; color: #9a9aa0; font-size: 13px; text-align: left; }

/* Bloc « Licencié(e) au club ? » du panier (visuel seulement pour l’instant) */
.sta-licence input { font: 400 16px Inter, sans-serif; padding: 12px 14px; border: 1px solid #c9c9c5; border-radius: 12px; background: #fff; color: #141414; }
.sta-licence__apply { flex: 0 0 auto; font: 700 15px Inter, sans-serif; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: #141414; color: #fff; cursor: pointer; }
.sta-licence__apply:hover { background: #333; }

/* Formulaire WooCommerce natif (produits variables) */
.sta-wc-form table.variations { width: 100%; border: 0; margin-bottom: 16px; }
.sta-wc-form table.variations th, .sta-wc-form table.variations td { padding: 6px 0; border: 0; text-align: left; }
.sta-wc-form select { font: 400 16px Inter, sans-serif; padding: 12px 14px; border: 1px solid #c9c9c5; border-radius: 12px; background: #fff; min-width: 200px; }
.sta-wc-form .single_add_to_cart_button {
	font: 700 17px Inter, sans-serif !important; min-height: 56px; padding: 0 28px !important;
	border-radius: 999px !important; border: 0 !important; background: #d3121b !important; color: #fff !important;
}
.sta-wc-form .quantity input { min-height: 52px; width: 72px; border: 2px solid #d4d4d0; border-radius: 999px; text-align: center; font: 700 17px Inter, sans-serif; }

/* ---------- Messages ---------- */
/* Messages WooCommerce (« ajouté au panier », erreurs…) : carte blanche, icône ronde,
   texte sombre, bouton pilule noir. Les !important neutralisent les couleurs de Divi
   (texte blanc sur fond bleu) et le contour de focus que WooCommerce déclenche. */
.sta-notices { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sta-notices:empty, .sta-notices .woocommerce-notices-wrapper:empty { display: none; }
section .sta-notices { padding: 0; margin-bottom: 24px; }  /* déjà dans un conteneur (panier) */
.sta-notices .woocommerce-message, .sta-notices .woocommerce-info, .sta-notices .woocommerce-error li,
.sta-notices .woocommerce-error:not(:has(li)) {
	display: flex !important; align-items: center; flex-wrap: wrap; gap: 12px 16px;
	margin: 20px 0 0 !important; padding: 14px 16px 14px 18px !important;
	background: #fff !important; color: #141414 !important;
	border: 1px solid #e3e3e0 !important; border-radius: 16px !important;
	box-shadow: 0 6px 20px rgba(11, 11, 12, .06) !important;
	font: 600 15px/1.4 Inter, system-ui, sans-serif !important; list-style: none !important;
	outline: none !important;
}
.sta-notices .woocommerce-error { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; list-style: none !important; }
.sta-notices .woocommerce-message::before, .sta-notices .woocommerce-info::before, .sta-notices .woocommerce-error li::before,
.sta-notices .woocommerce-error:not(:has(li))::before {
	content: "✓"; position: static !important; order: -1; flex: 0 0 auto;
	width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
	background: #1f8a4c; color: #fff !important; font: 800 15px/1 Inter, sans-serif !important;
}
.sta-notices .woocommerce-info::before { content: "i"; background: #141414; }
.sta-notices .woocommerce-error li::before, .sta-notices .woocommerce-error:not(:has(li))::before { content: "!"; background: #d3121b; }
.sta-notices .woocommerce-message:focus, .sta-notices .woocommerce-error:focus, .sta-notices .woocommerce-info:focus { outline: none !important; }
.sta-notices a.button, .sta-notices .button {
	order: 2; margin-left: auto !important; float: none !important;
	display: inline-flex !important; align-items: center; min-height: 40px; padding: 0 18px !important;
	border: 0 !important; border-radius: 999px !important; background: #141414 !important; color: #fff !important;
	font: 700 14px/1 Inter, sans-serif !important; text-decoration: none !important; text-transform: none !important;
}
.sta-notices a.button::after { content: none !important; }
.sta-notices a.button:hover { background: #d3121b !important; }
.sta-notices a:not(.button) { color: #c8101a !important; }

/* Messages du formulaire de contact */
.sta-alert { margin: 0; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid #e3e3e0; color: #141414; font-size: 15px; font-weight: 600; border-left: 4px solid #141414; }
.sta-alert--ok { border-left-color: #1f8a4c; }
.sta-alert--err { border-left-color: #d3121b; }
.sta-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pages génériques ---------- */
.sta-prose > * + * { margin-top: 1em; }
.sta-prose h2, .sta-prose h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; color: #141414; line-height: 1.05; padding: 0; }
.sta-prose h2 { font-size: 40px; margin-top: 1.4em; }
.sta-prose h3 { font-size: 28px; margin-top: 1.2em; }
.sta-prose p { padding: 0; }
.sta-prose ul, .sta-prose ol { padding-left: 1.4em; }
.sta-prose a { color: #c8101a; }
.sta-prose img { max-width: 100%; height: auto; }

/* ---------- Page « Faire un don » : formulaire HelloAsso dans une carte blanche ---------- */
.sta-don-page .ha-widget-iframe { display: block; width: 100% !important; background: #fff; border-radius: 20px; margin-top: 24px; box-shadow: 0 6px 20px rgba(11, 11, 12, .06); }
/* Hauteur fixe : le script de l'extension HelloAsso agrandit le cadre à chaque message du formulaire
   (jamais vers le bas) et entrait dans une boucle → page qui grandit sans fin. Le !important l'emporte
   sur la hauteur posée en ligne par ce script ; si besoin le formulaire défile dans son cadre. */
.sta-don-page .ha-widget-iframe { height: 900px !important; }
@media (max-width: 600px) { .sta-don-page .ha-widget-iframe { height: 1150px !important; } }

/* ---------- WooCommerce : panier, commande, compte ---------- */
.sta-woo__content { font-size: 16px; line-height: 1.5; color: #141414; }
.sta-woo__content > .wp-block-woocommerce-cart,
.sta-woo__content > .wp-block-woocommerce-checkout,
.sta-woo__content > .woocommerce { background: #fff; border-radius: 20px; padding: clamp(16px, 3vw, 32px); }
.sta-woo .wc-block-components-button:not(.is-link),
.sta-woo .woocommerce .button, .sta-woo .woocommerce button.button {
	background: #d3121b !important; color: #fff !important; border: 0 !important;
	border-radius: 999px !important; font-weight: 700 !important; font-family: Inter, sans-serif !important;
	min-height: 52px;
}
.sta-woo .wc-block-components-button:not(.is-link):hover { background: #b10e16 !important; }
.sta-woo .wc-block-components-title, .sta-woo .wc-block-cart__totals-title {
	font-family: 'Barlow Condensed', sans-serif !important; font-weight: 800 !important; text-transform: uppercase; font-size: 28px !important;
}
.sta-woo .wc-block-components-product-name { color: #141414; font-weight: 700; text-decoration: none; }
.sta-woo .wc-block-cart-items__row img, .sta-woo .wc-block-components-order-summary-item__image img { border-radius: 14px; }

/* ---------- Contenu Divi dans la coquille ---------- */
.sta-divi { background: #fff; }

/* ---------- En-tête mobile ---------- */
.sta-burger { display: none; }
@media (max-width: 1180px) {
	.sta-header__inner { flex-wrap: nowrap !important; }
	.sta-burger {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		order: 3; width: 44px; height: 44px; padding: 0 11px; box-sizing: border-box;
		background: transparent; border: 1px solid #333; border-radius: 999px; cursor: pointer;
	}
	.sta-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
	.sta-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.sta-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.sta-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.sta-header__actions { margin-left: auto; }
	.sta-nav {
		display: none !important; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch !important; gap: 0 !important;
		background: #0b0b0c; border-bottom: 1px solid #222; padding: 8px 24px 20px;
	}
	.sta-nav.is-open { display: flex !important; }
	.sta-nav a { padding: 14px 0 !important; border-bottom: 1px solid #1d1d20; font-size: 17px; }
}
@media (max-width: 520px) {
	.sta-header__actions a[href*="instagram.com"] { display: none !important; }
	.sta-header__inner { gap: 10px !important; padding: 12px 16px !important; }
	.sta-header__inner > a:first-child img { height: 32px !important; }
	.sta-header__actions { gap: 8px !important; }
	.sta-header__cta { padding: 10px 14px !important; font-size: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.ekiden-tab, .sta-card { animation: none; transition: none; }
}
