/* Styles propres à Papot.net (chargés après ceux de Foxiz). */

/* Logo : un JPEG à fond blanc (bandeau de l'en-tête, en-tête mobile, fenêtre de connexion).
   Coins arrondis comme les autres images. En mode sombre, c'est une carte blanche posée sur le
   bandeau, avec une ombre douce, au lieu d'un rectangle à angles vifs (Fabrice, 15/10/2026).
-------------------------------------------------------------------- */
/* Deux classes : « .elementor img { border-radius: 0; box-shadow: none } » d'Elementor, chargé
   après cette feuille, l'emporterait sur une seule. */
.papot-logo .the-logo img,
.logo-popup .logo-popup-logo img {
	border-radius: var(--round-5, 10px);
}

.header-mobile .mobile-logo-wrap img {
	border-radius: var(--round-3, 7px); /* logo plus petit : arrondi plus petit */
}

[data-theme="dark"] .papot-logo .the-logo img,
[data-theme="dark"] .header-mobile .mobile-logo-wrap img,
[data-theme="dark"] .logo-popup .logo-popup-logo img {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Agenda : affiches dans le bandeau blanc de l'en-tête, 4 cadres visibles
-------------------------------------------------------------------- */
.papot-agenda {
	--papot-ecart: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
}

.papot-agenda__liste {
	display: flex;
	flex: 1 1 auto;
	gap: var(--papot-ecart);
	min-width: 0;
	margin: 0;
	padding: 4px 2px 8px; /* place pour l'ombre des cadres */
	list-style: none;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.papot-agenda__liste::-webkit-scrollbar {
	display: none;
}

/* Toujours 4 cadres de même taille, quelle que soit la largeur du bandeau. */
.papot-agenda__affiche {
	display: flex;
	flex: 0 0 calc((100% - 3 * var(--papot-ecart)) / 4);
	flex-direction: column;
	gap: 7px;
	min-width: 0;
	scroll-snap-align: start;
}

.papot-agenda__affiche a {
	display: block;
	overflow: hidden;
	border: 1px solid #e3e6ea;
	border-radius: var(--round-5, 10px); /* même arrondi que les images du thème */
	background: #f3f5f7;
	box-shadow: 0 2px 10px rgba(16, 24, 40, 0.08);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.papot-agenda__affiche a:hover,
.papot-agenda__affiche a:focus-visible {
	box-shadow: 0 6px 18px rgba(16, 24, 40, 0.16);
	transform: translateY(-2px);
}

/* Deux classes : la règle « .elementor img { height: auto } » d'Elementor ne doit pas l'emporter. */
.papot-agenda .papot-agenda__affiche img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.35s ease;
}

.papot-agenda__affiche a:hover img,
.papot-agenda__affiche a:focus-visible img {
	transform: scale(1.04);
}

/* Affiches : entières dans le cadre 3:2, quel que soit leur format (portrait, carré, bannière),
   sur un fond tiré de l'affiche elle-même, agrandi et flouté. */
.papot-agenda__affiche a.papot-agenda__entiere {
	position: relative;
	aspect-ratio: 3 / 2;
	isolation: isolate;
	background: #0f172a;
}

.papot-agenda__fond {
	position: absolute;
	inset: -16px; /* le flou n'éclaircit pas les bords : ils sortent du cadre, coupés par l'arrondi */
	z-index: -1;
	background-position: center;
	background-size: cover;
	filter: blur(14px) brightness(0.72) saturate(1.15);
}

.papot-agenda .papot-agenda__affiche .papot-agenda__entiere img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: contain;
}

.papot-agenda__affiche a.papot-agenda__entiere:hover img,
.papot-agenda__affiche a.papot-agenda__entiere:focus-visible img {
	transform: scale(1.03);
}

/* Événement passé (Fabrice, 15/10/2026) : l'affiche reste, en couleurs atténuées, avec un badge
   « Expiré » en haut à gauche. Blanc sur ce fond translucide : 8,7:1 au pire (sur une affiche
   blanche). Le survol rend les couleurs, pour relire l'affiche. */
.papot-agenda__badge {
	position: absolute;
	top: 7px;
	left: 7px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px 3px 7px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.78);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	color: #fff;
	font-family: var(--cat-family, "Encode Sans", sans-serif); /* comme les étiquettes de rubrique */
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: 1.3;
	text-transform: uppercase;
	pointer-events: none;
}

.papot-agenda__badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f87171;
}

.papot-agenda .papot-agenda__affiche .papot-agenda__entiere--expire img {
	filter: grayscale(0.85) brightness(0.95);
	transition: filter 0.3s ease, transform 0.35s ease;
}

.papot-agenda__entiere--expire .papot-agenda__fond {
	filter: blur(14px) brightness(0.6) grayscale(1);
}

.papot-agenda .papot-agenda__affiche .papot-agenda__entiere--expire:hover img,
.papot-agenda .papot-agenda__affiche .papot-agenda__entiere--expire:focus-visible img {
	filter: none;
}

/* #1f2937 sur blanc : 14,68:1. */
.papot-agenda__legende {
	display: -webkit-box;
	overflow: hidden;
	color: #1f2937;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Flèches : rondes, blanches, chevron marine (14,34:1) ; inversées au survol. */
.papot-agenda__fleche {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0 0 2px;
	border: 1px solid #dfe3e8;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(16, 24, 40, 0.12);
	color: #012761;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.papot-agenda__fleche:hover,
.papot-agenda__fleche:focus-visible {
	border-color: #012761;
	background: #012761;
	color: #fff;
}

.papot-agenda--tient .papot-agenda__fleche {
	visibility: hidden;
}

/* Mode sombre du thème : fond du bandeau #051d2b, légendes claires (12,72:1). */
[data-theme="dark"] .papot-agenda__affiche a {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: none;
}

[data-theme="dark"] .papot-agenda__legende {
	color: #d7dee6;
}

[data-theme="dark"] .papot-agenda__fleche {
	border-color: rgba(255, 255, 255, 0.2);
	background: transparent;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.papot-agenda__liste {
		scroll-behavior: auto;
	}

	.papot-agenda__affiche a,
	.papot-agenda .papot-agenda__affiche img {
		transition: none;
	}
}

/* Visionneuse : l'affiche en grand, avec sa légende
-------------------------------------------------------------------- */
.papot-visionneuse {
	max-width: 92vw;
	max-height: 92vh;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
}

.papot-visionneuse::backdrop {
	background: rgba(0, 0, 0, 0.88);
}

.papot-visionneuse__cadre {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.papot-visionneuse__cadre img {
	display: block;
	width: auto;
	max-width: 92vw;
	height: auto;
	max-height: 82vh;
	border-radius: 4px;
}

.papot-visionneuse__cadre figcaption {
	max-width: 70ch;
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 16px;
	line-height: 1.4;
	text-align: center;
}

/* Foxiz place un trait devant chaque légende d'image. */
.papot-visionneuse__cadre figcaption::before {
	display: none;
}

.papot-visionneuse__bouton {
	position: fixed;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 30px;
	line-height: 46px;
	cursor: pointer;
}

.papot-visionneuse__bouton:hover,
.papot-visionneuse__bouton:focus-visible {
	background: rgba(255, 255, 255, 0.32);
}

.papot-visionneuse__fermer {
	top: 16px;
	right: 16px;
}

.papot-visionneuse__prec,
.papot-visionneuse__suiv {
	top: 50%;
	transform: translateY(-50%);
}

.papot-visionneuse__prec {
	left: 16px;
}

.papot-visionneuse__suiv {
	right: 16px;
}

.papot-visionneuse--seule .papot-visionneuse__prec,
.papot-visionneuse--seule .papot-visionneuse__suiv {
	display: none;
}

/* Extraits des articles dans les listes : 1 px de plus que le réglage du thème (Fabrice,
   15/10/2026), soit 15 px sur ordinateur et tablette et 14 px sur mobile. La variable
   --excerpt-fsize reste intacte : elle sert aussi aux commentaires et aux biographies.
-------------------------------------------------------------------- */
.p-wrap .entry-summary {
	font-size: calc(var(--excerpt-fsize, 14px) + 1px);
}

/* Sondages (inc/sondages.php), sur le modèle de Linfodrome, aux couleurs de Papot : carte bleu
   marine #012761 avec un halo orange, bouton orange foncé #C45200 (texte blanc 4,61:1). Le texte
   blanc reste sur le fond sombre : 7,5:1 au pire, dans le coin orangé.
-------------------------------------------------------------------- */
.papot-sondage,
.papot-sondages__carte {
	position: relative;
	border-radius: var(--round-7, 15px);
	background:
		radial-gradient(120% 90% at 100% 100%, rgba(230, 96, 0, 0.55) 0%, rgba(230, 96, 0, 0) 62%),
		linear-gradient(160deg, #012761 0%, #021b45 100%);
	box-shadow: 0 6px 22px rgba(1, 39, 97, 0.22);
	color: #fff;
}

.papot-sondage {
	padding: 20px 20px 18px;
}

.papot-sondage-widget {
	margin-bottom: 30px;
}

.papot-sondage--page {
	max-width: 680px;
	margin: 0 0 28px;
	padding: 24px;
}

.papot-sondage .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.papot-sondage__surtitre {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 11px;
	border-radius: 999px;
	background: #c45200;
	font-family: var(--cat-family, "Encode Sans", sans-serif);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.papot-sondage__question {
	margin: 0 0 4px;
	color: #fff;
	font-size: 18px;
	line-height: 1.3;
}

.papot-sondage__question a {
	color: inherit;
}

.papot-sondage__question a:hover,
.papot-sondage__question a:focus-visible {
	text-decoration: underline;
}

.papot-sondage__total {
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.82);
	font-family: var(--cat-family, "Encode Sans", sans-serif);
	font-size: 12px;
}

.papot-sondage fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.papot-sondage__choix {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: var(--round-5, 10px);
	color: #fff;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.papot-sondage__choix:hover {
	background: rgba(255, 255, 255, 0.08);
}

.papot-sondage__choix:has(input:checked) {
	border-color: #ffb27a;
	background: rgba(230, 96, 0, 0.22);
}

.papot-sondage__choix input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #e66000;
}

.papot-sondage__bouton {
	width: 100%;
	margin-top: 6px;
	padding: 11px 16px;
	border: 0;
	border-radius: 999px;
	background: #c45200;
	color: #fff;
	font-family: var(--cat-family, "Encode Sans", sans-serif);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.papot-sondage__bouton:hover {
	background: #a84600;
}

.papot-sondage__bouton:focus-visible,
.papot-sondage__lien:focus-visible,
.papot-sondages__bouton:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.papot-sondage__bouton:disabled {
	opacity: 0.6;
	cursor: wait;
}

.papot-sondage__message,
.papot-sondage__note {
	min-height: 1em;
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
}

.papot-sondage__resultats {
	margin: 0;
	padding: 0;
	list-style: none;
}

.papot-sondage__resultat {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 10px;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.35;
}

.papot-sondage__part {
	font-weight: 700;
}

.papot-sondage__barre {
	grid-column: 1 / -1;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
}

.papot-sondage__barre span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #e66000, #ff9a4d);
}

.papot-sondage__resultat--choisi .papot-sondage__libelle {
	font-weight: 700;
}

.papot-sondage__votre-choix {
	color: rgba(255, 255, 255, 0.75);
	font-size: 12px;
	font-weight: 400;
}

.papot-sondage__lien,
.papot-sondages__bouton {
	display: block;
	margin-top: 14px;
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	color: #fff;
	font-family: var(--cat-family, "Encode Sans", sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-align: center;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.papot-sondage__lien:hover,
.papot-sondages__bouton:hover {
	background: #fff;
	color: #012761;
}

/* Page « Sondages » : une carte par sondage. */
.papot-sondages {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.papot-sondages__carte {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 6px 20px;
	padding: 22px 24px;
}

.papot-sondages__question {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
}

.papot-sondages__question a {
	color: #fff;
}

.papot-sondages__infos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-family: var(--cat-family, "Encode Sans", sans-serif);
	font-size: 12px;
}

.papot-sondages__etat {
	padding: 2px 9px;
	border-radius: 999px;
	background: rgba(46, 204, 113, 0.22);
	color: #d6f5e2;
	font-weight: 700;
}

.papot-sondages__etat--clos {
	background: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.85);
}

.papot-sondages__bouton {
	margin-top: 0;
	white-space: nowrap;
}

@media (max-width: 560px) {
	.papot-sondages__carte {
		grid-template-columns: 1fr;
	}
}

/* Mode sombre : un liseré sépare la carte du fond sombre de la page. */
[data-theme="dark"] .papot-sondage,
[data-theme="dark"] .papot-sondages__carte {
	box-shadow: none;
	outline: 1px solid rgba(255, 255, 255, 0.12);
}

/* Publicité (inc/publicite.php) : encarts d'attente dans les blocs « Ad Script » d'Elementor, aux
   emplacements de la démo Focus, sous l'étiquette « - Publicité - » du thème. Décor dans l'esprit
   des visuels de la démo (nuit bleue, ville lumineuse, bouton jaune), aux couleurs de Papot : dégradé
   bleu marine #012761, halos orange #E66000, sphères en relief, sol de points en perspective,
   silhouette du Plateau. Texte blanc sur le bleu : 12:1 au moins ; bouton #FFEC00 (le jaune des
   boutons du site) et texte #0b1430 : 16:1.
-------------------------------------------------------------------- */

/* Le thème entoure le code de 20 px de chaque côté (.edge-padding) : l'encart prend toute la colonne,
   comme les images de la démo. */
.elementor-widget-foxiz-ad-script .ad-script.edge-padding {
	padding-right: 0;
	padding-left: 0;
}

.papot-pub {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	isolation: isolate;
	padding: 22px 20px 18px;
	border-radius: var(--round-5, 10px);
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(230, 96, 0, 0.5) 0%, rgba(230, 96, 0, 0) 55%),
		radial-gradient(90% 70% at 0% 100%, rgba(58, 108, 240, 0.55) 0%, rgba(58, 108, 240, 0) 60%),
		linear-gradient(165deg, #0b2f86 0%, #031a5e 42%, #010a2b 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(1, 20, 70, 0.3);
	color: #fff;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Particules de lumière, comme dans la démo. */
.papot-pub::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		radial-gradient(1.6px 1.6px at 12% 16%, #fff 50%, transparent 100%),
		radial-gradient(1.2px 1.2px at 34% 8%, rgba(255, 255, 255, 0.85) 50%, transparent 100%),
		radial-gradient(1.4px 1.4px at 58% 22%, #ffd9a0 50%, transparent 100%),
		radial-gradient(1.2px 1.2px at 76% 12%, rgba(255, 255, 255, 0.8) 50%, transparent 100%),
		radial-gradient(1.8px 1.8px at 88% 36%, #9fc0ff 50%, transparent 100%),
		radial-gradient(1.2px 1.2px at 22% 42%, rgba(159, 192, 255, 0.9) 50%, transparent 100%),
		radial-gradient(1.4px 1.4px at 46% 48%, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
		radial-gradient(1.2px 1.2px at 68% 54%, #ffd9a0 50%, transparent 100%),
		radial-gradient(1.6px 1.6px at 6% 64%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
	content: "";
	animation: papot-scintille 5s ease-in-out infinite alternate;
	pointer-events: none;
}

.papot-pub:hover,
.papot-pub:focus-visible {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 36px rgba(1, 20, 70, 0.42);
	color: #fff;
	transform: translateY(-2px);
}

.papot-pub:focus-visible {
	outline: 3px solid #ffec00;
	outline-offset: 3px;
}

/* Décor : sol de points en perspective, ville, sphères. */
.papot-pub__scene {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

/* Lueur orange au pied de la ville, et ligne d'horizon lumineuse. */
.papot-pub__scene::before {
	position: absolute;
	right: -10%;
	bottom: -20%;
	left: -10%;
	height: 60%;
	background: radial-gradient(50% 50% at 50% 70%, rgba(255, 122, 26, 0.45) 0%, rgba(255, 122, 26, 0) 100%);
	content: "";
}

.papot-pub__scene::after {
	position: absolute;
	right: 0;
	bottom: 12%;
	left: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, #6d9bff 22%, #ffd9a0 50%, #ff8a2a 72%, transparent 100%);
	box-shadow: 0 0 12px 2px rgba(255, 154, 77, 0.55);
	content: "";
	opacity: 0.85;
}

.papot-pub__sol {
	position: absolute;
	right: -40%;
	bottom: -2%;
	left: -40%;
	height: 40%;
	background-image: radial-gradient(circle, rgba(159, 192, 255, 0.95) 1.2px, transparent 1.9px);
	background-size: 16px 16px;
	-webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
	mask-image: linear-gradient(to top, #000 10%, transparent 90%);
	opacity: 0.6;
	transform: perspective(200px) rotateX(62deg);
	transform-origin: 50% 100%;
	animation: papot-sol 4s linear infinite;
}

.papot-pub__ville {
	position: absolute;
	right: 0;
	bottom: 12%;
	left: 0;
	width: 100%;
	height: 34%;
	filter: drop-shadow(0 0 10px rgba(58, 108, 240, 0.6));
}

.papot-pub__orbe {
	position: absolute;
	border-radius: 50%;
	animation: papot-flotte 6s ease-in-out infinite alternate;
}

.papot-pub__orbe--orange {
	top: 28%;
	right: 9%;
	width: 40px;
	height: 40px;
	background: radial-gradient(circle at 32% 28%, #fff1df 0%, #ffb067 16%, #e66000 50%, #8a2c00 84%, #4a1500 100%);
	box-shadow: 0 12px 26px rgba(230, 96, 0, 0.5), inset -5px -7px 12px rgba(0, 0, 0, 0.3);
}

.papot-pub__orbe--bleue {
	top: 50%;
	right: 34%;
	width: 18px;
	height: 18px;
	background: radial-gradient(circle at 32% 28%, #fff 0%, #a9c4ff 20%, #3a6cf0 55%, #0d2a8a 92%);
	box-shadow: 0 6px 14px rgba(58, 108, 240, 0.55);
	animation-delay: -3s;
	animation-duration: 7s;
}

/* Contenu, au-dessus du décor. */
.papot-pub__texte,
.papot-pub__appel,
.papot-pub__taille,
.papot-pub__carte {
	position: relative;
	z-index: 1;
}

.papot-pub__texte {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.papot-pub__taille {
	position: absolute;
	top: 9px;
	right: 12px;
	color: rgba(255, 255, 255, 0.62);
	font-family: var(--cat-family, "Encode Sans", sans-serif);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
}

.papot-pub__marque {
	font-family: var(--h1-family, "Encode Sans Condensed", sans-serif);
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1;
	text-shadow: 0 2px 0 rgba(1, 10, 43, 0.6), 0 10px 22px rgba(0, 0, 0, 0.45);
}

.papot-pub__marque span {
	background: linear-gradient(180deg, #ffd0a1 0%, #ff8a2a 55%, #e66000 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 2px 0 rgba(1, 10, 43, 0.6));
	text-shadow: none;
}

.papot-pub__titre {
	color: rgba(255, 255, 255, 0.92);
	font-family: var(--cat-family, "Encode Sans", sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.papot-pub__detail {
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	line-height: 1.45;
}

/* Bouton jaune en relief. */
.papot-pub__appel {
	align-self: flex-start;
	margin-top: auto;
	padding: 9px 16px;
	border-radius: 999px;
	background: linear-gradient(180deg, #fff56a 0%, #ffec00 45%, #f0c400 100%);
	box-shadow: 0 6px 16px rgba(255, 214, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(0, 0, 0, 0.14);
	color: #0b1430;
	font-family: var(--cat-family, "Encode Sans", sans-serif);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.papot-pub:hover .papot-pub__appel,
.papot-pub:focus-visible .papot-pub__appel {
	box-shadow: 0 10px 22px rgba(255, 214, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(0, 0, 0, 0.14);
	transform: translateY(-1px);
}

/* Pavé 300 × 250 (accueil). Sur tablette, quand la colonne passe sous la liste, les pavés gardent
   400 px au plus, comme les images de la démo. */
.papot-pub--pave,
.papot-pub--grand {
	max-width: 400px;
	margin-right: auto;
	margin-left: auto;
}

.papot-pub--pave {
	min-height: 250px;
}

/* Grand pavé 300 × 600 : marque, carte de verre inclinée en 3D, ville et bouton. */
.papot-pub--grand {
	min-height: 470px;
	padding: 30px 22px 22px;
}

.papot-pub--grand .papot-pub__marque {
	font-size: 40px;
}

.papot-pub--grand .papot-pub__titre {
	font-family: var(--h3-family, "Encode Sans Condensed", sans-serif);
	font-size: 20px;
	line-height: 1.2;
}

.papot-pub--grand .papot-pub__orbe--orange {
	top: 40%;
	right: 6%;
	width: 58px;
	height: 58px;
}

.papot-pub--grand .papot-pub__orbe--bleue {
	top: 63%;
	right: auto;
	left: 9%;
	width: 24px;
	height: 24px;
}

.papot-pub--grand .papot-pub__ville {
	height: 24%;
}

.papot-pub__carte {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 70%;
	margin: 16px auto 22px;
	padding: 14px 16px 16px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 100%);
	box-shadow: 0 22px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transform: perspective(600px) rotateY(-16deg) rotateX(8deg);
	animation: papot-carte 7s ease-in-out infinite alternate;
}

.papot-pub__carte-titre {
	font-family: var(--h3-family, "Encode Sans Condensed", sans-serif);
	font-size: 18px;
	font-weight: 800;
}

.papot-pub__carte-ligne {
	display: block;
	height: 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
}

.papot-pub__carte-ligne--courte {
	width: 62%;
	background: linear-gradient(90deg, #ffb067, #e66000);
}

.papot-pub--grand .papot-pub__appel {
	align-self: stretch;
	padding: 12px 16px;
	font-size: 14px;
	text-align: center;
}

/* Bannière 728 × 90 (accueil, haut des rubriques) : marque à gauche, ville au centre, bouton à droite. */
.papot-pub--banniere {
	flex-direction: row;
	align-items: center;
	gap: 18px;
	max-width: 728px;
	min-height: 90px;
	margin: 0 auto;
	padding: 12px 20px;
}

.papot-pub--banniere .papot-pub__texte {
	flex: 1 1 auto;
	gap: 4px;
}

.papot-pub--banniere .papot-pub__marque {
	font-size: 26px;
}

.papot-pub--banniere .papot-pub__titre {
	font-size: 13px;
}

.papot-pub--banniere .papot-pub__appel {
	flex: 0 0 auto;
	align-self: center;
	margin-top: 0;
}

/* La ville tient entre la marque et le bouton, et s'efface sur ses bords. */
.papot-pub--banniere .papot-pub__ville {
	right: auto;
	bottom: 0;
	left: 38%;
	width: 300px;
	height: 80%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.papot-pub--banniere .papot-pub__scene::after {
	bottom: 0;
}

.papot-pub--banniere .papot-pub__sol {
	display: none;
}

.papot-pub--banniere .papot-pub__orbe--orange {
	top: 14%;
	right: 37%;
	width: 30px;
	height: 30px;
}

.papot-pub--banniere .papot-pub__orbe--bleue {
	top: 58%;
	right: 52%;
	width: 12px;
	height: 12px;
}

.papot-pub--banniere .papot-pub__taille {
	top: 6px;
	right: 10px;
}

@media (max-width: 767px) {
	/* Bannière sur mobile (320 × 100) : le bouton passe sous la marque. */
	.papot-pub--banniere {
		flex-wrap: wrap;
		gap: 10px;
		padding: 16px;
	}

	.papot-pub--banniere .papot-pub__texte {
		flex-basis: 100%;
	}

	.papot-pub--banniere .papot-pub__marque {
		font-size: 24px;
	}

	.papot-pub--banniere .papot-pub__taille {
		display: none;
	}

	.papot-pub--banniere .papot-pub__ville {
		right: 0;
		left: auto;
		width: 220px;
		height: 60%;
	}

	.papot-pub--banniere .papot-pub__appel {
		align-self: flex-start;
		padding: 8px 14px;
		font-size: 12px;
	}
}

/* Mode sombre : un liseré sépare l'encart du fond de la page. */
[data-theme="dark"] .papot-pub {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

@keyframes papot-sol {
	to {
		background-position: 0 16px;
	}
}

@keyframes papot-flotte {
	to {
		transform: translateY(-7px);
	}
}

@keyframes papot-scintille {
	to {
		opacity: 0.45;
	}
}

@keyframes papot-carte {
	to {
		transform: perspective(600px) rotateY(-10deg) rotateX(4deg) translateY(-4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.papot-pub,
	.papot-pub::before,
	.papot-pub__sol,
	.papot-pub__orbe,
	.papot-pub__carte,
	.papot-pub__appel {
		animation: none;
		transition: none;
	}
}

/* Publicité en place (écran « Publicités », inc/publicite-ecran.php) : l'image de l'annonceur sous
   l'étiquette « - Publicité - », aux coins du site. Pavés : 400 px au plus quand la colonne passe
   sous la liste, comme les encarts d'attente. */
.papot-annonce .ad-image {
	display: inline-block;
	width: 100%;
	overflow: hidden;
	border-radius: var(--round-5, 10px);
	line-height: 0;
	vertical-align: top;
}

.papot-annonce .papot-annonce__image {
	display: block;
	width: 100%;
	height: auto;
}

.papot-annonce--pave .ad-image,
.papot-annonce--grand .ad-image {
	max-width: 400px;
}

.papot-annonce--banniere .ad-image {
	max-width: 728px;
}
