/* JP Site · Partager ce mot : la fenêtre du générateur de visuel. */
.jp-p { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: Archivo, system-ui, sans-serif; color: #f4f2ee; }
.jp-p[hidden] { display: none; }
.jp-p-voile { position: absolute; inset: 0; background: rgba(20, 21, 22, .78); }
.jp-p-panneau { position: relative; background: #17181a; width: min(980px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: grid; grid-template-columns: minmax(0, 1fr) 360px; overflow: hidden; }
/* Croix de fermeture dessinée (deux traits centrés), sans fond, ronde au survol (1.20.5) */
.jp-p-panneau .jp-p-fermer { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; color: #f4f2ee; font-size: 0; line-height: 0; cursor: pointer; transition: background .2s, color .2s; }
.jp-p-panneau .jp-p-fermer::before, .jp-p-panneau .jp-p-fermer::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; background: currentColor; border-radius: 1px; transform: rotate(45deg); }
.jp-p-panneau .jp-p-fermer::after { transform: rotate(-45deg); }
.jp-p-panneau .jp-p-fermer:hover { background: rgba(244, 242, 238, .1); color: #e0a526; }
.jp-p-panneau .jp-p-fermer:focus-visible { outline: 2px solid #e0a526; outline-offset: 2px; }
.jp-p-apercu { background: #0f1012; display: flex; align-items: center; justify-content: center; padding: 28px; min-height: 0; }
.jp-p-apercu canvas { max-width: 100%; max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); width: auto; height: auto; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); background: #1f2022; }
.jp-p-reglages { padding: 28px 24px 24px; overflow: auto; }
.jp-p-titre { margin: 0 0 6px; padding-right: 52px; font-weight: 800; font-size: 28px; line-height: 1; font-variation-settings: "wdth" 72; }
.jp-p-sous { margin: 0 0 18px; font-size: 14px; line-height: 1.45; color: #a7a49c; }
.jp-p-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #a7a49c; margin: 18px 0 8px; }
.jp-p-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.jp-p-choix button { border: 1px solid #f4f2ee; background: transparent; padding: 10px 12px; font: 600 13px/1 Archivo, sans-serif; cursor: pointer; color: #f4f2ee; border-radius: 0; }
.jp-p-choix button.on { background: #f4f2ee; color: #141516; }
.jp-p-fonds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.jp-p-fonds button { border: 2px solid transparent; padding: 0; background: #000; height: 52px; cursor: pointer; overflow: hidden; position: relative; border-radius: 0; }
.jp-p-fonds button.on { border-color: #e0a526; }
.jp-p-fonds button:focus-visible, .jp-p-choix button:focus-visible, .jp-p-btn:focus-visible { outline: 2px solid #e0a526; outline-offset: 2px; }
.jp-p-fonds img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jp-p-uni { display: block; width: 100%; height: 100%; box-shadow: inset 0 0 0 1px #d8d3c7; }
.jp-p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jp-p-btn { display: inline-block; padding: 14px 18px; background: #e0a526; color: #141516; font: 700 14px/1 Archivo, sans-serif; letter-spacing: .02em; border: 0; cursor: pointer; border-radius: 0; }
.jp-p-btn-sombre { background: #f4f2ee; color: #141516; }
.jp-p-btn-trait { background: transparent; border: 1px solid #f4f2ee; color: #f4f2ee; padding: 13px 17px; }
.jp-p-ok { margin: 12px 0 0; min-height: 1.4em; font-size: 13px; font-weight: 600; color: #e0a526; }
body.jp-p-ouvert { overflow: hidden; }

@media (max-width: 760px) {
	.jp-p { padding: 0; align-items: stretch; }
	.jp-p-panneau { display: block; width: 100%; max-height: none; height: 100vh; height: 100dvh; overflow: auto; }
	.jp-p-apercu { padding: 48px 20px 16px; }
	.jp-p-apercu canvas { max-width: 100%; max-height: 46vh; max-height: 46dvh; box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .5); }
	.jp-p-reglages { padding: 16px 16px 28px; overflow: visible; }
	.jp-p-titre { font-size: 24px; }
	.jp-p-btn { padding: 13px 15px; }
}

/* Carrousel des trois cartes (11/11/2026) */
.jp-p-bloc[hidden], .jp-p-bande[hidden], .jp-p-apercu canvas[hidden] { display: none !important; }
.jp-p-bande { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; align-items: center; }
.jp-p-apercu .jp-p-bande canvas { width: 100%; height: auto; max-height: none; }
@media (max-width: 760px) {
	.jp-p-bande { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; }
	.jp-p-apercu .jp-p-bande canvas { flex: 0 0 72%; max-height: none; scroll-snap-align: center; }
}
@media (min-width: 761px) { .jp-p-panneau:has(.jp-p-apercu-carrousel) { width: min(1280px, 100%); } }
@media (max-width: 760px) { .jp-p-apercu .jp-p-bande canvas { width: 76% !important; max-width: none; } }

/* Fond par image dans le carrousel, et fond « Comme la carte » (19/11/2026, 1.21.0) */
.jp-p-apercu .jp-p-bande canvas { cursor: pointer; outline: 3px solid transparent; outline-offset: 4px; transition: outline-color .2s, opacity .2s; opacity: .72; }
.jp-p-apercu .jp-p-bande canvas.on { outline-color: #e0a526; opacity: 1; }
.jp-p-apercu .jp-p-bande canvas:focus-visible { outline-color: #f4f2ee; }
.jp-p-fonds .jp-p-fond-carte { grid-column: span 2; background: linear-gradient(90deg, #141516 0 33.3%, #f3f0e9 33.3% 66.6%, #3a4652 66.6%); }
.jp-p-fonds .jp-p-fond-carte[hidden] { display: none; }
.jp-p-fond-carte span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(15, 16, 18, .82); color: #f4f2ee; font: 600 11px/1.2 Archivo, sans-serif; text-align: left; }
.jp-p-reglages .jp-p-tous { display: inline-block; margin: 10px 0 0; padding: 0 0 2px; background: none; border: 0; border-bottom: 2px solid #e0a526; color: #f4f2ee; font: 600 13px/1.3 Archivo, sans-serif; cursor: pointer; }
.jp-p-reglages .jp-p-tous[hidden] { display: none; }

/* Ordinateur (1.24.14) : avec 48 fonds, la colonne des réglages dépassait la hauteur de l'écran ; la ligne de la grille
   s'allongeait, l'aperçu descendait et se faisait couper, et les boutons sortaient de la fenêtre. La ligne est limitée
   à la hauteur de la fenêtre, les réglages défilent seuls et les boutons restent collés en bas. Téléphone inchangé. */
@media (min-width: 761px) {
	.jp-p-panneau { grid-template-rows: minmax(0, 1fr); }
	.jp-p-apercu, .jp-p-reglages { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
	.jp-p-reglages { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0; }
	.jp-p-reglages .jp-p-actions { position: sticky; bottom: 30px; z-index: 1; margin-top: 18px; padding: 14px 0 8px; background: #17181a; box-shadow: 0 -14px 18px -14px rgba(0, 0, 0, .7); }
	.jp-p-reglages .jp-p-ok { position: sticky; bottom: 0; z-index: 1; margin: 0; height: 30px; min-height: 0; line-height: 18px; padding: 0 0 12px; background: #17181a; }
}
