/* Bandeau de consentement aux cookies (includes/consentement.php, js/consentement.js).
   « Tout refuser » et « Tout accepter » ont volontairement le même style : la CNIL demande
   qu'il soit aussi simple de refuser que d'accepter. */

.phf-consentement {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	background: #fff;
	border-top: 3px solid #013e7e;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .15);
	font: 14px/1.5 "Open Sans", Arial, sans-serif;
	color: #222;
}
.phf-consentement[hidden] { display: none; }

.phf-consentement-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 20px;
}
.phf-consentement-texte { margin: 0; padding: 0; flex: 1; font-size: 14px; line-height: 1.5; }
.phf-consentement a { color: #013e7e; text-decoration: underline; }

.phf-consentement-boutons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.phf-consentement-btn {
	cursor: pointer;
	border: 2px solid #013e7e;
	background: #013e7e;
	color: #fff;
	font: 600 14px/1.2 "Open Sans", Arial, sans-serif;
	padding: 9px 16px;
	border-radius: 4px;
	white-space: nowrap;
}
.phf-consentement-btn:hover { background: #0B3257; border-color: #0B3257; }
.phf-consentement-btn:focus-visible { outline: 3px solid #de7022; outline-offset: 2px; }

.phf-consentement-btn-lien {
	background: transparent;
	color: #013e7e;
	border-color: transparent;
	text-decoration: underline;
	padding-left: 6px;
	padding-right: 6px;
}
.phf-consentement-btn-lien:hover { background: transparent; border-color: transparent; color: #0B3257; }

/* Fenêtre de personnalisation */
.phf-consentement-choix {
	max-width: 560px;
	width: calc(100% - 32px);
	border: 0;
	border-radius: 6px;
	padding: 24px;
	font: 14px/1.5 "Open Sans", Arial, sans-serif;
	color: #222;
}
.phf-consentement-choix::backdrop { background: rgba(0, 0, 0, .45); }
.phf-consentement-choix h2 { margin: 0 0 10px; padding: 0; font-size: 20px; color: #013e7e; background: none; text-align: left; }
.phf-consentement-choix p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.phf-consentement-choix a { color: #013e7e; }

.phf-consentement-ligne {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 0;
	border-top: 1px solid #dbe6f3;
}
.phf-consentement-ligne input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #013e7e; }
.phf-consentement-ligne label { cursor: pointer; }
.phf-consentement-ligne span { color: #555; font-size: 13px; }
.phf-consentement-politique { border-top: 1px solid #dbe6f3; padding-top: 12px; }

/* Lien « Gérer les cookies » du pied de page : un bouton qui ressemble aux liens voisins */
.phf-cookies-gerer {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 768px) {
	.phf-consentement-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px; }
	.phf-consentement-texte { font-size: 13px; }
	.phf-consentement-boutons { justify-content: space-between; }
	.phf-consentement-btn { flex: 1; }
	.phf-consentement-btn-lien { flex: 0 0 100%; order: 3; }
	.phf-consentement-choix .phf-consentement-boutons .phf-consentement-btn { flex: 1 0 100%; }
}
