/* WS Footer - modele « Encadre » (maquettes/modele-6.html).
   Chargee seulement quand ce modele est choisi. Couleurs : variables --wsf-* posees par l'extension :
   --wsf-bg = fond de la carte, --wsf-accent = lisere et trait du bas, --wsf-bottom-bg = marge autour.
   Police embarquee (DM Sans : licence SIL OFL) : aucun appel a un service externe. */

@font-face {
	font-family: "WSF DM Sans";
	src: url("../fonts/dm-sans-latin.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}

.wsf-footer--encadre {
	padding: 56px clamp(12px, 5vw, 95px) 48px;
	background: var(--wsf-bottom-bg);
	color: var(--wsf-text);
	font-family: "WSF DM Sans", "DM Sans", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.wsf-footer--encadre a {
	color: inherit;
	text-decoration: none;
}

.wsf-footer--encadre a:hover {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wsf-footer--encadre a:focus-visible {
	outline: 2px solid var(--wsf-title);
	outline-offset: 3px;
	border-radius: 3px;
}

.wsf-footer--encadre ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wsf-footer--encadre li {
	margin: 0;
	padding: 0;
}

.wsf-footer--encadre li::before,
.wsf-footer--encadre li::marker {
	content: none;
}

.wsf-footer--encadre p {
	margin: 0;
}

/* La carte : fond clair, lisere fin, coins arrondis. */
.wsf-e-carte {
	max-width: 1710px;
	margin: 0 auto;
	padding: 44px 56px 28px;
	border: 1px solid var(--wsf-accent);
	border-radius: 20px;
	background: var(--wsf-bg);
}

/* Colonnes de liens : elles se partagent la largeur, quel que soit leur nombre. */
.wsf-e-haut {
	display: grid;
	grid-template-columns: repeat(var(--wsf-e-cols, 3), minmax(0, 1fr));
	padding-bottom: 40px;
}

.wsf-e-haut > * {
	padding-right: 24px;
}

.wsf-footer--encadre .wsf-e-titre {
	margin: 0 0 14px;
	color: var(--wsf-title);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.wsf-footer--encadre .wsf-p-liens li + li {
	margin-top: 8px;
}

.wsf-footer--encadre .wsf-p-liens a {
	font-size: 13px;
	line-height: 1.5;
}

/* Bas : trait du lisere, logo et mention a gauche, menu legal a droite. */
.wsf-e-bas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 30px;
	padding-top: 24px;
	border-top: 1px solid var(--wsf-accent);
	color: var(--wsf-bottom-text);
	font-size: 12px;
}

.wsf-e-carte > .wsf-e-bas:first-child {
	padding-top: 0;
	border-top: 0;
}

.wsf-e-signature {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
}

.wsf-e-logo {
	display: block;
}

.wsf-e-logo img {
	display: block;
	width: auto;
	max-width: 240px;
	height: var(--wsf-e-logo, 96px);
}

.wsf-footer--encadre .wsf-e-nom {
	color: var(--wsf-title);
	font-size: 20px;
	font-weight: 600;
}

.wsf-footer--encadre .wsf-e-reseaux {
	display: flex;
	gap: 14px;
}

.wsf-e-reseaux a {
	display: block;
	color: var(--wsf-title);
}

.wsf-e-reseaux svg {
	display: block;
	width: 18px;
	height: 18px;
}

.wsf-e-legal .wsf-legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.wsf-footer--encadre .wsf-e-legal a {
	color: var(--wsf-bottom-text);
	font-size: 12px;
}

/* ---------- Tablette : trois colonnes au plus ---------- */
@media (max-width: 1100px) {
	.wsf-footer--encadre { padding: 40px 28px; }
	.wsf-e-carte { padding: 36px 36px 24px; }
	.wsf-e-haut { grid-template-columns: repeat(min(var(--wsf-e-cols, 3), 3), minmax(0, 1fr)); gap: 28px 4px; padding-bottom: 32px; }
}

/* ---------- Telephone : tout en une colonne ---------- */
@media (max-width: 640px) {
	.wsf-footer--encadre { padding: 24px 12px; }
	.wsf-e-carte { padding: 28px 22px 22px; border-radius: 16px; }
	.wsf-e-haut { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
	.wsf-e-bas { flex-direction: column; align-items: flex-start; padding-top: 22px; }
	.wsf-e-legal .wsf-legal-menu { flex-direction: column; gap: 6px; }
}
