/* =========================================================
   Composants transversaux — La Raquette Ardoisière
   Document téléchargeable · Tags de catégorie · Pied de page
   ========================================================= */

/* ── Utilitaire accessibilité ──────────────────────────────── */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Logo (header) ─────────────────────────────────────────── */
/* GP flexbox mode génère class="header-image is-logo-image", pas "custom-logo" */
.header-image.is-logo-image,
.custom-logo {
	max-height: 72px;
	width: auto;
	height: auto;
}

/* ── Document téléchargeable ──────────────────────────────── */
.ra-documents {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ra-document {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.875rem 1rem;
	background: var(--ra-blanc);
	border: 1px solid var(--ra-border);
}

.ra-document__icon {
	color: var(--ra-rouge);
	font-size: 1.25rem;
	flex-shrink: 0;
}

.ra-document__title {
	flex: 1;
}

.ra-document__link {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--ra-noir);
	text-decoration: none;
}

.ra-document__link:hover,
.ra-document__link:focus {
	color: var(--ra-rouge);
}

.ra-document__actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.ra-document__action {
	color: var(--ra-rouge);
	font-size: 1.125rem;
	text-decoration: none;
	line-height: 1;
	transition: color 0.15s ease;
}

.ra-document__action:hover,
.ra-document__action:focus {
	color: var(--ra-rouge-hover);
}

/* ── Tags de catégorie — pill texte (actualités) ─────────── */
.ra-tag {
	display: inline-block;
	padding: 0.4em 0.65em 0.25em; /* asymétrique : descendre optiquement le texte uppercase (pas de descendeurs) */
	border-radius: 3px;
	font-size: 0.6875rem;    /* 11px */
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
	vertical-align: middle;
}

.ra-tag--competition  { background: var(--ra-rouge);       color: var(--ra-blanc); }
.ra-tag--evenement    { background: var(--ra-jaune);       color: var(--ra-noir);  }
.ra-tag--entrainement { background: var(--ra-ardoise);     color: var(--ra-blanc); }
.ra-tag--information  { background: var(--ra-gris-pierre); color: var(--ra-blanc); }

/* ── Tags de catégorie — pastille (calendrier, grille) ───── */
.ra-dot {
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	flex-shrink: 0;
	vertical-align: middle;
}

.ra-dot--competition  { background: var(--ra-rouge); }
.ra-dot--evenement    { background: var(--ra-jaune); }
.ra-dot--entrainement { background: var(--ra-ardoise); }
.ra-dot--information  { background: var(--ra-gris-pierre); }

/* Liseré gauche (cartes événements) */
.ra-card--competition  { border-left: 4px solid var(--ra-rouge); }
.ra-card--evenement    { border-left: 4px solid var(--ra-jaune); }
.ra-card--entrainement { border-left: 4px solid var(--ra-ardoise); }
.ra-card--information  { border-left: 4px solid var(--ra-gris-pierre); }

/* ── Pied de page ──────────────────────────────────────────── */
.site-footer {
	background-color: var(--ra-noir);
	color: var(--ra-blanc-75);
	padding: 1.125rem 0;
}

/* GP enveloppe le hook generate_footer dans .inside-footer avec son propre padding —
   on le remet à zéro pour contrôler l'espacement uniquement via .site-footer. */
.site-footer .inside-footer {
	padding: 0;
}

.site-footer a {
	color: var(--ra-blanc-75);
}

.ra-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.ra-footer-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.375rem 0.5rem;
	font-size: 0.8125rem;    /* 13px */
	padding-top: 2px;        /* compensation optique baseline texte vs icône */
}

.ra-footer-sep {
	user-select: none;
}

.ra-footer-link {
	text-decoration: none;
	transition: color 0.15s ease;
}

.ra-footer-link:hover,
.ra-footer-link:focus {
	color: var(--ra-blanc);
}

.ra-footer-social {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ra-footer-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--ra-blanc-75);
	font-size: 0.875rem;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.ra-footer-social-link:hover,
.ra-footer-social-link:focus {
	background: var(--ra-rouge);
	color: var(--ra-blanc);
}

.ra-footer-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ra-footer-credit img {
	height: 28px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.75;
	display: block;
}

.ra-footer-credit:hover img,
.ra-footer-credit:focus img {
	filter: none;
	opacity: 1;
}

@media (max-width: 600px) {
	.ra-footer-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.ra-footer-left {
		justify-content: center;
	}
}

/* =========================================================
   Bouton CTA — utilisé sur hero, 404, CF7 submit
   ========================================================= */

.ra-btn {
	display: inline-block;
	background-color: var(--ra-rouge) !important;
	color: var(--ra-blanc) !important;
	padding: 0.75rem 2rem;
	border-radius: 2px;
	font-family: var(--ra-font-titres) !important;
	font-size: 0.9375rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ra-btn:hover,
.ra-btn:focus {
	background-color: var(--ra-rouge-hover) !important;
	color: var(--ra-blanc);
}
