/* Antiquaire Manager — styles front
   Les variables --antq-* sont injectées par class-assets.php depuis les réglages. */

.antq-grid {
	display: grid;
	gap: 28px;
	margin: 0 0 32px;
}

.antq-cols-1 { grid-template-columns: 1fr; }
.antq-cols-2 { grid-template-columns: repeat(2, 1fr); }
.antq-cols-3 { grid-template-columns: repeat(3, 1fr); }
.antq-cols-4 { grid-template-columns: repeat(4, 1fr); }
.antq-cols-5 { grid-template-columns: repeat(5, 1fr); }
.antq-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 980px) {
	.antq-cols-3, .antq-cols-4, .antq-cols-5, .antq-cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.antq-grid { grid-template-columns: 1fr; }
}

/* --- Carte ------------------------------------------------------------ */
.antq-card {
	background: #fff;
	border: 1px solid var(--antq-beige, #ead3b5);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.antq-card:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

.antq-card-link {
	display: block;
	text-decoration: none;
	color: var(--antq-texte, #000);
}

.antq-card-media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--antq-creme, #f6f1ea);
}

.antq-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.antq-card:hover .antq-card-media img {
	transform: scale(1.06);
}

.antq-card-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--antq-beige, #ead3b5);
}

.antq-card-title {
	margin: 0;
	padding: 16px 18px;
	font-size: 1.15em;
	text-align: center;
	letter-spacing: 1px;
}

/* --- Badges ----------------------------------------------------------- */
.antq-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	z-index: 2;
}

.antq-badge {
	display: inline-block;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
	background: var(--antq-sauge, #7ea391);
}

.antq-badge-louer  { background: var(--antq-badge-louer, #7ea391); }
.antq-badge-vendre { background: var(--antq-badge-vendre, #a78254); }
.antq-badge-achat  { background: var(--antq-badge-achat, #b5564e); }

/* --- Pagination ------------------------------------------------------- */
.antq-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.antq-pagination .page-numbers {
	display: inline-block;
	padding: 8px 16px;
	background: var(--antq-sauge, #7ea391);
	color: #fff;
	text-decoration: none;
}

.antq-pagination .page-numbers.current {
	background: var(--antq-or, #a78254);
}

.antq-empty {
	padding: 24px;
	text-align: center;
	color: var(--antq-texte, #000);
	background: var(--antq-creme, #f6f1ea);
}

/* --- Formulaire (moderne) -------------------------------------------- */
.antq-form-wrap {
	margin: 0;
	padding: 26px 28px;
	background: #fff;
	border: 1px solid var(--antq-beige, #ead3b5);
	border-top: 3px solid var(--antq-or, #a78254);
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
}

.antq-form-title {
	margin: 0 0 3px;
	font-size: 1.4em;
	line-height: 1.2;
}

.antq-form-sub {
	margin: 0 0 16px;
	font-size: 0.9em;
	opacity: 0.7;
}

.antq-row {
	display: flex;
	gap: 14px;
}

.antq-row .antq-field {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 520px) {
	.antq-row {
		flex-direction: column;
		gap: 0;
	}
}

.antq-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.antq-field {
	margin: 0;
	position: relative;
}

/* Marge ET padding des champs à 0 — l'espacement est géré par le gap du
   formulaire. Neutralise le `p { padding-bottom: 1em }` du thème. */
.antq-form p.antq-field,
.antq-form .antq-row {
	margin: 0 !important;
	padding: 0 !important;
}

.antq-field > label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--antq-or, #a78254);
	margin-bottom: 4px;
}

.antq-form .antq-field input,
.antq-form .antq-field select,
.antq-form .antq-field textarea {
	width: 100% !important;
	height: auto !important;
	padding: 7px 7px !important;
	margin: 0 !important;
	border: 1px solid var(--antq-beige, #ead3b5) !important;
	border-radius: 6px !important;
	background: #fff !important;
	font-size: 15px !important;
	color: var(--antq-texte, #1a1a1a) !important;
	font-family: inherit;
	line-height: 1.4 !important;
	box-sizing: border-box !important;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.antq-field textarea {
	resize: vertical;
	min-height: 74px;
}

.antq-form .antq-field select {
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a78254' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 15px center !important;
	padding-right: 38px !important;
	cursor: pointer;
}

.antq-form .antq-field input:focus,
.antq-form .antq-field select:focus,
.antq-form .antq-field textarea:focus {
	outline: none;
	border-color: var(--antq-or, #a78254) !important;
	box-shadow: 0 0 0 3px rgba(167, 130, 84, 0.16) !important;
}

.antq-field input::placeholder,
.antq-field textarea::placeholder {
	color: #b9b3a8;
}

.antq-req {
	color: var(--antq-badge-achat, #b5564e);
}

/* Honeypot caché. */
.antq-hp {
	position: absolute !important;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

.antq-submit {
	margin: 4px 0 0 !important;
}

.antq-btn {
	display: block;
	width: 100%;
	padding: 15px 28px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	color: #fff;
	background: var(--antq-or, #a78254);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.antq-btn:hover {
	background: #b48f5e;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(167, 130, 84, 0.35);
}

.antq-btn:disabled {
	opacity: 0.65;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.antq-form-msg {
	margin-top: 16px;
	font-weight: 600;
	font-size: 0.95em;
}

.antq-form-msg.is-success {
	padding: 12px 16px;
	border-radius: 6px;
	color: #2f6b4f;
	background: #eaf6f1;
	border: 1px solid var(--antq-sauge, #7ea391);
}

.antq-form-msg.is-error {
	padding: 12px 16px;
	border-radius: 6px;
	color: var(--antq-badge-achat, #b5564e);
	background: #fbeceb;
	border: 1px solid var(--antq-badge-achat, #b5564e);
}

/* --- Galerie front ---------------------------------------------------- */
.antq-gallery-front {
	display: grid;
	gap: 12px;
	margin: 0 0 28px;
}

.antq-gallery-front .antq-gallery-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--antq-beige, #ead3b5);
}

.antq-gallery-front img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.antq-gallery-front .antq-gallery-link:hover img {
	transform: scale(1.08);
}

/* --- Sections services (fiche) --------------------------------------- */
.antq-fiche-services {
	display: block;
}

.antq-service {
	margin: 0 0 22px;
	padding: 28px 30px;
	background: #fff;
	border: 1px solid var(--antq-beige, #ead3b5);
	border-top: 3px solid var(--antq-or, #a78254);
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.antq-service-louer  { border-top-color: var(--antq-badge-louer, #7ea391); }
.antq-service-vendre { border-top-color: var(--antq-badge-vendre, #a78254); }
.antq-service-achat  { border-top-color: var(--antq-badge-achat, #b5564e); }

.antq-service:last-child { margin-bottom: 0; }

.antq-service-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px !important;
	font-size: 1.4em;
	line-height: 1.25;
}

.antq-service-title .antq-badge {
	position: static;
	flex: 0 0 auto;
}

.antq-service-desc {
	line-height: 1.75;
}

.antq-service-desc p:last-child {
	margin-bottom: 0;
}

/* --- Cartes catégorie ------------------------------------------------- */
.antq-cat-card {
	display: block;
	text-decoration: none;
	color: var(--antq-texte, #000);
	background: #fff;
	border: 1px solid var(--antq-beige, #ead3b5);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.antq-cat-card:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

.antq-cat-media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--antq-creme, #f6f1ea);
}

.antq-cat-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.antq-cat-card:hover .antq-cat-media img {
	transform: scale(1.06);
}

.antq-cat-name {
	display: block;
	padding: 16px 14px;
	text-align: center;
	font-size: 1.1em;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* --- Fil d'Ariane ----------------------------------------------------- */
.antq-fil {
	margin: 0 0 20px;
	font-size: 0.9em;
	letter-spacing: 0.3px;
	color: var(--antq-texte, #000);
}

.antq-fil a {
	color: var(--antq-or, #a78254);
	text-decoration: none;
}

.antq-fil a:hover {
	text-decoration: underline;
}

.antq-fil-sep {
	color: var(--antq-beige, #ead3b5);
	margin: 0 4px;
}

.antq-fil-current {
	opacity: 0.7;
}

/* --- Fiche produit (mise en page auto) -------------------------------- */
.antq-fiche {
	margin: 24px 0;
}

.antq-fiche-top {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: start;
	margin-bottom: 40px;
}

@media (max-width: 860px) {
	.antq-fiche-top {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

.antq-fiche-intro {
	margin-bottom: 20px;
	line-height: 1.7;
}

.antq-fiche-aside .antq-form-wrap {
	margin: 0;
	position: sticky;
	top: 24px;
}

/* --- Galerie vitrine -------------------------------------------------- */
.antq-showcase-main {
	position: relative;
	overflow: hidden;
	background: var(--antq-creme, #f6f1ea);
	border: 1px solid var(--antq-beige, #ead3b5);
	aspect-ratio: 1 / 1;
}

.antq-showcase-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.antq-showcase-mainlink {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

/* --- Visionneuse (lightbox) ------------------------------------------ */
.antq-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
}

.antq-lightbox.is-open {
	display: flex;
}

.antq-lb-img {
	max-width: 90vw;
	max-height: 88vh;
	object-fit: contain;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.antq-lightbox button {
	position: absolute;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s ease;
	line-height: 1;
}

.antq-lightbox button:hover {
	opacity: 1;
}

.antq-lb-close {
	top: 18px;
	right: 24px;
	font-size: 44px;
}

.antq-lb-prev,
.antq-lb-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 60px;
	padding: 0 24px;
}

.antq-lb-prev { left: 10px; }
.antq-lb-next { right: 10px; }

.antq-showcase-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.antq-showcase-thumb {
	padding: 0;
	margin: 0;
	width: 76px;
	height: 76px;
	border: 2px solid transparent;
	background: none;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.antq-showcase-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.antq-showcase-thumb.is-active,
.antq-showcase-thumb:hover {
	border-color: var(--antq-or, #a78254);
}

/* --- En-tête de catégorie -------------------------------------------- */
.antq-cat-entete {
	margin: 0 0 28px;
	text-align: center;
}

.antq-cat-entete-titre {
	margin: 0 0 12px;
}

.antq-cat-entete-desc {
	max-width: 760px;
	margin: 0 auto;
	line-height: 1.7;
	color: var(--antq-texte, #000);
}
