/* Fenêtre après un clic sur un PDF (inc/popup-pdf.php, assets/popup-pdf.js).
   Maquette : https://claude.ai/artifact/HbYsYw5TjaecEwZwmZFzJ4 */

.cam-pp {
	--encre: #1b1540;
	--texte: #3c3470;
	--creme: #fff8ec;
	--jaune: #ffc83d;
	--violet: #5b2bd6;
	box-sizing: border-box;
	width: min(1020px, calc(100vw - 40px));
	max-width: none;
	max-height: calc(100vh - 40px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	background: var(--creme);
	color: var(--encre);
	border: 4px solid var(--encre);
	border-radius: 32px;
	box-shadow: 10px 10px 0 var(--jaune), 10px 10px 0 4px var(--encre);
	font-family: Nunito, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.cam-pp *, .cam-pp *::before, .cam-pp *::after { box-sizing: border-box; }
.cam-pp::backdrop { background: rgba(15, 11, 38, .78); }
.cam-pp[open] { display: flex; animation: cam-pp-entree .25s ease-out; }
@keyframes cam-pp-entree { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cam-pp[open] { animation: none; } }
.cam-pp p, .cam-pp h2, .cam-pp ul { margin: 0; }

/* ---------- Visuel (colonne violette) ---------- */
.cam-pp__visuel {
	position: relative;
	flex: 0 0 430px;
	min-height: 600px;
	overflow: hidden;
	background: radial-gradient(120% 90% at 30% 15%, #4a35c9 0%, #2a1f78 45%, #1b1540 100%);
}
.cam-pp__cahier {
	position: absolute; left: 22px; top: 120px; width: 220px; height: auto;
	transform: rotate(-9deg); border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.cam-pp__fleche { position: absolute; left: 150px; top: 70px; width: 160px; height: 90px; color: var(--jaune); }
.cam-pp__tel {
	position: absolute; left: 196px; top: 150px; width: 215px; height: auto;
	transform: rotate(5deg); filter: drop-shadow(0 22px 30px rgba(0,0,0,.5));
}
.cam-pp__sticker {
	position: absolute; left: 26px; top: 24px; width: 118px; height: 118px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--jaune); border: 4px solid var(--encre);
	box-shadow: 4px 4px 0 var(--encre); transform: rotate(-12deg); text-align: center; color: var(--encre);
}
.cam-pp__sticker-grand { display: block; font-family: Fredoka, Nunito, sans-serif; font-weight: 700; font-size: 52px; line-height: .85; }
.cam-pp__sticker-petit { display: block; margin-top: 4px; font-weight: 900; font-size: 12px; line-height: 1.05; text-transform: uppercase; letter-spacing: .5px; }
.cam-pp__legende {
	position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
	font-family: Fredoka, Nunito, sans-serif; font-weight: 700; font-size: 20px; color: var(--creme);
}
.cam-pp__legende span { color: var(--jaune); }

/* ---------- Contenu ---------- */
.cam-pp__fermer {
	position: absolute; top: 18px; right: 18px; z-index: 2;
	width: 44px; height: 44px; padding: 0; border-radius: 22px;
	border: 2px solid var(--encre); background: #fff; color: var(--encre);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cam-pp__contenu { flex: 1; display: flex; flex-direction: column; gap: 15px; padding: 30px 40px 20px; overflow-y: auto; }
.cam-pp__entete { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
.cam-pp__appli {
	display: flex; align-items: center; gap: 8px; color: var(--violet);
	font-size: 14px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase;
}
.cam-pp__fiche {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	background: #fff; color: var(--encre); border: 2px solid var(--encre); border-radius: 999px;
	padding: 6px 14px; font-family: inherit; font-size: 14px; font-weight: 800;
	box-shadow: 2px 2px 0 var(--encre);
}
.cam-pp__fiche:hover, .cam-pp__fiche:focus-visible { background: #fff1c7; }
.cam-pp__titre {
	padding-right: 40px; font-family: Fredoka, Nunito, sans-serif; font-weight: 700;
	font-size: 37px; line-height: 1.05; letter-spacing: -.5px; color: var(--encre);
}
.cam-pp__titre mark {
	background: var(--jaune); color: inherit; padding: 0 8px; border-radius: 10px;
	box-shadow: 3px 3px 0 var(--encre); white-space: nowrap;
}
.cam-pp__texte { font-size: 18px; line-height: 1.45; color: var(--texte); }
.cam-pp__plus { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cam-pp__plus li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 800; }
.cam-pp__coche {
	flex-shrink: 0; width: 28px; height: 28px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	background: var(--jaune); border: 2px solid var(--encre); color: var(--encre);
}

.cam-pp__qr-bloc { display: flex; gap: 20px; align-items: center; margin-top: 4px; padding: 14px 18px 14px 14px; background: var(--encre); border-radius: 22px; }
.cam-pp__qr { flex-shrink: 0; width: 132px; height: 132px; padding: 9px; background: #fff; border-radius: 14px; }
.cam-pp__qr svg { display: block; width: 114px; height: 114px; }
.cam-pp__qr-texte { display: flex; flex-direction: column; gap: 6px; }
.cam-pp__qr-titre { font-family: Fredoka, Nunito, sans-serif; font-weight: 700; font-size: 23px; line-height: 1.1; color: var(--creme); }
.cam-pp__stores { display: flex; gap: 8px; margin-top: 2px; }
.cam-pp__store {
	display: inline-flex; flex-direction: column; justify-content: center;
	padding: 4px 10px; background: #000; color: #fff; border: 1px solid #8f88b8; border-radius: 8px;
	font-size: 16px; font-weight: 800; line-height: 1.05;
}
.cam-pp__store small { font-size: 10px; font-weight: 700; }
.cam-pp__pastille {
	align-self: flex-start; margin-top: 4px; padding: 5px 12px; border-radius: 999px;
	background: var(--jaune); color: var(--encre); font-size: 14px; font-weight: 900;
}

.cam-pp__installer, .cam-pp__mention { display: none; }
.cam-pp__installer {
	align-items: center; justify-content: center; gap: 10px; min-height: 60px; margin-top: 6px;
	background: var(--jaune); color: var(--encre); border: 3px solid var(--encre); border-radius: 18px;
	box-shadow: 0 5px 0 var(--encre); text-decoration: none;
	font-family: Fredoka, Nunito, sans-serif; font-weight: 700; font-size: 20px;
}
.cam-pp__installer:hover, .cam-pp__installer:focus-visible { color: var(--encre); filter: brightness(1.04); }
.cam-pp__mention { text-align: center; font-size: 14px; font-weight: 800; color: var(--texte); }
.cam-pp__non {
	align-self: flex-end; margin-top: auto; padding: 8px 4px; background: none; border: 0; cursor: pointer;
	font-family: inherit; font-size: 15px; font-weight: 700; color: var(--texte); text-decoration: underline;
}

/* ---------- Téléphone : feuille qui monte du bas ---------- */
@media (max-width: 760px) {
	.cam-pp {
		width: 100vw; max-height: calc(100vh - 34px); margin: auto 0 0;
		border: 0; border-radius: 30px 30px 0 0; box-shadow: none;
	}
	.cam-pp[open] { flex-direction: column; overflow-y: auto; }
	.cam-pp__ordi, .cam-pp__qr-bloc { display: none; }

	.cam-pp__visuel { flex: 0 0 auto; min-height: 0; width: 100%; aspect-ratio: 390 / 350; }
	.cam-pp__cahier { left: 5.1%; top: 28.6%; width: 40.5%; border-radius: 4px; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
	.cam-pp__fleche { left: 33.8%; top: 18.9%; width: 19%; height: auto; }
	.cam-pp__tel { left: 45.6%; top: 12.6%; width: 47.7%; filter: drop-shadow(0 16px 22px rgba(0,0,0,.55)); }
	.cam-pp__sticker { left: 3.6%; top: 5.7%; width: 78px; height: 78px; border-width: 3px; box-shadow: 3px 3px 0 var(--encre); }
	.cam-pp__sticker-grand { font-size: 34px; }
	.cam-pp__sticker-petit { font-size: 8.5px; margin-top: 2px; }
	.cam-pp__visuel::after {
		content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
		background: linear-gradient(to bottom, rgba(27,21,64,0), rgba(27,21,64,.85));
	}
	.cam-pp__legende { z-index: 1; bottom: 14px; font-size: 17px; }
	.cam-pp__fermer { top: 16px; right: 14px; }

	.cam-pp__contenu { flex: 0 0 auto; gap: 12px; padding: 20px 22px 24px; overflow: visible; }
	.cam-pp__entete { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
	.cam-pp__appli { font-size: 12px; letter-spacing: 1.1px; gap: 6px; }
	.cam-pp__fiche { font-size: 13px; padding: 5px 11px; gap: 6px; }
	.cam-pp__titre { padding-right: 0; font-size: 30px; line-height: 1.08; letter-spacing: -.3px; }
	.cam-pp__titre mark { padding: 0 6px; border-radius: 8px; box-shadow: none; }
	.cam-pp__texte { font-size: 16px; }
	.cam-pp__plus { gap: 9px; margin-top: 2px; }
	.cam-pp__plus li { font-size: 16px; gap: 10px; }
	.cam-pp__coche { width: 26px; height: 26px; }
	.cam-pp__installer { display: flex; }
	.cam-pp__mention { display: block; margin-top: 2px; }
	.cam-pp__non { align-self: center; margin-top: 0; padding: 6px 8px; }
}
