/**
 * Bandeau de consentement aux traceurs.
 *
 * Les deux boutons ont volontairement le MEME poids visuel : meme taille, meme
 * hauteur, meme graisse. Un « Refuser » en lien gris a cote d'un « Accepter » en
 * bouton plein est exactement ce que la CNIL sanctionne.
 */

.jdp-consent {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 9999;
	background: var(--surface, #fff);
	border-top: 1px solid var(--border, #e6e2dc);
	box-shadow: 0 -8px 32px rgba(31, 32, 36, .12);
	padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
	animation: jdp-consent-in 260ms cubic-bezier(.23, 1, .32, 1);
}

.jdp-consent[hidden] { display: none; }

@keyframes jdp-consent-in {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.jdp-consent { animation: none; }
}

.jdp-consent-in {
	max-width: var(--container, 1200px);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.jdp-consent-txt { flex: 1 1 auto; min-width: 0; }

.jdp-consent-t {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--text, #1f2024);
}

.jdp-consent-d {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--text-muted, #5c5f66);
	max-width: 72ch;
}

.jdp-consent-d a {
	color: var(--accent, #e68a1c);
	text-decoration: underline;
}

.jdp-consent-btns {
	flex: 0 0 auto;
	display: flex;
	gap: 12px;
}

/* Meme geometrie pour les deux, seule la couleur distingue l'action principale. */
.jdp-consent-btn {
	min-width: 148px;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease;
}

.jdp-consent-btn:active { transform: scale(.97); }

.jdp-consent-btn:focus-visible {
	outline: 2px solid var(--accent, #e68a1c);
	outline-offset: 2px;
}

.jdp-consent-no {
	background: var(--surface, #fff);
	color: var(--text, #1f2024);
	border: 1.5px solid var(--text, #1f2024);
}

.jdp-consent-no:hover { background: #f2f0ec; }

.jdp-consent-ok {
	background: var(--text, #1f2024);
	color: #fff;
	border: 1.5px solid var(--text, #1f2024);
}

.jdp-consent-ok:hover { background: #33353b; }

/* Lien de revocation dans le pied de page. */
.jdp-consent-reopen {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-decoration: underline;
}

@media (max-width: 860px) {
	.jdp-consent-in {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}
	.jdp-consent-btns { flex-direction: column-reverse; }
	.jdp-consent-btn  { width: 100%; }
	.jdp-consent-d    { font-size: 13px; }
}
