/* ============================================================
   Footer Didatec
   ============================================================ */

.wp-block-acf-didatec-footer,
.wp-block-acf-didatec-footer.alignfull,
.wp-block-acf-didatec-footer.wp-block {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: block !important;
	background: linear-gradient(90deg, rgba(6, 5, 60, 0.05) 0%, rgba(6, 5, 60, 0.05) 100%), #fff !important;
}

.site-footer {
	background: linear-gradient(90deg, rgba(6, 5, 60, 0.05) 0%, rgba(6, 5, 60, 0.05) 100%), #fff !important;
}

.didatec-footer {
	background: linear-gradient(90deg, rgba(6, 5, 60, 0.05) 0%, rgba(6, 5, 60, 0.05) 100%), #fff;
	width: 100%;
	margin: 0;
	padding: 0;
	letter-spacing: -0.03em;
}

.didatec-footer__inner {
	display: flex;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 72px 48px;
	justify-content: space-between;
	align-items: flex-start;
	align-content: flex-start;
	row-gap: 32px;
	flex-wrap: wrap;
	position: relative;
	box-sizing: border-box;
}

/* --- Colonne gauche --- */
.didatec-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 560px;
	flex-shrink: 0;
}

.didatec-footer__logo-wrap a {
	display: inline-flex;
}

.didatec-footer__logo {
	height: 84px;
	width: auto;
	max-width: 88px;
	object-fit: contain;
	mix-blend-mode: darken;
}

/* Bloc info */
.didatec-footer__info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: #06053C;
}

/* Tagline : Stack Sans Text Bold 20px, line-height 1 */
.didatec-footer__tagline {
	font-family: 'Stack Sans Headline', sans-serif;
	font-size: 20px;
	font-weight: 600 !important;
	line-height: 1;
	letter-spacing: -0.035em;
	margin: 0;
	color: #06053C;
}

/* Description : Inter Regular 14px */
.didatec-footer__description {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400 !important;
	line-height: 1.5;
	margin: 0;
	color: #06053C;
}

/* Adresse + téléphones : Inter Regular 14px */
.didatec-footer__address,
.didatec-footer__phones {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400 !important;
	line-height: normal;
	margin: 0;
	color: #06053C;
}

/* Bouton contact : Inter Semi-Bold 14px */
.didatec-footer__contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 12px;
	border-radius: 5px;
	background: radial-gradient(ellipse at 10% 10%, #E2221B 0%, #B41A15 100%);
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: normal;
	color: #fff;
	text-decoration: none;
	align-self: flex-start;
	transition: opacity 0.2s;
}

.didatec-footer__contact-btn:hover {
	opacity: 0.9;
	color: #fff;
}

.didatec-footer__contact-btn svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

/* Copyright : Inter Bold 14px */
.didatec-footer__copyright {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600 !important;
	line-height: normal;
	color: #06053C;
	margin: 0;
}

.didatec-footer__copyright a {
	color: #06053C;
	text-decoration: underline;
}

/* --- Colonnes de liens --- */
.didatec-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
	flex: 1;
	min-width: 335px;
	max-width: 672px;
	align-items: flex-start;
}

.didatec-footer__col {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 24px;
}

/* Colonne NOS SOLUTIONS : prend plus de place (2 sous-colonnes) */
.didatec-footer__col--solutions {
	padding-top: 0;
	flex: 2;
	min-width: 280px;
}

/* Les 2 sous-colonnes côte à côte dans NOS SOLUTIONS */
.didatec-footer__col-split {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.didatec-footer__col-split .didatec-footer__col-list {
	flex: 1;
}

/* Titre colonne : Inter Bold 14px */
.didatec-footer__col-title {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	color: #06053C;
	margin: 0;
	white-space: nowrap;
	background: none;
	border: none;
	padding: 0;
	cursor: default;
	text-align: left;
	width: 100%;
}

.didatec-footer__col-chevron {
	display: none;
}

/* Liste liens : Inter Bold 14px */
.didatec-footer__col-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: -28px;
	padding: 28px;
}

.didatec-footer__col-list li a {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600 !important;
	line-height: normal;
	color: #06053C;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s;
}

.didatec-footer__col-list li a:hover {
	opacity: 0.6;
}

/* --- Sélecteur langue (bas droite) --- */
.didatec-footer__lang {
	display: flex;
	align-items: center;
	gap: 8px;
	position: absolute;
	bottom: 72px;
	right: 48px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600 !important;
	line-height: normal;
	color: #06053C;
	cursor: pointer;
	white-space: nowrap;
}

.didatec-footer__lang-flag {
	width: 20px;
	height: 14px;
	object-fit: contain;
}

.didatec-footer__lang svg {
	width: 6px;
	height: 10px;
	transform: rotate(90deg);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1200px) {
	.didatec-footer__brand {
		width: 100%;
		max-width: 500px;
	}
	.didatec-footer__links {
		min-width: 100%;
	}
	.didatec-footer__lang {
		position: static;
		margin-top: 16px;
	}
}

@media (max-width: 768px) {
	.didatec-footer__inner {
		padding: 32px 16px 24px;
		gap: 0;
		flex-direction: column;
	}

	.didatec-footer__brand {
		max-width: 100%;
		gap: 16px;
	}

	.didatec-footer__links {
		display: block;
		width: calc(100% + 32px);
		margin: 24px -16px 0;
		padding: 0 16px;
		min-width: 0;
		max-width: none;
		flex: none;
		box-sizing: border-box;
	}

	/* Lang selector at bottom */
	.didatec-footer__lang {
		position: static;
		align-self: center;
		margin-top: 24px;
		width: auto;
	}

	/* Accordion columns */
	.didatec-footer__col {
		min-width: 0;
		gap: 0;
		padding-top: 0;
		background: #fff;
		border-radius: 12px;
		margin-bottom: 8px;
	}

	.didatec-footer__col:last-child {
		margin-bottom: 0;
	}

	.didatec-footer__col-title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 20px 20px;
		cursor: pointer;
		white-space: normal;
		border-radius: 12px;
	}

	.didatec-footer__col-chevron {
		display: block;
		flex-shrink: 0;
		transition: transform 0.25s ease;
	}

	.didatec-footer__col-title[aria-expanded="true"] .didatec-footer__col-chevron {
		transform: rotate(180deg);
	}

	.didatec-footer__col-body {
		overflow: hidden;
		max-height: 0;
		transition: max-height 0.3s ease;
	}

	.didatec-footer__col-body--open {
		max-height: 600px;
	}

	.didatec-footer__col-list {
		padding: 0 20px 20px !important;
		margin: 0 !important;
	}

	.didatec-footer__col-split {
		gap: 0;
		flex-direction: column;
	}

	.didatec-footer__col-split .didatec-footer__col-list:first-child {
		padding-bottom: 0;
	}

	.didatec-footer__col--solutions {
		padding-top: 0;
	}
}
