/**
 * Footer moderne — 3 cartes (proposition C)
 */
.first-footer.first-footer--modern {
	position: relative;
	overflow: hidden;
	margin-top: 5px !important;
}

.first-footer--modern .top-footer {
	background-color: #121820;
	background-image:
		radial-gradient(circle at 12% 8%, rgba(24, 186, 96, 0.07) 0%, transparent 42%),
		radial-gradient(circle at 88% 18%, rgba(24, 186, 96, 0.05) 0%, transparent 38%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 24%);
	padding: 5px !important;
	color: #fff;
}

.first-footer--modern .top-footer > .container {
	padding-left: 5px !important;
	padding-right: 5px !important;
	max-width: 100%;
}

.first-footer--modern .footer-cards-row {
	margin: 0;
	--bs-gutter-x: 5px;
	--bs-gutter-y: 5px;
}

.first-footer--modern .footer-cards-row > [class*="col-"] {
	padding-left: 5px;
	padding-right: 5px;
	margin-bottom: 5px;
}

.first-footer--modern .footer-card {
	background: rgba(26, 32, 40, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	padding: clamp(1rem, 1.6vw, 1.35rem);
	height: 100%;
	box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}

.first-footer--modern .footer-card__title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.85rem;
	font-size: 1.02rem;
	font-weight: 600;
	color: #fff;
}

.first-footer--modern .footer-card__title i {
	color: #18ba60;
	font-size: 0.95rem;
}

.first-footer--modern .footer-card__lead {
	margin: 0.65rem 0 1rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
}

.first-footer--modern .logo img {
	max-width: 150px;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.first-footer--modern .footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 0.85rem;
}

.first-footer--modern .footer-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 0.55rem;
	font-size: 0.84rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
}

.first-footer--modern .footer-contact-list li:last-child {
	margin-bottom: 0;
}

.first-footer--modern .footer-card--brand .footer-socials {
	margin-top: 0.85rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.first-footer--modern .footer-card--brand .footer-socials a {
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.06);
	color: #18ba60;
}

.first-footer--modern .footer-card--brand .footer-socials a:hover {
	background: #18ba60;
	color: #fff;
}

.first-footer--modern .footer-contact-list i {
	color: #18ba60;
	margin-top: 0.15rem;
	flex-shrink: 0;
	width: 1rem;
	text-align: center;
}

.first-footer--modern .footer-quick-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem 1rem;
}

.first-footer--modern .footer-quick-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.first-footer--modern .footer-quick-links a {
	display: block;
	padding: 0.22rem 0;
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	font-size: 0.86rem;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.first-footer--modern .footer-quick-links a:hover {
	color: #18ba60;
}

.first-footer--modern .widget.quick-link ul li a:before,
.first-footer--modern .widget ul li a:before {
	content: none !important;
	padding: 0 !important;
}

.first-footer--modern .newsletters p {
	margin: 0 0 0.85rem;
	font-size: 0.86rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
}

.first-footer--modern .bloq-email .email {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.first-footer--modern .bloq-email .email input[type="email"] {
	width: 100%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #fff;
	padding: 0.65rem 0.85rem;
	font-size: 0.88rem;
	margin: 0;
}

.first-footer--modern .bloq-email .email input[type="email"]:focus {
	outline: none;
	border-color: #18ba60;
	box-shadow: 0 0 0 2px rgba(24, 186, 96, 0.2);
}

.first-footer--modern .bloq-email .email input[type="submit"] {
	width: 100%;
	background: #18ba60;
	border: none;
	border-radius: 8px;
	color: #fff;
	font-weight: 600;
	font-size: 0.88rem;
	padding: 0.7rem 1rem;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	margin: 0;
}

.first-footer--modern .bloq-email .email input[type="submit"]:hover {
	background: #15a555;
}

.first-footer--modern .footer-privacy-note {
	margin: 0.75rem 0 0;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.first-footer--modern .footer-privacy-note i {
	color: #18ba60;
}

.first-footer--modern .second-footer {
	background: #0d1117 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 0.85rem 0 !important;
}

.first-footer--modern .footer-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.first-footer--modern .footer-bar__brand img {
	max-height: 28px;
	width: auto;
	opacity: 0.95;
}

.first-footer--modern .footer-bar__copy {
	margin: 0;
	flex: 1 1 auto;
	text-align: right;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.4;
}

.first-footer--modern .footer-socials {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.first-footer--modern .footer-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.first-footer--modern .footer-socials a:hover {
	background: #18ba60;
	color: #fff;
}

.first-footer--modern h3::after,
.first-footer--modern .widget h3::after,
.first-footer--modern .newsletters h3::after,
.first-footer--modern .netabout h3::after {
	display: none !important;
}

.first-footer--modern .footer-card__toggle-icon {
	display: none;
	margin-left: auto;
	font-size: 0.85rem;
	transition: transform 0.3s ease;
	color: rgba(255, 255, 255, 0.6);
}

.first-footer--modern .footer-card__title-text {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

@media (max-width: 991.98px) {
	.footer-card,
	.first-footer--modern .footer-card {
		padding: 10px 14px !important;
		border-radius: 12px;
	}

	.footer-card__title,
	.first-footer--modern .footer-card__title {
		margin: 0 0 4px !important;
		font-size: 0.95rem;
	}

	.first-footer--modern .footer-bar__inner {
		flex-direction: column;
		text-align: center;
	}

	.first-footer--modern .footer-bar__copy {
		text-align: center;
	}

	.first-footer--modern .footer-card--brand .footer-socials {
		justify-content: flex-start;
		gap: 6px;
		margin-top: 6px;
		padding-top: 6px;
	}

	/* Interligne de 2px et compacité extrême des liens */
	.footer-quick-links ul li,
	.first-footer--modern .footer-quick-links ul li {
		margin-bottom: 2px !important;
		padding: 0 !important;
	}

	.footer-quick-links a,
	.first-footer--modern .footer-quick-links a {
		padding: 1px 0 !important;
		font-size: 0.81rem !important;
		line-height: 1.15 !important;
	}

	.footer-contact-list li,
	.first-footer--modern .footer-contact-list li {
		margin-bottom: 2px !important;
		padding: 1px 0 !important;
		font-size: 0.81rem !important;
		line-height: 1.18 !important;
	}

	.footer-card__lead,
	.first-footer--modern .footer-card__lead {
		margin: 3px 0 5px !important;
		font-size: 0.82rem !important;
		line-height: 1.25 !important;
	}

	.footer-quick-links,
	.first-footer--modern .footer-quick-links {
		gap: 2px 10px !important;
	}

	.newsletters p,
	.first-footer--modern .newsletters p {
		margin: 0 0 6px !important;
		font-size: 0.82rem !important;
		line-height: 1.3 !important;
	}

	.bloq-email .email,
	.first-footer--modern .bloq-email .email {
		gap: 6px !important;
	}

	.bloq-email .email input[type="email"],
	.bloq-email .email input[type="submit"] {
		padding: 6px 10px !important;
		font-size: 0.84rem !important;
	}

	/* Titres avec bouton ON / OFF (split accordion) sur les 3 cartes */
	.footer-card__title--toggle,
	.first-footer--modern .footer-card__title--toggle {
		cursor: pointer;
		user-select: none;
		margin-bottom: 0 !important;
		justify-content: space-between;
		padding-bottom: 0.2rem;
		transition: margin-bottom 0.2s ease;
	}

	.footer-card__title--toggle.is-open,
	.first-footer--modern .footer-card__title--toggle.is-open {
		margin-bottom: 0.65rem !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		padding-bottom: 0.4rem;
	}

	.footer-card__toggle-icon,
	.first-footer--modern .footer-card__toggle-icon {
		display: inline-block !important;
	}

	.footer-card__title--toggle.is-open .footer-card__toggle-icon,
	.first-footer--modern .footer-card__title--toggle.is-open .footer-card__toggle-icon {
		transform: rotate(180deg);
		color: #18ba60;
	}

	/* Masquer le corps de TOUTES les cards par défaut (OFF par défaut) sur mobile/tablette */
	.footer-card-body,
	.footer-quick-links,
	.widget.quick-link,
	.footer-card .footer-card-body,
	.first-footer .footer-card-body,
	.first-footer--modern .footer-card-body {
		display: none !important;
	}

	/* Afficher (ON) uniquement lorsqu'on déplie (classe is-open) */
	.footer-card-body.is-open,
	.footer-card .footer-card-body.is-open,
	.first-footer .footer-card-body.is-open,
	.first-footer--modern .footer-card-body.is-open {
		display: block !important;
	}

	.footer-quick-links.is-open,
	.footer-quick-links.footer-card-body.is-open,
	.first-footer .footer-quick-links.is-open,
	.first-footer--modern .footer-quick-links.footer-card-body.is-open {
		display: grid !important;
	}
}
