/* Footer Compass : remplace celui du Theme Builder sur les pages refaites. Polices déclarées dans entete.css. */

.cc-pied {
	--cc-p-bleu: #7088ac;
	--cc-p-creme: #fefcf4;
	--cc-p-orange: #f9b565;

	background: var(--cc-p-bleu);
	color: var(--cc-p-creme);
	font-family: "CC Basier", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.cc-pied *,
.cc-pied *::before,
.cc-pied *::after {
	box-sizing: border-box;
}

.cc-pied a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cc-pied a:hover {
	color: var(--cc-p-orange);
}

.cc-pied a:focus-visible {
	outline: 3px solid var(--cc-p-creme);
	outline-offset: 2px;
}

.cc-pied ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cc-pied p {
	margin: 0;
	padding: 0;
}

/* Desktop : logo et liens, puis une colonne par ville, comme le footer actuel */

.cc-pied__contenu {
	display: grid;
	gap: 40px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1520px;
	padding: 72px 48px 48px;
}

.cc-pied__logo img {
	display: block;
	height: auto;
	width: 104px;
}

.cc-pied__liens {
	display: flex;
	flex-direction: column;
	font-size: 18px;
	gap: 4px;
	margin: 18px 0 24px;
}

.cc-pied__stores {
	display: inline-block;
	transition: transform 0.2s ease;
}

.cc-pied__stores:hover {
	transform: scale(1.05);
}

.cc-pied__stores img {
	display: block;
	height: auto;
	width: 150px;
}

.cc-pied .cc-pied__titre {
	font-family: "CC Gilbert", Helvetica, Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 14px;
}

.cc-pied__offres {
	display: grid;
	font-size: 17px;
	gap: 4px;
}

.cc-pied .cc-pied__reseaux {
	display: flex;
	gap: 6px;
	margin-top: 16px;
}

.cc-pied__reseaux a {
	align-items: center;
	border-radius: 50%;
	display: flex;
	height: 36px;
	justify-content: center;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	width: 36px;
}

.cc-pied .cc-pied__reseaux a:hover {
	background: var(--cc-p-creme);
	color: var(--cc-p-bleu);
	transform: scale(1.1);
}

.cc-pied__reseaux svg {
	display: block;
}

.cc-pied__bas {
	border-top: 1px solid rgba(254, 252, 244, 0.35);
	display: flex;
	font-size: 15px;
	gap: 8px 24px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1424px;
	padding: 22px 0 32px;
	width: calc(100% - 96px);
}

.cc-pied__bas a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Tablette : le logo sur toute la largeur, les villes sur deux colonnes */
@media (max-width: 980px) {
	.cc-pied__contenu {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 56px 32px 40px;
	}

	.cc-pied__marque {
		grid-column: 1 / -1;
	}
}

/* Mobile : version condensée */
@media (max-width: 767px) {
	.cc-pied__contenu {
		gap: 24px 16px;
		padding: 40px 28px 28px;
	}

	/* Logo, liens et stores centrés sur quelques lignes */
	.cc-pied__marque {
		align-items: center;
		display: flex;
		flex-direction: column;
	}

	.cc-pied__logo img {
		width: 88px;
	}

	.cc-pied__liens {
		flex-direction: row;
		font-size: 16px;
		gap: 20px;
		margin: 14px 0 18px;
	}

	.cc-pied__stores img {
		width: 140px;
	}

	/* Villes en grille 2 × 2, sans grands espaces */
	.cc-pied .cc-pied__titre {
		font-size: 19px;
		margin-bottom: 6px;
	}

	.cc-pied__offres {
		font-size: 14px;
		gap: 2px;
	}

	.cc-pied .cc-pied__reseaux {
		gap: 2px;
		margin: 8px 0 0 -7px;
	}

	.cc-pied__reseaux a {
		height: 34px;
		width: 34px;
	}

	.cc-pied__reseaux svg {
		height: 19px;
		width: 19px;
	}

	.cc-pied__bas {
		align-items: center;
		flex-direction: column;
		font-size: 13px;
		gap: 4px;
		padding: 16px 0 calc(24px + env(safe-area-inset-bottom));
		text-align: center;
		width: calc(100% - 56px);
	}
}

/* Bouton « retour en haut », qui remplace celui de Divi */
.et_pb_scroll_top {
	display: none !important;
}

.cc-haut {
	align-items: center;
	/* Sable de la charte, plus foncé que le crème du fond, et flèche encre */
	background: #f0ebd8;
	border: 0;
	border-radius: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	box-shadow: 0 6px 18px rgba(32, 40, 88, 0.14);
	color: #202858;
	cursor: pointer;
	display: flex;
	height: 48px;
	justify-content: center;
	opacity: 0;
	padding: 0;
	position: fixed;
	right: 24px;
	transform: translateY(12px) scale(0.9);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	visibility: hidden;
	width: 48px;
	z-index: 9990;
}

.cc-haut[hidden] {
	display: none;
}

.cc-haut.est-visible {
	opacity: 1;
	transform: none;
	visibility: visible;
}

.cc-haut.est-visible:hover {
	transform: scale(1.08);
}

.cc-haut:focus-visible {
	outline: 3px solid #7088ac;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.cc-haut {
		bottom: calc(18px + env(safe-area-inset-bottom));
		height: 44px;
		right: 18px;
		width: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-haut,
	.cc-pied *,
	.cc-pied *::before,
	.cc-pied *::after {
		transition: none !important;
	}
}
