/* CPTS Centre-Hérault — pied de page [cpts_footer]. */

.cptsf {
	--cptsf-blue:  #3f87c0;
	--cptsf-teal:  #2fa6b3;
	--cptsf-navy:  #234155;
	--cptsf-ink:   #2b3a47;
	--cptsf-muted: #6b7a89;
	--cptsf-line:  #e7edf3;

	position: relative;
	background: #fff;
	color: var(--cptsf-ink);
	font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	padding: clamp(38px, 5vw, 68px) clamp(20px, 5vw, 60px) 0;
}

/* Filet supérieur : exactement le dégradé qui colore les entrées du menu au
   survol (cf. cpts-header.css), déroulé à l'horizontale. En pseudo-élément
   plutôt qu'en `border-image`, dont le rendu reste inégal selon les moteurs. */
.cptsf::before {
	content: "";
	position: absolute; top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, #2f80c2, #2aa0ad, #A6C549, #E94E1B);
}

.cptsf__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 2.6fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 60px);
	max-width: 1500px;
	margin: 0 auto;
	padding-bottom: clamp(32px, 4vw, 52px);
}

/* ==========================================================================
   Marque
   ========================================================================== */

.cptsf__logo { display: inline-block; }
.cptsf__logo img { display: block; width: clamp(120px, 14vw, 168px); height: auto; }

.cptsf__baseline {
	margin: 18px 0 0;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--cptsf-muted);
	max-width: 34ch;
}

.cptsf__social { display: flex; gap: 10px; margin-top: 22px; }
.cptsf__social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 10px;
	background: rgba(47, 128, 194, .10);
	color: var(--cptsf-blue);
	transition: background .18s ease, color .18s ease, transform .18s ease;
}
.cptsf__social a:hover { background: var(--cptsf-blue); color: #fff; transform: translateY(-2px); }
.cptsf__social svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* ==========================================================================
   Colonnes du menu
   ========================================================================== */

.cptsf__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: clamp(20px, 3vw, 40px);
}

.cptsf__col-title {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cptsf-navy);
}
.cptsf__col-title a { color: inherit; text-decoration: none; }
.cptsf__col-title a:hover { color: var(--cptsf-blue); }

.cptsf__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cptsf__links a {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--cptsf-muted);
	text-decoration: none;
	transition: color .15s ease;
}
.cptsf__links a:hover { color: var(--cptsf-blue); }

.cptsf__address { font-size: 14.5px; line-height: 1.6; color: var(--cptsf-muted); }

/* ==========================================================================
   Barre basse
   ========================================================================== */

.cptsf__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	max-width: 1500px;
	margin: 0 auto;
	padding: 20px 0 26px;
	border-top: 1px solid var(--cptsf-line);
}

.cptsf__copy { margin: 0; font-size: 13.5px; color: var(--cptsf-muted); }

.cptsf__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; }
.cptsf__legal a {
	font-size: 13.5px;
	color: var(--cptsf-muted);
	text-decoration: none;
}
.cptsf__legal a:hover { color: var(--cptsf-blue); text-decoration: underline; }

@media (max-width: 1000px) {
	.cptsf__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.cptsf__contact { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.cptsf__inner { grid-template-columns: 1fr; }
	.cptsf__bottom { justify-content: flex-start; }
}
