/* Footer Alfa-X Transports - CSS externalisé */

.alfax-footer {
	background: var(--alfax-dark);
	color: #ffffff;
	padding: 60px 0 0;
	margin-top: 80px;
	position: relative;
}

.alfax-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--alfax-primary) 0%, var(--alfax-secondary) 50%, var(--alfax-success) 100%);
}

.alfax-footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.alfax-footer-main {
	padding-bottom: 40px;
}

.alfax-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
}

.alfax-footer-column h3 {
	color: #ffffff;
	font-size: 1.3em;
	margin-bottom: 20px;
	font-weight: 600;
	position: relative;
}

.alfax-footer-column h3::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 50px;
	height: 3px;
	background: var(--alfax-secondary);
	border-radius: 2px;
}

.alfax-footer-column p {
	line-height: 1.7;
	color: #e5e7eb;
	margin-bottom: 20px;
	font-size: 1em;
}

.alfax-footer-column ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.alfax-footer-column ul li {
	margin-bottom: 12px;
}

.alfax-footer-column ul li a {
	color: #d1d5db;
	text-decoration: none;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	z-index: 10;
	pointer-events: auto;
	cursor: pointer;
	padding: 8px 0;
	font-weight: 500;
}

.alfax-footer-column ul li a:hover {
	color: var(--alfax-secondary);
	transform: translateX(8px);
}

.alfax-footer-column ul li a:focus {
	outline: 2px solid var(--alfax-secondary);
	outline-offset: 2px;
	color: var(--alfax-secondary);
}

.alfax-footer-social {
	display: flex;
	gap: 20px;
	margin-top: 25px;
}

.alfax-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: #ffffff;
	transition: all 0.3s ease;
	font-size: 1.3em;
	text-decoration: none;
	position: relative;
	z-index: 10;
	pointer-events: auto;
	cursor: pointer;
	border: 2px solid transparent;
}

.alfax-footer-social a:hover {
	background: var(--alfax-secondary);
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
	color: #ffffff;
	border-color: var(--alfax-secondary);
}

.alfax-footer-social a:focus {
	outline: 2px solid var(--alfax-secondary);
	outline-offset: 2px;
}

.alfax-footer-bottom {
	border-top: 2px solid rgba(255, 255, 255, 0.15);
	padding: 35px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 25px;
	background: rgba(0, 0, 0, 0.2);
}

.alfax-footer-copyright p {
	margin: 0;
	color: #e5e7eb;
	font-size: 1em;
	font-weight: 500;
}

.alfax-footer-payment {
	display: flex;
	align-items: center;
	gap: 20px;
	color: #e5e7eb;
	font-size: 1em;
	font-weight: 500;
}

.alfax-payment-icons {
	display: flex;
	gap: 15px;
}

.alfax-payment-icons i {
	font-size: 1.8em;
	color: #d1d5db;
	transition: all 0.3s ease;
	padding: 5px;
	border-radius: 6px;
}

.alfax-payment-icons i:hover {
	color: var(--alfax-success);
	transform: translateY(-2px);
	background: rgba(34, 197, 94, 0.1);
}

/* Responsive Design - Optimisé pour mobile */
@media (max-width: 768px) {
	.alfax-footer {
		padding: 30px 0 0;
		margin-top: 40px;
		width: 100vw;
		margin-left: calc(-50vw + 50%);
		box-sizing: border-box;
	}

	.alfax-footer-main {
		padding-bottom: 25px;
	}

	.alfax-footer-grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.alfax-footer-column {
		text-align: center;
	}

	.alfax-footer-column h3 {
		font-size: 1.1em;
		margin-bottom: 15px;
	}

	.alfax-footer-column h3::after {
		left: 50%;
		transform: translateX(-50%);
		width: 30px;
	}

	.alfax-footer-column p {
		font-size: 0.9em;
		margin-bottom: 15px;
	}

	.alfax-footer-column ul li {
		margin-bottom: 8px;
	}

	.alfax-footer-column ul li a {
		justify-content: center;
		font-size: 0.9em;
		padding: 3px 0;
	}

	.alfax-footer-social {
		justify-content: center;
		margin-top: 15px;
		gap: 12px;
	}

	.alfax-footer-social a {
		width: 35px;
		height: 35px;
		font-size: 1.1em;
	}

	.alfax-footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: 12px;
		padding: 20px 0;
	}

	.alfax-footer-copyright p {
		font-size: 0.8em;
	}

	.alfax-footer-payment {
		flex-direction: column;
		gap: 8px;
		font-size: 0.8em;
	}

	.alfax-payment-icons {
		justify-content: center;
		gap: 8px;
	}

	.alfax-payment-icons i {
		font-size: 1.3em;
	}
}

@media (max-width: 480px) {
	.alfax-footer {
		padding: 25px 0 0;
		margin-top: 30px;
	}

	.alfax-footer-container {
		padding: 0 15px;
	}

	.alfax-footer-main {
		padding-bottom: 20px;
	}

	.alfax-footer-grid {
		gap: 20px;
	}

	.alfax-footer-column h3 {
		font-size: 1em;
		margin-bottom: 12px;
	}

	.alfax-footer-column p {
		font-size: 0.85em;
		line-height: 1.5;
	}

	.alfax-footer-column ul li a {
		font-size: 0.85em;
	}

	.alfax-footer-social {
		gap: 10px;
		margin-top: 12px;
	}

	.alfax-footer-social a {
		width: 32px;
		height: 32px;
		font-size: 1em;
	}

	.alfax-footer-bottom {
		padding: 15px 0;
		gap: 10px;
	}

	.alfax-footer-copyright p {
		font-size: 0.75em;
	}

	.alfax-footer-payment {
		font-size: 0.75em;
		gap: 6px;
	}

	.alfax-payment-icons i {
		font-size: 1.2em;
	}
}

/* Amélioration de l'espacement vertical global */
@media (max-width: 768px) {
	.alfax-footer-grid {
		margin-bottom: 0;
	}

	/* Réduction de l'espace entre les sections */
	.alfax-footer-column:not(:last-child) {
		margin-bottom: 0;
	}

	/* Styles pour les sections pliables sur mobile */
	.alfax-footer-collapsible .alfax-footer-toggle {
		cursor: pointer;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 15px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		transition: all 0.3s ease;
		user-select: none;
	}

	.alfax-footer-toggle:hover {
		color: #ff6b35;
	}

	.alfax-toggle-icon {
		font-size: 1.2em;
		font-weight: bold;
		transition: transform 0.3s ease;
	}

	.alfax-footer-toggle.active .alfax-toggle-icon {
		transform: rotate(45deg);
	}

	.alfax-footer-content {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		padding: 0;
	}

	.alfax-footer-content.active {
		max-height: 300px;
		padding: 10px 0 20px 0;
	}

	/* Masquer les titres h3 normaux sur mobile */
	.alfax-footer-collapsible h3:not(.alfax-footer-toggle) {
		display: none;
	}
}

/* Afficher les sections normalement sur desktop */
@media (min-width: 769px) {
	.alfax-footer-collapsible .alfax-footer-toggle {
		display: none;
	}

	.alfax-footer-collapsible .alfax-footer-content {
		max-height: none;
		overflow: visible;
		padding: 0;
	}

	/* Ajouter les titres h3 normaux pour desktop */
	.alfax-footer-collapsible::before {
		content: attr(data-title);
		display: block;
		font-size: 1.2em;
		font-weight: 600;
		color: #ffffff;
		margin-bottom: 20px;
		line-height: 1.4;
	}

	.alfax-footer-collapsible[data-title="Nos Services"]::before {
		content: "Nos Services";
	}

	.alfax-footer-collapsible[data-title="Support"]::before {
		content: "Support";
	}

	.alfax-footer-collapsible[data-title="Informations légales"]::before {
		content: "Informations légales";
	}
}