/*
 * CMG Footer — pied de page Héritage
 * Updated: 2026-08-08 15:16 (Europe/Zurich)
 *
 * Style du footer.php réécrit. Deux zones :
 *   1. Bande claire #faf8f3 : message éthique + logos de certification (colorés,
 *      donc posés sur clair pour rester lisibles), liens externes.
 *   2. Corps sombre #1c1a17 : colonnes Catégories / Contact, titres serif or,
 *      puis barre basse (Swiss made, copyright, Instagram).
 *
 * Full responsive : rangée de logos en flex-wrap, colonnes qui s'empilent, barre
 * basse qui repasse en colonne sur mobile. Couleurs du handoff « Home Héritage ».
 *
 * Neutralise l'ancien habillage : plus de <table>, plus de #gk-social /
 * #gk-copyrights ni de marges négatives.
 */

/* Remet à zéro l'ancien conteneur du thème.
   Le thème pose « #gk-footer { max-width:750px; margin:0 auto } » (style.css
   L2666) ; on le libère pour un pied pleine largeur, le contenu restant centré
   via les max-width internes. */
#gk-footer.cmg-footer {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #1c1a17;
	color: #b3aa9c;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	line-height: 1.7;
}

.cmg-footer *,
.cmg-footer *::before,
.cmg-footer *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------- bande claire (certifs) */

.cmg-footer__trust {
	background: #faf8f3;
	padding: 34px 20px;
	text-align: center;
}

.cmg-footer__ethic {
	margin: 0 0 22px;
	color: #1c1a17;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 22px;
	letter-spacing: 0.02em;
}

.cmg-footer__certs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 26px 44px;
}

.cmg-footer__certs li {
	margin: 0;
	line-height: 0;
}

/* Hauteur uniforme, largeur proportionnelle : tous les logos alignés. */
.cmg-footer__certs img {
	display: block;
	height: 40px;
	width: auto;
	max-width: 100%;
	opacity: 0.9;
	transition: opacity 0.2s ease;
}

.cmg-footer__certs a:hover img,
.cmg-footer__certs a:focus img {
	opacity: 1;
}

/* ---------------------------------------------------- corps sombre, colonnes */

.cmg-footer__main {
	max-width: 1170px;
	margin: 0 auto;
	padding: 56px 30px 36px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 40px 80px;
}

/* Colonnes groupées à gauche, contenu aligné à gauche (le thème impose sinon
   un text-align:center hérité de #gk-footer). */
.cmg-footer__col {
	flex: 0 1 220px;
	min-width: 0;
	text-align: left;
}

.cmg-footer__title {
	margin: 0 0 16px;
	color: #e8e2d5;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	font-size: 20px;
	text-transform: none;
	letter-spacing: 0;
}

.cmg-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.cmg-footer a {
	color: #b3aa9c;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cmg-footer a:hover,
.cmg-footer a:focus {
	color: #a4884f;
}

.cmg-footer__contact {
	margin: 0 0 8px;
}

.cmg-footer__contact strong {
	color: #e8e2d5;
	font-weight: 600;
}

/* ------------------------------------------------------------- barre basse */

.cmg-footer__bottom {
	max-width: 1170px;
	margin: 0 auto;
	padding: 22px 30px 28px;
	border-top: 1px solid #35312b;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.cmg-footer__swiss {
	height: 38px;
	width: auto;
	flex: 0 0 auto;
}

.cmg-footer__copy {
	margin: 0;
	flex: 1 1 auto;
	text-align: center;
	font-size: 12px;
}

.cmg-footer__ig {
	flex: 0 0 auto;
	display: inline-flex;
	color: #b3aa9c;
	transition: color 0.2s ease;
}

.cmg-footer__ig:hover,
.cmg-footer__ig:focus {
	color: #a4884f;
}

.cmg-footer a:focus-visible {
	outline: 2px solid #a4884f;
	outline-offset: 3px;
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 600px) {

	.cmg-footer__main {
		padding: 40px 24px 28px;
		gap: 32px;
	}

	.cmg-footer__col {
		flex: 1 1 100%;
	}

	.cmg-footer__certs {
		gap: 22px 30px;
	}

	.cmg-footer__certs img {
		height: 34px;
	}

	/* Barre basse empilée et centrée. */
	.cmg-footer__bottom {
		flex-direction: column;
		text-align: center;
	}
}
