/* ==========================================================================
   AHAP — Bannière de consentement cookies
   Identité : #29323d (anthracite), #f9f6fe / #ffffff, police Assistant.
   ========================================================================== */

.ahap-consent[hidden] { display: none !important; }

.ahap-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	padding: 16px;
	pointer-events: none;
	font-family: 'Assistant', sans-serif;
}

.ahap-consent__inner {
	pointer-events: auto;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 24px 32px;
	background: #ffffff;
	color: #29323d;
	border-top: 4px solid #29323d;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(41, 50, 61, 0.18), 0 0 4px rgba(0, 0, 0, 0.15);
	animation: ahap-consent-in .35s ease-out;
}

@keyframes ahap-consent-in {
	from { transform: translateY(24px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.ahap-consent__inner { animation: none; }
}

.ahap-consent__content { flex: 1 1 auto; min-width: 0; }

.ahap-consent .ahap-consent__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: #1e293b;
}

.ahap-consent .ahap-consent__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: #29323d;
}

.ahap-consent .ahap-consent__link {
	color: #29323d;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}
.ahap-consent .ahap-consent__link:hover,
.ahap-consent .ahap-consent__link:focus { color: rgba(41, 50, 61, 0.7); }

.ahap-consent__actions {
	flex: 0 0 auto;
	display: flex;
	gap: 12px;
}

/* Les deux boutons sont strictement identiques (même taille, même couleur, même poids). */
.ahap-consent .ahap-consent__btn,
.ahap-consent__btn.ahap-consent__btn--inline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	margin: 0;
	padding: 14px 32px;
	border: 2px solid #29323d;
	border-radius: 50px;
	background: #29323d;
	color: #ffffff;
	font-family: 'Assistant', sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease;
}
.ahap-consent .ahap-consent__btn:hover,
.ahap-consent__btn.ahap-consent__btn--inline:hover {
	background: #ffffff;
	color: #29323d;
	border-color: #29323d;
}
.ahap-consent .ahap-consent__btn:focus-visible,
.ahap-consent__btn.ahap-consent__btn--inline:focus-visible,
.ahap-consent .ahap-consent__link:focus-visible {
	outline: 3px solid #557dbc;
	outline-offset: 3px;
}

@media (max-width: 921px) {
	.ahap-consent__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 20px;
	}
	.ahap-consent__actions { width: 100%; }
	.ahap-consent .ahap-consent__btn { flex: 1 1 0; min-width: 0; padding: 14px 16px; }
}
@media (max-width: 544px) {
	.ahap-consent { padding: 10px; }
	.ahap-consent .ahap-consent__text { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   Liens légaux du pied de page
   -------------------------------------------------------------------------- */
.ahap-footer-legal {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-left: 14px;
}
.ahap-footer-legal a,
.ast-footer-copyright .ahap-footer-legal a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ahap-footer-legal a:hover,
.ahap-footer-legal a:focus { opacity: .75; }
@media (max-width: 544px) {
	.ahap-footer-legal { display: flex; justify-content: center; margin: 8px 0 0; }
}

/* --------------------------------------------------------------------------
   Page Politique de confidentialité (en-tête fixe transparent)
   -------------------------------------------------------------------------- */
.ahap-legal-page #primary,
.ahap-legal-page .site-main {
	max-width: 860px;
	margin: 0 auto !important;
	padding: 150px 24px 80px !important;
}
.ahap-legal-page .entry-title { font-size: 48px; line-height: 1.2; margin-bottom: .6em; }
.ahap-legal-page .entry-content h2 { font-size: 28px; margin: 1.8em 0 .6em; }
.ahap-legal-page .entry-content h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.ahap-legal-page .entry-content a { text-decoration: underline; }
.ahap-legal-page .entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1em 0 1.5em; }
.ahap-legal-page .entry-content th,
.ahap-legal-page .entry-content td { border: 1px solid #e2e5ea; padding: 10px 12px; text-align: left; vertical-align: top; }
.ahap-legal-page .entry-content th { background: #F2F5F7; font-weight: 600; }
@media (max-width: 921px) {
	.ahap-legal-page #primary,
	.ahap-legal-page .site-main { padding-top: 120px !important; }
	.ahap-legal-page .entry-title { font-size: 34px; }
	.ahap-legal-page .entry-content table { display: block; overflow-x: auto; }
}
