/* =========================================================
   Paviterra — Footer
   ========================================================= */

.pv-footer {
	background: #fff;
	color: var(--pv-ink);
	font-size: 16px;
}
.pv-footer__inner {
	max-width: 1840px;   /* = largeur du contenu de la home (.pv-gam / .pv-parlons) */
	margin: 0 auto;
	padding: 0 40px;
}

/* ---------- Rangée principale (3 colonnes) ---------- */
.pv-footer__top {
	display: grid;
	grid-template-columns: 1fr 1.25fr 0.95fr;
	gap: 40px;
	border-top: 1.5px solid var(--pv-rust);
	padding: 52px 0 44px;
}

.pv-footer__title {
	color: var(--pv-rust);
	font-size: 32px;
	font-weight: 800;
	margin: 0 0 26px;
}

/* ---------- Contact ---------- */
.pv-footer__address {
	font-style: normal;
	line-height: 1.75;
	color: var(--pv-ink);
	margin: 0 0 22px;
}
.pv-footer__coord {
	line-height: 1.9;
	margin: 0;
	color: var(--pv-ink);
}
.pv-footer__coord a {
	color: var(--pv-rust);
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
}
.pv-footer__coord a:hover { text-decoration: underline; }

/* ---------- Services ---------- */
.pv-footer__services { text-align: center; }
.pv-footer__services-cols {
	display: inline-grid;
	grid-template-columns: auto auto;
	gap: 18px 64px;
	text-align: left;
}
/* 2e sous-colonne alignée à droite (comme la maquette). */
.pv-footer__services-cols .pv-footer__links:last-child { text-align: right; }
.pv-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pv-footer__links li { margin: 0 0 18px; }
.pv-footer__links li:last-child { margin-bottom: 0; }
.pv-footer__links a {
	color: var(--pv-ink);
	text-decoration: none;
	transition: color .18s ease;
}
.pv-footer__links a:hover { color: var(--pv-rust); }
.pv-footer__dl {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.pv-footer__dl .pv-icon {
	width: 16px;
	height: 16px;
	color: var(--pv-rust);
}

/* ---------- Suivez-nous (bloc aligné à droite) ---------- */
.pv-footer__social { text-align: right; }
.pv-footer__baseline {
	color: var(--pv-ink);
	line-height: 1.6;
	margin: 0 0 24px auto;
	max-width: 240px;
}
.pv-footer__socials {
	display: flex;
	justify-content: flex-end;
	gap: 14px;
}
.pv-foot-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--pv-rust);
	border-radius: 11px;
	background: var(--pv-sand);
	color: var(--pv-rust);
	transition: background .18s ease, color .18s ease;
}
.pv-foot-social .pv-icon { width: 20px; height: 20px; }
.pv-foot-social:hover { background: var(--pv-rust); color: #fff; }

/* ---------- Barre du bas ---------- */
.pv-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border-top: 1.5px solid var(--pv-rust);
	padding: 22px 0 28px;
}
.pv-footer__legal {
	display: flex;
	gap: 44px;
}
.pv-footer__legal a {
	color: var(--pv-ink);
	font-size: 14px;
	text-decoration: none;
	transition: color .18s ease;
}
.pv-footer__legal a:hover { color: var(--pv-rust); }
.pv-footer__credits {
	margin: 0;
	color: var(--pv-ink);
	font-size: 10px;
}
.pv-footer__credits sup { font-size: .7em; }

/* ---------- Bouton calculatrice fixe ---------- */
.pv-calc-fab {
	position: fixed;
	right: 0;
	bottom: 10%;
	z-index: 90;
	display: flex;
	align-items: center;
	padding: 14px;
	background: var(--pv-rust);
	color: #fff;
	text-decoration: none;
	border-radius: 22px 0 0 22px;
	box-shadow: -8px 10px 28px -12px rgba(23, 23, 23, .45);
	transition: padding .35s ease, background .3s ease;
}
.pv-calc-fab__icon {
	flex: 0 0 auto;
	display: inline-flex;
}
.pv-calc-fab__icon .pv-icon { width: 24px; height: 24px; display: block; }
/* Le libellé s'ouvre au survol (le conteneur reste serré sur l'icône). */
.pv-calc-fab__label {
	max-width: 0;
	margin-left: 0;
	overflow: hidden;
	white-space: nowrap;
	opacity: 0;
	font-weight: 700;
	font-size: 15px;
	transition: max-width .4s cubic-bezier(.4, 0, .2, 1), margin-left .4s ease, opacity .28s ease;
}
.pv-calc-fab:hover,
.pv-calc-fab:focus-visible { background: var(--pv-sand); }
.pv-calc-fab:hover .pv-calc-fab__label,
.pv-calc-fab:focus-visible .pv-calc-fab__label {
	max-width: 160px;
	margin-left: 12px;
	opacity: 1;
}
.pv-calc-fab:hover .pv-calc-fab__label,
.pv-calc-fab:focus-visible .pv-calc-fab__label { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.pv-footer__inner { padding: 0 24px; }
	.pv-footer__top {
		grid-template-columns: 1fr 1fr;
		gap: 36px 28px;
		padding: 40px 0 36px;
	}
	/* Contact occupe toute la largeur, Services + Suivez-nous côte à côte. */
	.pv-footer__contact { grid-column: 1 / -1; }
	.pv-footer__title { font-size: 20px; margin-bottom: 20px; }

	/* Tout repasse à gauche sur mobile. */
	.pv-footer__services { text-align: left; }
	.pv-footer__services-cols { display: grid; grid-template-columns: 1fr; gap: 14px; }
	.pv-footer__services-cols .pv-footer__links:last-child { text-align: left; }
	.pv-footer__social { text-align: left; }
	.pv-footer__socials { justify-content: flex-start; }
	.pv-footer__baseline { margin: 0 0 22px; }

	.pv-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 20px 0 24px;
	}
	.pv-footer__legal { flex-wrap: wrap; gap: 14px 24px; }
}

@media (max-width: 560px) {
	.pv-footer__top { grid-template-columns: 1fr; gap: 32px; }
	.pv-footer__services { grid-column: 1 / -1; }
	.pv-footer__social { grid-column: 1 / -1; }
	.pv-calc-fab { bottom: 8%; padding: 12px; }
	.pv-calc-fab__icon .pv-icon { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.pv-calc-fab, .pv-foot-social { transition: none; }
}
