/**
 * Chalet des Longschamps — pied de page.
 * Fond crème uni (palette du site), colonnes qui apparaissent à l'arrivée en bas de page.
 */

@font-face {
	font-family: 'CDL Shippori';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/shippori-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'CDL Shippori';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/shippori-500-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'CDL Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.cdl-footer {
	--cdl-creme: #F0E6C5;   /* crème doré de la palette Astra du site */
	--cdl-creme-clair: #FAF5E5;
	--cdl-encre: #141004;
	--cdl-or: #D09A40;
	--cdl-or-fonce: #8C6420;
	--cdl-gris: #5E5648;
	--cdl-display: 'CDL Shippori', 'Shippori Mincho', Georgia, 'Times New Roman', serif;
	--cdl-body: 'CDL Inter', 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--cdl-ease-out: cubic-bezier(.22, 1, .36, 1);
	--cdl-gutter: clamp(20px, 4vw, 64px);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	background-color: var(--cdl-creme);
	color: var(--cdl-encre);
	font: 400 14px/1.6 var(--cdl-body);
	-webkit-font-smoothing: antialiased;
	border-top: 1px solid rgba(208, 154, 64, .45);
}

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

.cdl-footer a {
	color: var(--cdl-encre) !important;
	text-decoration: none !important;
}

.cdl-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cdl-footer li {
	margin: 0;
	list-style: none;
}

.cdl-footer li::marker {
	content: none;
}

/* ---------- Contenu ---------- */
.cdl-footer__inner {
	position: relative;
	z-index: 1;
	max-width: 1360px;
	margin: 0 auto;
	padding: clamp(56px, 9vw, 112px) var(--cdl-gutter) 0;
}

.cdl-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
	gap: clamp(32px, 4vw, 64px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

.cdl-footer.cdl-anim .cdl-footer__top > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .9s, transform 1.1s var(--cdl-ease-out);
}

.cdl-footer.cdl-anim.is-visible .cdl-footer__top > * {
	opacity: 1;
	transform: none;
}

.cdl-footer.cdl-anim.is-visible .cdl-footer__top > :nth-child(2) { transition-delay: .1s; }
.cdl-footer.cdl-anim.is-visible .cdl-footer__top > :nth-child(3) { transition-delay: .2s; }
.cdl-footer.cdl-anim.is-visible .cdl-footer__top > :nth-child(4) { transition-delay: .3s; }

/* Colonne marque */
.cdl-footer__logo {
	display: inline-block;
	line-height: 0;
}

.cdl-footer__logo img {
	display: block;
	height: 64px !important;
	width: auto !important;
	max-width: none !important;
}

.cdl-footer__pitch {
	margin: 22px 0 0;
	max-width: 30ch;
	font: 400 clamp(20px, 1.7vw, 26px)/1.3 var(--cdl-display);
	color: var(--cdl-encre);
	text-wrap: balance;
}

.cdl-footer__pitch::after {
	content: '';
	display: block;
	width: 40px;
	height: 1px;
	margin-top: 18px;
	background: var(--cdl-or);
}

.cdl-footer__address {
	margin: 18px 0 0;
	font-style: normal;
	color: var(--cdl-gris);
}

/* Titres de colonnes */
.cdl-footer__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 6px 0 18px;
	font: 500 10px/1 var(--cdl-body);
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--cdl-or-fonce);
}

.cdl-footer__title::before {
	content: '';
	width: 24px;
	height: 1px;
	background: var(--cdl-or);
}

/* Listes de liens */
.cdl-footer__links li + li {
	margin-top: 6px;
}

.cdl-footer__links a {
	display: inline-block;
	font: 400 18px/1.4 var(--cdl-display);
	background-image: linear-gradient(var(--cdl-or), var(--cdl-or));
	background-repeat: no-repeat;
	background-size: 0 1px;
	background-position: 0 100%;
	transition: background-size .5s var(--cdl-ease-out), color .3s;
}

.cdl-footer__links a:hover,
.cdl-footer__links a:focus-visible {
	background-size: 100% 1px;
	outline: none;
}

.cdl-footer__links a[aria-current="page"] {
	color: var(--cdl-or-fonce) !important;
}

/* Infos pratiques */
.cdl-footer__facts {
	display: grid;
	gap: 10px;
}

.cdl-footer__facts div {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: baseline;
	gap: 10px;
}

.cdl-footer__facts dt {
	margin: 0;
	font-weight: 400;
	color: var(--cdl-gris);
}

.cdl-footer__facts dd {
	margin: 0;
	font-weight: 400;
	text-align: right;
	font-variant-numeric: tabular-nums;
	border-bottom: 1px dotted rgba(20, 16, 4, .2);
	padding-bottom: 2px;
}

.cdl-footer__contact {
	margin-top: 22px;
	display: grid;
	gap: 4px;
}

.cdl-footer__contact a {
	justify-self: start;
	background-image: linear-gradient(var(--cdl-or), var(--cdl-or));
	background-repeat: no-repeat;
	background-size: 0 1px;
	background-position: 0 100%;
	transition: background-size .5s var(--cdl-ease-out);
}

.cdl-footer__contact a:hover,
.cdl-footer__contact a:focus-visible {
	background-size: 100% 1px;
	outline: none;
}

.cdl-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.cdl-footer__social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(20, 16, 4, .16);
	border-radius: 50%;
	transition: border-color .3s, background-color .3s, color .3s;
}

.cdl-footer__social a:hover,
.cdl-footer__social a:focus-visible {
	border-color: var(--cdl-encre);
	background-color: var(--cdl-encre);
	color: var(--cdl-creme-clair) !important;
	outline: none;
}

.cdl-footer__social svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ---------- Barre du bas ---------- */
.cdl-footer__bottom {
	position: relative;
	z-index: 1;
	max-width: 1360px;
	margin: 0 auto;
	padding: 18px var(--cdl-gutter) calc(18px + env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 28px;
	font-size: 12px;
	color: var(--cdl-gris);
}

.cdl-footer__bottom::before {
	content: '';
	position: absolute;
	top: 0;
	left: var(--cdl-gutter);
	right: var(--cdl-gutter);
	height: 1px;
	background: rgba(20, 16, 4, .16);
}

.cdl-footer__bottom p {
	margin: 0;
}

.cdl-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.cdl-footer__bottom a {
	color: var(--cdl-gris) !important;
	transition: color .3s;
}

.cdl-footer__bottom a:hover,
.cdl-footer__bottom a:focus-visible {
	color: var(--cdl-encre) !important;
	outline: none;
}

.cdl-footer__end {
	display: flex;
	align-items: center;
	gap: 24px;
}

.cdl-footer__lang {
	display: flex;
	gap: 10px;
}

.cdl-footer__lang li + li::before {
	content: '/';
	margin-right: 10px;
	color: rgba(20, 16, 4, .3);
}

.cdl-footer__lang a {
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.cdl-footer__lang a[aria-current="true"] {
	color: var(--cdl-encre) !important;
	border-bottom: 1px solid var(--cdl-or);
}

.cdl-footer__top-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	letter-spacing: .2em;
	text-transform: uppercase;
	font-weight: 500;
}

.cdl-footer__top-link span {
	display: inline-block;
	transition: transform .5s var(--cdl-ease-out);
}

.cdl-footer__top-link:hover span {
	transform: translateY(-3px);
}

.cdl-footer a:focus-visible {
	outline: 2px solid var(--cdl-or) !important;
	outline-offset: 3px;
}

/* ============================================================
 *  Tablette
 * ============================================================ */
@media (max-width: 1024px) {
	.cdl-footer__top {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cdl-footer__brand {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		column-gap: 40px;
	}

	.cdl-footer__pitch {
		margin-top: 0;
	}

	.cdl-footer__address {
		grid-column: 2;
		margin-top: 0;
	}
}

/* ============================================================
 *  Téléphone
 * ============================================================ */
@media (max-width: 767px) {
	.cdl-footer {
		--cdl-gutter: 20px;
	}

	.cdl-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 20px;
		}

	.cdl-footer__brand {
		display: block;
	}

	.cdl-footer__pitch {
		margin-top: 18px;
	}

	.cdl-footer__address {
		margin-top: 14px;
	}

	.cdl-footer__logo img {
		height: 52px !important;
	}

	.cdl-footer__practical {
		grid-column: 1 / -1;
	}

	.cdl-footer__links a {
		font-size: 17px;
		padding: 3px 0;
	}

	.cdl-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.cdl-footer__end {
		width: 100%;
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cdl-footer.cdl-anim .cdl-footer__top > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
