/* Miroir de footer.php — structure : bloc "à propos" (widgets) centré, icônes
   sociales, pilules de nav, puis barre de copyright séparée plus sombre. Couleurs du
   thème (var(--color-bg-dark) etc.), pas celles d'une quelconque référence visuelle. */

.afrotheme-footer {
	background: var(--color-bg-dark);
	color: var(--color-bg);
	margin-block-start: var(--space-xl);
}

.afrotheme-footer__main {
	max-width: var(--content-width);
	margin-inline: auto;
	padding: var(--space-xl) var(--gutter-mobile) var(--space-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
	text-align: center;
}

@media (min-width: 782px) {
	.afrotheme-footer__main {
		padding-inline: var(--gutter-desktop);
	}
}

/* --- Bloc "à propos" (widgets, voir inc/setup.php::afrotheme_widgets_init) --- */
.afrotheme-footer-about__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--text-2xl);
	color: var(--color-bg);
}

.afrotheme-footer-about__text,
.afrotheme-footer-about__widget {
	margin: 0;
	max-width: 55ch;
	color: var(--color-bg);
	opacity: 0.85;
	font-size: var(--text-sm);
	line-height: 1.7;
}

/* --- Icônes réseaux sociaux : cercles bordés, cohérents avec le reste du thème --- */
.afrotheme-footer-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-sm);
}

.afrotheme-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: var(--border-width) solid rgba(251, 246, 239, 0.35);
	color: var(--color-bg);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.afrotheme-footer-social a svg {
	width: 16px;
	height: 16px;
}

.afrotheme-footer-social a:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
}

/* --- Pilules de navigation (menu "footer", Apparence → Menus) --- */
.afrotheme-footer-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-sm);
}

.afrotheme-footer-nav__list a {
	display: inline-flex;
	align-items: center;
	padding: 0.5em 1.25em;
	border: var(--border-width) solid rgba(251, 246, 239, 0.35);
	border-radius: 999px;
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-bg);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.afrotheme-footer-nav__list a:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
}

/* --- Barre de copyright : légèrement plus sombre, pleine largeur --- */
.afrotheme-footer__bottom {
	background: rgba(0, 0, 0, 0.18);
	padding: var(--space-sm) var(--gutter-mobile);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--space-sm);
	text-align: center;
}

.afrotheme-footer__copyright,
.afrotheme-footer__contact {
	margin: 0;
	font-size: var(--text-xs);
	color: var(--color-bg);
	opacity: 0.75;
}
