.pak-wrap { max-width: 860px; margin: 0 auto; }
.pak-notice { padding: .8em 1em; border-radius: 6px; margin: 0 0 1.2em; border-left: 4px solid; }
.pak-notice a { font-weight: 600; margin-left: .4em; }
.pak-ok  { background: #e8f6ee; border-color: #2e9e5b; color: #14532d; }
.pak-err { background: #fdecec; border-color: #d33; color: #7a1010; }

.pak-filters { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: 1.5em; }
.pak-filters input, .pak-filters select { flex: 1 1 160px; min-width: 0; }
.pak-filters input[name="pak_dept"] { flex: 0 1 140px; }

.pak-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1em; }
.pak-card { border: 1px solid #dcdcde; border-radius: 8px; padding: 1em 1.2em; background: #fff; display: flex; gap: 1em; align-items: flex-start; }
.pak-card-body { flex: 1 1 auto; min-width: 0; }
.pak-thumb { flex: 0 0 140px; display: block; }
.pak-thumb img { display: block; width: 140px; height: 105px; object-fit: cover; border-radius: 6px; }
.pak-card h3 { margin: .4em 0 .3em; font-size: 1.15em; }
.pak-card p { margin: .3em 0; }
.pak-badge { display: inline-block; font-size: .75em; padding: .2em .7em; border-radius: 999px; background: #e6f0fa; color: #14436b; font-weight: 600; }
.pak-meta { color: #646970; font-size: .9em; }
.pak-meta span { margin-right: 1em; }
.pak-empty { color: #646970; }
.pak-pagination { margin-top: 1.5em; }
.pak-pagination .page-numbers { display: inline-block; padding: .3em .7em; margin-right: .2em; border: 1px solid #dcdcde; border-radius: 4px; text-decoration: none; }
.pak-pagination .current { background: #14436b; color: #fff; border-color: #14436b; }

/* Galerie sur la page d'une annonce */
.pak-gallery { margin: 0 0 1.5em; }
.pak-main-wrap { background: #f6f7f7; border-radius: 8px; overflow: hidden; text-align: center; }
.pak-main { display: block; max-width: 100%; height: auto; max-height: 460px; width: auto; margin: 0 auto; object-fit: contain; }
.pak-thumbs { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .6em; }
.pak-thumbs a { display: block; border: 2px solid transparent; border-radius: 6px; overflow: hidden; }
.pak-thumbs a:hover, .pak-thumbs a:focus { border-color: #14436b; }
.pak-thumbs img { display: block; width: 84px; height: 64px; object-fit: cover; }

.pak-details { display: grid; grid-template-columns: max-content 1fr; gap: .4em 1.2em; padding: 1em 1.2em; margin: 0 0 1.5em; background: #f6f7f7; border-radius: 8px; }
.pak-details dt { font-weight: 600; margin: 0; }
.pak-details dd { margin: 0; }

.pak-form label { display: block; font-weight: 600; }
.pak-form input[type="text"], .pak-form input[type="email"], .pak-form input[type="tel"],
.pak-form input[type="date"], .pak-form select, .pak-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: .25em; font-weight: 400; }
.pak-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1em; }
.pak-check label { font-weight: 400; }
.pak-small { color: #646970; font-size: .85em; }
.pak-contact { margin-top: 2em; padding-top: 1.5em; border-top: 1px solid #dcdcde; }

/* Photos du formulaire */
.pak-files { margin: 0 0 1em; }
.pak-files input[type="file"] { display: block; margin-top: .3em; max-width: 100%; }
.pak-file-err { color: #7a1010; font-size: .9em; margin-top: .3em; }
.pak-previews { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .5em; }
.pak-previews img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #dcdcde; }

/* Prix affiché avant le paiement */
.pak-price { padding: .7em 1em; border-radius: 6px; background: #e6f0fa; color: #14436b; }

/* Recherche */
.pak-filters { flex-direction: column; align-items: stretch; }
.pak-search-row { display: flex; flex-wrap: wrap; gap: .5em; }
.pak-search-row input { flex: 1 1 180px; min-width: 0; }
.pak-types { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4em .9em; }
.pak-types legend { font-weight: 600; font-size: .9em; padding: 0; margin-bottom: .3em; }
.pak-types label { font-weight: 400; display: inline-flex; align-items: center; gap: .3em; }
.pak-count { color: #646970; font-size: .9em; margin: 0 0 .8em; }

/* À la une */
.pak-card.pak-featured { border-color: #e0a800; box-shadow: 0 0 0 1px #e0a800 inset; background: #fffdf5; }
.pak-badge-star { background: #fff3cd; color: #7a5600; }

/* Alertes email */
.pak-alert-box { margin-top: 2em; border: 1px solid #dcdcde; border-radius: 8px; padding: .8em 1.2em; }
.pak-alert-box summary { cursor: pointer; font-weight: 600; }
.pak-alert-box .pak-form { margin-top: 1em; }
.pak-alert .pak-types { margin-bottom: 1em; }

/* Dernières annonces (accueil) */
.pak-latest { list-style: none; margin: 0; padding: 0; }
.pak-latest li { padding: .6em 0; border-bottom: 1px solid #ececec; }
.pak-latest a { font-weight: 600; text-decoration: none; }
.pak-latest .pak-meta { display: block; margin-top: .2em; }
.pak-more { margin-top: .8em; }

/* Honeypot anti-spam : invisible pour les humains */
.pak-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

@media (max-width: 600px) {
	.pak-row { grid-template-columns: 1fr; }
	.pak-details { grid-template-columns: 1fr; }
	.pak-card.pak-has-thumb { flex-direction: column; }
	.pak-thumb, .pak-thumb img { width: 100%; flex-basis: auto; }
	.pak-thumb img { height: 180px; }
}
