/* Pasta Bianca · bandeau cookies
   Charte reprise du theme : fond #323232, accent #8ab917,
   titres Barlow Condensed en capitales, texte Open Sans. */

.pbk {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
}
.pbk.pbk-cache { display: none; }

.pbk-fond {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}
.pbk.pbk-ouvert .pbk-fond { opacity: 1; pointer-events: auto; }

.pbk-boite {
	position: relative;
	pointer-events: auto;
	width: 100%;
	max-width: 1180px;
	margin: 0 16px 16px;
	background: #262626;
	border-top: 4px solid #8ab917;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
	color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	line-height: 1.55;
	transform: translateY(24px);
	opacity: 0;
	animation: pbk-entree .35s ease forwards;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-sizing: border-box;
}
@keyframes pbk-entree { to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.pbk-boite { animation: none; transform: none; opacity: 1; }
}

.pbk-principal,
.pbk-choix { padding: 26px 30px; }

/* rien ne doit deborder de la boite, quelle que soit la largeur */
.pbk-boite, .pbk-boite * { min-width: 0; overflow-wrap: break-word; }

.pbk-titre {
	font-family: 'Barlow Condensed', 'Open Sans', sans-serif;
	text-transform: uppercase;
	font-size: 26px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: .02em;
	margin: 0 0 10px;
	color: #fff;
}

.pbk-texte {
	margin: 0 0 18px;
	max-width: 78ch;
	color: #e6e6e6;
}

.pbk-lien {
	color: #8ab917;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.pbk-lien:hover, .pbk-lien:focus { color: #fff; }

/* Boutons : accepter et refuser ont exactement le meme poids visuel */
.pbk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.pbk-btn {
	font-family: 'Barlow Condensed', 'Open Sans', sans-serif;
	text-transform: uppercase;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1;
	padding: 14px 26px;
	border: 2px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.pbk-btn:focus-visible { outline: 3px solid #8ab917; outline-offset: 3px; }

.pbk-btn-oui { background: #8ab917; color: #fff; border-color: #8ab917; }
.pbk-btn-oui:hover { background: #fff; color: #262626; border-color: #fff; }

.pbk-btn-non { background: transparent; color: #fff; border-color: #fff; }
.pbk-btn-non:hover { background: #fff; color: #262626; }

.pbk-btn-plus {
	background: transparent;
	color: #e6e6e6;
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding-left: 8px;
	padding-right: 8px;
}
.pbk-btn-plus:hover { color: #8ab917; }

/* Panneau de reglages */
.pbk-cat {
	border-top: 1px solid #3d3d3d;
	padding: 16px 0;
}
.pbk-cat:first-of-type { border-top: 0; padding-top: 4px; }

.pbk-cat-tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.pbk-cat-nom {
	font-family: 'Barlow Condensed', 'Open Sans', sans-serif;
	text-transform: uppercase;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .02em;
	color: #fff;
}
label.pbk-cat-nom { cursor: pointer; }
.pbk-toujours {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #8ab917;
	white-space: nowrap;
}
.pbk-cat-texte { margin: 6px 0 0; color: #b9b9b9; font-size: 14px; max-width: 74ch; }

.pbk-choix .pbk-actions { margin-top: 20px; }

/* Interrupteur */
.pbk-bascule { position: relative; flex: 0 0 auto; cursor: pointer; }
.pbk-bascule input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}
.pbk-piste {
	display: block;
	width: 52px;
	height: 28px;
	border-radius: 999px;
	background: #4a4a4a;
	transition: background-color .2s ease;
}
.pbk-pastille {
	display: block;
	width: 22px;
	height: 22px;
	margin: 3px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s ease;
}
.pbk-bascule input:checked + .pbk-piste { background: #8ab917; }
.pbk-bascule input:checked + .pbk-piste .pbk-pastille { transform: translateX(24px); }
.pbk-bascule input:focus-visible + .pbk-piste { outline: 3px solid #8ab917; outline-offset: 3px; }

/* Le widget de reservation Zenchef s affiche en z-index 100000 et occupe
   tout l ecran sur mobile : on l ecarte tant que le choix n est pas fait,
   pour que le bandeau reste lisible et cliquable. Il revient ensuite. */
html.pbk-attente #zenchef-sdk { display: none !important; }

/* Carte bloquee tant que le visiteur n a pas accepte */
.pbk-bloque {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 260px;
	padding: 30px 24px;
	background: #262626;
	border: 1px solid #3d3d3d;
	color: #e6e6e6;
	text-align: center;
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	box-sizing: border-box;
}
.pbk-bloque p { margin: 0; max-width: 46ch; }

/* Lien de reouverture, ajoute dans le pied de page */
.pbk-rouvrir {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.pbk-rouvrir:hover { color: #8ab917; }

/* ---------- Tablette ---------- */
@media (max-width: 900px) {
	.pbk-principal, .pbk-choix { padding: 22px 24px; }
	.pbk-titre { font-size: 24px; }
	.pbk-boite { font-size: 14.5px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.pbk-boite {
		margin: 0;
		max-height: 92vh;
		border-top-width: 3px;
	}
	.pbk-principal, .pbk-choix { padding: 20px 18px 22px; }
	.pbk-titre { font-size: 22px; }
	.pbk-texte { margin-bottom: 16px; max-width: none; }
	.pbk-cat-texte { max-width: none; }
	.pbk-actions { flex-direction: column; align-items: stretch; gap: 8px; }
	.pbk-btn { width: 100%; padding: 15px 18px; font-size: 16px; }
	.pbk-btn-plus { padding: 10px; }
	.pbk-cat-tete { gap: 12px; }
	.pbk-cat-nom { font-size: 17px; }
	.pbk-bloque { min-height: 210px; padding: 24px 16px; }
}
