/**
 * Pied de page.
 *
 * Géométrie relevée sur la maquette (cadre de 1920 px) :
 *   fond        dégradé -66.95deg #eed8c0 → #fffaf2, pleine largeur
 *   bandeau CTA carte x 144 → 1777 (1633), rgba(246,240,230,0.66), coins 20
 *   titre CTA   x 252, 40px   bouton x 1175 (376 × 70)
 *   filets      x 156 → 1777, à y 287 et 594 (relatifs au haut du footer)
 *   logo        x 156   copyright x 171   crédit à droite
 */

/* La classe footer-full-width lève le max-width:1140px du parent ; on annule
   aussi le padding-inline:10px qu'il applique à .site-footer:not(.dynamic-footer). */
.site-footer.footer-full-width {
	max-width: 100%;
	padding-inline: 0;
}

.site-footer {
	position: relative;
	background-image: linear-gradient(-66.95deg, var(--anidjar-sable) 0%, var(--anidjar-ivoire) 58.17%);
	color: var(--anidjar-texte);
}

/* ---------------------------------------------------------------------------
 * Bandeau CTA
 * ------------------------------------------------------------------------ */

.site-footer__cta {
	box-sizing: border-box;
	padding: clamp(var(--anidjar-gouttiere), 7.5vw, 144px); /* 144 / 1920 */
	padding-top: clamp(2rem, 2.76vw, 53px); /* 4425 − 4372 */
}

.footer-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--anidjar-espace-lg);
	box-sizing: border-box;
	min-height: 325px;

	/* Padding asymétrique : titre à 108 du bord gauche, bouton à 226 du bord
	   droit (x 1551 dans la maquette), et non collé au bord. */
	padding: clamp(2rem, 6vw, 113px) clamp(1.5rem, 11.77vw, 226px) clamp(2rem, 6vw, 113px) clamp(1.5rem, 5.625vw, 108px);
	border-radius: var(--anidjar-rayon-carte);
	background-color: var(--anidjar-surface-cta);
	box-shadow: var(--anidjar-ombre-carte);
	transition: transform var(--anidjar-transition);
}

/* Survol : le bandeau se soulève doucement. */
@media (hover: hover) {
	.footer-cta:hover {
		transform: translateY(-5px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.footer-cta {
		transition: none;
	}

	.footer-cta:hover {
		transform: none;
	}
}

.footer-cta__title {
	margin: 0;
	max-width: 455px;
	font-size: var(--anidjar-fs-lg); /* 40px */
	line-height: 1.2375; /* 99 / 40 sur 2 lignes */
}

/* Bouton principal + boutons ronds de contact, sur une même ligne. */
.footer-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--anidjar-espace-lg);
}

/* ---------------------------------------------------------------------------
 * Corps du pied de page
 * ------------------------------------------------------------------------ */

.site-footer__inner {
	box-sizing: border-box;
	max-width: 1621px; /* filets 156 → 1777 */
	margin-inline: auto;
	padding-inline: var(--anidjar-gouttiere);
}

.site-footer__nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: clamp(2rem, 8vw, 160px);
	padding-block: clamp(2.5rem, 5.31vw, 102px); /* filet à filet : 6596 − 6499 ≈ 97 */
	border-top: 1px solid var(--anidjar-filet-fonce);
}

/* ---------------------------------------------------------------------------
 * Logo central
 * ------------------------------------------------------------------------ */

.site-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: var(--anidjar-espace-md);
	color: var(--anidjar-texte);
	text-decoration: none;
}

.site-footer__mark {
	display: block;
	flex: 0 0 auto;
	width: 113px;
	color: var(--anidjar-or);
}

.site-footer__mark svg {
	display: block;
	width: 100%;
	height: auto;
}

.site-footer__wordmark {
	font-family: var(--anidjar-police-titre);
	font-size: 1.5rem; /* 24px */
	font-weight: var(--anidjar-graisse-titre);
	line-height: 1.1;
	white-space: pre-line; /* « Anidjar\nAvocat » */
}

/* ---------------------------------------------------------------------------
 * Colonnes de menu
 * ------------------------------------------------------------------------ */

.site-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__menu--right {
	justify-self: end;
}

.site-footer__menu li {
	margin: 0;
}

.site-footer__menu li + li {
	margin-top: var(--anidjar-espace-2xs);
}

.site-footer__menu a {
	color: var(--anidjar-texte);
	font-size: var(--anidjar-fs-sm);
	line-height: var(--anidjar-interligne-texte);
	text-decoration: none;
	transition: color var(--anidjar-transition);
}

.site-footer__menu a:hover,
.site-footer__menu a:focus {
	color: var(--anidjar-texte-accent);
}

/* ---------------------------------------------------------------------------
 * Barre du bas
 * ------------------------------------------------------------------------ */

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--anidjar-espace-sm);
	padding-block: clamp(1.5rem, 1.98vw, 38px);
	border-top: 1px solid var(--anidjar-filet-fonce);
}

.site-footer__copyright,
.site-footer__credit {
	margin: 0;
	font-size: 0.75rem; /* 12px */
	line-height: normal;
	letter-spacing: 0.3em; /* 3.6px sur 12px */
	text-transform: uppercase;
}

/* l'interlettrage ajoute une espace après la dernière lettre du crédit */
.site-footer__credit {
	margin-right: -0.3em;
}

.site-footer__credit a {
	color: inherit;
	text-decoration: none;
	transition: color var(--anidjar-transition);
}

.site-footer__credit a:hover,
.site-footer__credit a:focus {
	color: var(--anidjar-texte-accent);
}

/* ---------------------------------------------------------------------------
 * Mobile et tablette
 * ------------------------------------------------------------------------ */

@media (max-width: 900px) {
	.footer-cta {
		flex-direction: column;
		align-items: flex-start;
		min-height: 0;
		padding: var(--anidjar-espace-2xl) var(--anidjar-espace-lg);
	}

	.footer-cta__title {
		max-width: none;
	}

	.site-footer__nav {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		gap: var(--anidjar-espace-xl);
		text-align: center;
	}

	.site-footer__brand {
		order: -1; /* logo en premier sur mobile */
		flex-direction: column;
		text-align: center;
	}

	.site-footer__menu {
		text-align: center;
	}

	.site-footer__menu--right {
		justify-self: center;
	}

	.site-footer__bottom {
		flex-direction: column;
		gap: var(--anidjar-espace-xs);
		text-align: center;
	}

	.site-footer__credit {
		margin-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-footer__menu a {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
 * Carte du cabinet
 *
 * Bande pleine largeur entre le bandeau CTA et la navigation, alignée sur les
 * mêmes gouttières que le CTA. La note et les avis sont ceux de la fiche Google,
 * affichés dans la carte au clic sur le repère.
 * ------------------------------------------------------------------------ */

.footer-map {
	box-sizing: border-box;
	overflow: hidden; /* l'iframe est rectangulaire : c'est la bande qui arrondit */
	margin-inline: clamp(var(--anidjar-gouttiere), 7.5vw, 144px); /* aligné sur le CTA */
	margin-bottom: clamp(2rem, 3vw, 58px);
	border-radius: var(--anidjar-rayon-carte);
	box-shadow: var(--anidjar-ombre-carte);
}

.footer-map__iframe {
	display: block;
	width: 100%;
	height: clamp(300px, 26vw, 460px);
	border: 0;
}

@media (max-width: 900px) {
	.footer-map__iframe {
		height: clamp(240px, 55vw, 340px);
	}
}
