/*
 * Gabarit CSS : Footer
 * Directive 3 : Typographie lisible, couleurs contrastées et 
 * respiration très large (Whitespace).
 */

.saasbuilder-footer {
	background-color: transparent;
	border-top: 1px solid var(--color-border);
	padding: var(--spacing-xxl) 0 var(--spacing-xl) 0;
	margin-top: auto;
}

.saasbuilder-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-xl);
	margin-bottom: var(--spacing-xxl);
}

@media (min-width: 768px) {
	.saasbuilder-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.saasbuilder-footer-grid {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 32px;
	}
}

.saasbuilder-footer-brand .saasbuilder-logo {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--color-text);
	display: inline-block;
	margin-bottom: var(--spacing-xs);
	letter-spacing: -0.02em;
}

.saasbuilder-footer-desc {
	color: var(--color-text-muted);
	font-size: 14px;
	line-height: 1.6;
	max-width: 280px;
	margin: 0;
}

.saasbuilder-footer-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text);
	margin: 0 0 24px 0;
}

.saasbuilder-footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.saasbuilder-interactive-link {
	color: var(--color-text-muted);
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	font-size: 14px;
}

.saasbuilder-interactive-link:hover {
	color: var(--color-primary);
}

/* Newsletter Input */
.saasbuilder-newsletter-form {
	position: relative;
	display: flex;
	align-items: center;
}

.saasbuilder-newsletter-input {
	width: 100%;
	background: var(--color-bg-secondary);
	border: 1px solid transparent;
	border-radius: 30px;
	padding: 14px 20px;
	padding-right: 60px;
	font-size: 14px;
	color: var(--color-text);
	transition: all 0.2s;
	outline: none;
}

.saasbuilder-newsletter-input:focus {
	border-color: var(--color-border);
	background: var(--color-bg);
}

.saasbuilder-newsletter-btn {
	position: absolute;
	right: 4px;
	top: 4px;
	bottom: 4px;
	width: 40px;
	border-radius: 50%;
	background: var(--color-secondary, #10B981);
	color: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
}

.saasbuilder-newsletter-btn:hover {
	transform: scale(0.95);
	filter: brightness(0.85);
}

.saasbuilder-dark-mode .saasbuilder-newsletter-btn {
	background: var(--color-secondary, #10B981);
	color: #fff;
}

.saasbuilder-dark-mode .saasbuilder-newsletter-btn:hover {
	filter: brightness(1.15);
}

/* Footer Bottom */
.saasbuilder-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: var(--spacing-lg);
	border-top: 1px solid var(--color-border);
	flex-wrap: wrap;
	gap: 16px;
}

.saasbuilder-copyright {
	color: var(--color-text-muted);
	font-size: 13px;
	margin: 0;
	display: flex;
	align-items: center;
}

.saasbuilder-footer-bottom-right {
	display: flex;
	align-items: center;
}

.saasbuilder-footer-social-icons {
	display: flex;
	gap: 16px;
	align-items: center;
}

.saasbuilder-footer-social-icons a {
	color: var(--color-text-muted);
	transition: color 0.2s;
	display: flex;
}

.saasbuilder-footer-social-icons a:hover {
	color: var(--color-text);
}

/* ============================================================
   Footer Contact Buttons & Address Card (Conforme au Drawer)
   ============================================================ */
.saasbuilder-footer-contact-btns-wrap .saasbuilder-drawer-contact {
	display: flex;
	gap: 10px;
	align-items: center;
}

.saasbuilder-footer-contact-btns-wrap .saasbuilder-drawer-contact-btn {
	width: 42px !important;
	height: 42px !important;
	border-radius: 50% !important;
	background: color-mix(in srgb, var(--color-text, #ffffff) 8%, transparent) !important;
	border: 1px solid color-mix(in srgb, var(--color-text, #ffffff) 14%, transparent) !important;
	color: var(--color-text, #f8fafc) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.saasbuilder-footer-contact-btns-wrap .saasbuilder-drawer-contact-btn:hover {
	background: var(--color-primary, #3B82F6) !important;
	border-color: var(--color-primary, #3B82F6) !important;
	color: #ffffff !important;
	transform: translateY(-2px) scale(1.05) !important;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary, #3B82F6) 30%, transparent) !important;
}

/* Bouton Localisation tout à droite du titre Adresse */
.saasbuilder-footer-location-btn-head {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 5px 12px !important;
	border-radius: 999px !important;
	background: color-mix(in srgb, var(--color-primary, #3B82F6) 12%, transparent) !important;
	border: 1px solid color-mix(in srgb, var(--color-primary, #3B82F6) 25%, transparent) !important;
	color: var(--color-primary, #3B82F6) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	text-decoration: none !important;
}

.saasbuilder-footer-location-btn-head:hover {
	background: var(--color-primary, #3B82F6) !important;
	border-color: var(--color-primary, #3B82F6) !important;
	color: #ffffff !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary, #3B82F6) 30%, transparent) !important;
}

.saasbuilder-footer-location-btn-head svg {
	transition: transform 0.2s ease;
}

.saasbuilder-footer-location-btn-head:hover svg {
	transform: translate(2px, -2px);
}

/* Texte format adresse */
.saasbuilder-footer-address-text-wrap {
	padding: 10px 14px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--color-text, #ffffff) 4%, transparent);
	border: 1px solid color-mix(in srgb, var(--color-text, #ffffff) 8%, transparent);
}

.saasbuilder-footer-address-text-val {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--color-text-muted, #cbd5e1);
	font-weight: 400;
}
