/* ==========================================================================
   POMAR — Footer
   ========================================================================== */

.pomar-footer {
	--pomar-footer-background: #3d2b1f;
	--pomar-footer-text: #f8f2e8;
	--pomar-footer-muted: rgba(248, 242, 232, 0.7);
	--pomar-footer-border: rgba(248, 242, 232, 0.18);
	--pomar-footer-accent: #f2d33d;
	--pomar-footer-dark: #2e2118;

	position: relative;
	z-index: 1;
	width: 100%;
	margin: 0;
	background: var(--pomar-footer-background);
	color: var(--pomar-footer-text);
	font-family: "Mediaan", var(--ast-body-font-family), sans-serif;
}

.pomar-footer,
.pomar-footer * {
	box-sizing: border-box;
}

.pomar-footer__inner {
	width: min(calc(100% - 80px), 1240px);
	margin-inline: auto;
	padding-block: 80px 28px;
}

.pomar-footer__main {
	display: grid;
	grid-template-columns:
		minmax(280px, 1.7fr)
		minmax(140px, 0.8fr)
		minmax(160px, 0.9fr)
		minmax(220px, 1.1fr);
	gap: 48px;
	align-items: start;
}

.pomar-footer__brand {
	max-width: 390px;
}

.pomar-footer__logo {
	margin-bottom: 28px;
	line-height: 1;
}

.pomar-footer__logo .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.pomar-footer__logo .custom-logo {
	display: block;
	width: 180px;
	max-width: 100%;
	height: auto;
	filter:
		brightness(0)
		saturate(100%)
		invert(94%)
		sepia(9%)
		saturate(479%)
		hue-rotate(337deg)
		brightness(105%)
		contrast(94%);
}

.pomar-footer__logo > a:not(.custom-logo-link) {
	color: var(--pomar-footer-text);
	font-family: "Basteleur", Georgia, serif;
	font-size: 2.5rem;
	line-height: 1;
	text-decoration: none;
}

.pomar-footer__description {
	max-width: 350px;
	margin: 0;
	color: var(--pomar-footer-muted);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.65;
}

.pomar-footer__heading {
	margin: 4px 0 24px;
	padding: 0;
	color: var(--pomar-footer-text);
	font-family: "Mediaan", var(--ast-body-font-family), sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.pomar-footer__menu,
.pomar-footer__legal-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pomar-footer__menu li,
.pomar-footer__legal-menu li {
	margin: 0;
	padding: 0;
}

.pomar-footer__menu li + li {
	margin-top: 12px;
}

.pomar-footer__menu a,
.pomar-footer__legal-menu a {
	color: var(--pomar-footer-text);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.45;
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition:
		color 180ms ease,
		opacity 180ms ease;
}

.pomar-footer__menu a:hover,
.pomar-footer__menu a:focus-visible,
.pomar-footer__legal-menu a:hover,
.pomar-footer__legal-menu a:focus-visible {
	color: var(--pomar-footer-accent);
	text-decoration: underline;
}

.pomar-footer__booking {
	display: inline-flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	min-width: 185px;
	margin-top: 30px;
	padding: 14px 18px;
	border: 1px solid var(--pomar-footer-accent);
	border-radius: 999px;
	background: var(--pomar-footer-accent);
	color: var(--pomar-footer-dark);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	text-transform: lowercase;
	transition:
		background-color 180ms ease,
		color 180ms ease,
		transform 180ms ease;
}

.pomar-footer__booking:hover,
.pomar-footer__booking:focus-visible {
	background: transparent;
	color: var(--pomar-footer-accent);
	transform: translateY(-2px);
}

.pomar-footer__bottom {
	display: flex;
	gap: 32px;
	align-items: center;
	justify-content: space-between;
	margin-top: 72px;
	padding-top: 24px;
	border-top: 1px solid var(--pomar-footer-border);
}

.pomar-footer__copyright {
	margin: 0;
	color: var(--pomar-footer-muted);
	font-size: 0.75rem;
	line-height: 1.5;
}

.pomar-footer__legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: flex-end;
}

.pomar-footer__legal-menu a {
	color: var(--pomar-footer-muted);
	font-size: 0.75rem;
}

.pomar-footer a:focus-visible {
	border-radius: 3px;
	outline: 2px solid var(--pomar-footer-accent);
	outline-offset: 4px;
}


/* ========================================================================== 
   Mailchimp — newsletter du footer
   ========================================================================== */

.mailchimp-footer-l1 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--space-3);
	align-items: stretch;
	width: 100%;
	max-width: 620px;
	margin: 0;
}

.mailchimp-footer-l1 .mailchimp-input {
	display: block;
	width: 100%;
	min-width: 0;
	height: var(--control-h-lg);
	margin: 0 !important;
	padding: 0 var(--space-4) !important;
	border: 1px solid var(--border-strong) !important;
	border-radius: var(--radius-sm) !important;
	background: var(--surface-card) !important;
	box-shadow: var(--shadow-xs);
	color: var(--text-body) !important;
	font: var(--type-body) !important;
	line-height: 1 !important;
	outline: 0;
	box-sizing: border-box;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.mailchimp-footer-l1 .mailchimp-input::placeholder {
	color: var(--text-muted);
	opacity: 0.78;
}

.mailchimp-footer-l1 .mailchimp-input:focus {
	border-color: var(--border-brand) !important;
	box-shadow: 0 0 0 3px var(--brand-soft);
}

.mailchimp-footer-l1 .mailchimp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 132px;
	height: var(--control-h-lg);
	margin: 0 !important;
	padding: 0 var(--space-5) !important;
	border: 1px solid var(--brand) !important;
	border-radius: var(--radius-pill) !important;
	background: var(--brand) !important;
	color: var(--text-on-brand) !important;
	font-family: var(--font-title) !important;
	font-size: var(--text-sm) !important;
	font-style: italic;
	font-weight: var(--weight-medium);
	line-height: 1 !important;
	letter-spacing: 0.02em;
	text-transform: lowercase;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	box-sizing: border-box;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		transform 180ms ease;
}

.mailchimp-footer-l1 .mailchimp-button:hover {
	border-color: var(--brand-strong) !important;
	background: var(--brand-strong) !important;
	color: var(--text-on-brand) !important;
	transform: translateY(-1px);
}

.mailchimp-footer-l1 .mailchimp-button:focus-visible {
	outline: 3px solid var(--sun-500);
	outline-offset: 3px;
}

.mc4wp-response {
	width: 100%;
	max-width: 620px;
	margin-top: var(--space-3);
	color: inherit;
	font: var(--type-small);
}


/* ==========================================================================
   Tablette
   ========================================================================== */

@media (max-width: 960px) {
	.pomar-footer__inner {
		width: min(calc(100% - 48px), 1240px);
		padding-top: 64px;
	}

	.pomar-footer__main {
		grid-template-columns: minmax(0, 1.5fr) minmax(180px, 1fr);
		gap: 56px 48px;
	}

	.pomar-footer__brand {
		grid-row: span 2;
	}

	.pomar-footer__bottom {
		margin-top: 56px;
	}
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 640px) {
	.mailchimp-footer-l1 {
		grid-template-columns: 1fr;
	}

	.mailchimp-footer-l1 .mailchimp-button {
		width: 100%;
	}

	.pomar-footer__inner {
		width: calc(100% - 40px);
		padding-block: 52px 24px;
	}

	.pomar-footer__main {
		grid-template-columns: 1fr 1fr;
		gap: 44px 24px;
	}

	.pomar-footer__brand {
		grid-column: 1 / -1;
		grid-row: auto;
		max-width: none;
		padding-bottom: 4px;
	}

	.pomar-footer__contact {
		grid-column: 1 / -1;
	}

	.pomar-footer__logo {
		margin-bottom: 24px;
	}

	.pomar-footer__logo .custom-logo {
		width: 160px;
	}

	.pomar-footer__description {
		max-width: 420px;
		font-size: 0.9375rem;
	}

	.pomar-footer__heading {
		margin-bottom: 20px;
	}

	.pomar-footer__menu a {
		font-size: 0.9375rem;
	}

	.pomar-footer__booking {
		width: 100%;
		max-width: 280px;
		margin-top: 26px;
	}

	.pomar-footer__bottom {
		flex-direction: column;
		gap: 18px;
		align-items: flex-start;
		margin-top: 52px;
	}

	.pomar-footer__legal-menu {
		justify-content: flex-start;
	}
}


/* ==========================================================================
   Très petits écrans
   ========================================================================== */

@media (max-width: 390px) {
	.pomar-footer__main {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.pomar-footer__brand,
	.pomar-footer__contact {
		grid-column: auto;
	}
}


/* ==========================================================================
   Réduction des animations
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.pomar-footer a {
		transition: none;
	}
}

/* ==========================================================================
   Footer — typographie et neutralisation des listes Astra
   ========================================================================== */

.pomar-footer {
	--pomar-footer-text: #d8d0c4;
	--pomar-footer-muted: #d8d0c4;

	font-family: var(--font-body);
}

/*
 * Mediaan n'est disponible sur le site qu'en italic 400.
 * Les titres doivent donc utiliser exactement cette variante.
 */
.pomar-footer .pomar-footer__heading {
	margin: 0 0 24px !important;
	padding: 0 !important;

	color: var(--pomar-footer-accent) !important;
	font-family: var(--font-title) !important;
	font-size: 18px !important;
	font-style: italic !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: lowercase !important;
}

/*
 * Le ciblage ne dépend plus uniquement des classes ajoutées par wp_nav_menu().
 * Cela couvre également les menus de fallback.
 */
.pomar-footer nav > ul,
.pomar-footer .pomar-footer__column > ul {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.pomar-footer nav > ul > li,
.pomar-footer .pomar-footer__column > ul > li {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.pomar-footer nav > ul > li::marker,
.pomar-footer .pomar-footer__column > ul > li::marker {
	font-size: 0 !important;
	content: "" !important;
}

.pomar-footer nav > ul > li::before,
.pomar-footer .pomar-footer__column > ul > li::before {
	display: none !important;
	content: none !important;
}

/* Espacement vertical des liens */
.pomar-footer .pomar-footer__column > ul > li + li {
	margin-top: 12px !important;
}

/* Couleur et typographie des textes */
.pomar-footer .pomar-footer__description,
.pomar-footer .pomar-footer__copyright {
	color: var(--pomar-footer-text) !important;
	font-family: var(--font-body) !important;
}

.pomar-footer nav a,
.pomar-footer nav a:link,
.pomar-footer nav a:visited,
.pomar-footer .pomar-footer__menu a,
.pomar-footer .pomar-footer__menu a:link,
.pomar-footer .pomar-footer__menu a:visited {
	color: var(--pomar-footer-text) !important;
	font-family: var(--font-body) !important;
	font-style: normal !important;
	font-weight: 400 !important;
	text-transform: none !important;
}

.pomar-footer nav a:hover,
.pomar-footer nav a:focus-visible,
.pomar-footer .pomar-footer__menu a:hover,
.pomar-footer .pomar-footer__menu a:focus-visible {
	color: var(--pomar-footer-accent) !important;
}

/* Menu légal */
.pomar-footer nav[aria-label="Legal information"] > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: flex-end;
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 640px) {
	.pomar-footer nav[aria-label="Legal information"] > ul {
		justify-content: flex-start;
	}
}
