/* Fonds de Commerce Manager — styles publics */

:root {
	--fcm-primary: #1d5b40;
	--fcm-primary-dark: #14432f;
	--fcm-accent: #d98a2b;
	--fcm-bg: #f7f9f8;
	--fcm-border: #e1e6e3;
	--fcm-text: #222;
	--fcm-radius: 10px;
}

.fcm-form,
.fcm-liste-wrap,
.fcm-single {
	color: var(--fcm-text);
	font-size: 15px;
	line-height: 1.5;
}

/* ---------- Boutons ---------- */
.fcm-btn {
	display: inline-block;
	background: var(--fcm-primary);
	color: #fff !important;
	padding: 10px 18px;
	border-radius: var(--fcm-radius);
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-weight: 600;
	transition: background .15s ease;
}
.fcm-btn:hover { background: var(--fcm-primary-dark); }
.fcm-btn-primary { font-size: 16px; padding: 14px 26px; }

/* ---------- Notices ---------- */
.fcm-notice {
	padding: 12px 16px;
	border-radius: var(--fcm-radius);
	margin: 0 0 18px;
	border-left: 4px solid;
}
.fcm-success { background: #eaf7ee; border-color: #1a7f37; }
.fcm-error   { background: #fdecea; border-color: #b32d2e; }
.fcm-info    { background: #eef4fb; border-color: #0a4b78; }

/* ---------- Portail (login gate) ---------- */
.fcm-gate-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin: 20px 0;
}
.fcm-gate-card {
	background: var(--fcm-bg);
	border: 1px solid var(--fcm-border);
	border-radius: var(--fcm-radius);
	padding: 22px;
	text-align: center;
}
.fcm-gate-card h4 { margin-top: 0; }
.fcm-price { font-size: 22px; font-weight: 700; color: var(--fcm-primary); }
.fcm-login-link { text-align: center; margin-top: 10px; }

/* ---------- Formulaire ---------- */
.fcm-section {
	border: 1px solid var(--fcm-border);
	border-radius: var(--fcm-radius);
	padding: 18px 20px;
	margin: 0 0 22px;
}
.fcm-section legend {
	font-weight: 700;
	font-size: 16px;
	padding: 0 8px;
	color: var(--fcm-primary);
}
.fcm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px 20px;
}
.fcm-field { display: flex; flex-direction: column; }
.fcm-field-full { grid-column: 1 / -1; }
.fcm-field label { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.fcm-field input[type=text],
.fcm-field input[type=number],
.fcm-field input[type=email],
.fcm-field input[type=tel],
.fcm-field input[type=url],
.fcm-field input[type=date],
.fcm-field select,
.fcm-field textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--fcm-border);
	border-radius: 7px;
	font-size: 14px;
	background: #fff;
}
.fcm-field input:focus,
.fcm-field select:focus,
.fcm-field textarea:focus {
	outline: none;
	border-color: var(--fcm-primary);
	box-shadow: 0 0 0 3px rgba(29, 91, 64, .12);
}
.fcm-help { color: #666; font-size: 12px; margin-top: 3px; }
.req { color: #b32d2e; }
.fcm-unit { color: #666; font-size: 12px; }
.fcm-check { flex-direction: row; align-items: center; gap: 6px; }

/* ---------- Liste / cartes ---------- */
.fcm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}
.fcm-filters select {
	padding: 9px 11px;
	border: 1px solid var(--fcm-border);
	border-radius: 7px;
	background: #fff;
}
.fcm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 22px;
}
.fcm-card {
	display: block;
	background: #fff;
	border: 1px solid var(--fcm-border);
	border-radius: var(--fcm-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}
.fcm-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.fcm-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--fcm-bg); }
.fcm-card-img img { width: 100%; height: 100%; object-fit: cover; }
.fcm-card-noimg { display: flex; align-items: center; justify-content: center; font-size: 46px; }
.fcm-card-body { padding: 14px 16px; }
.fcm-card-body h4 { margin: 8px 0 6px; font-size: 16px; }
.fcm-card-loc, .fcm-card-surface { margin: 2px 0; color: #555; font-size: 13px; }
.fcm-card-price { font-weight: 700; color: var(--fcm-primary); font-size: 17px; margin-top: 8px; }

.fcm-badge {
	display: inline-block;
	background: var(--fcm-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
}
.fcm-badge-mairie { background: var(--fcm-primary); }

.fcm-pagination { margin: 26px 0; text-align: center; }
.fcm-pagination a {
	display: inline-block;
	padding: 7px 12px;
	border: 1px solid var(--fcm-border);
	border-radius: 7px;
	text-decoration: none;
	color: var(--fcm-text);
	margin: 2px;
}
.fcm-pagination a.current { background: var(--fcm-primary); color: #fff; border-color: var(--fcm-primary); }

/* ---------- Fiche détaillée ---------- */
.fcm-single-header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.fcm-ref { font-family: monospace; color: #777; }
.fcm-single-price { font-size: 28px; font-weight: 800; color: var(--fcm-primary); margin: 6px 0 18px; }
.fcm-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
	margin-bottom: 24px;
}
.fcm-gallery img { width: 100%; border-radius: 8px; display: block; }
.fcm-block { margin: 0 0 24px; }
.fcm-block h3 { border-bottom: 2px solid var(--fcm-border); padding-bottom: 6px; }
.fcm-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 6px 24px;
	margin: 12px 0 0;
}
.fcm-specs dt { font-weight: 600; color: #555; }
.fcm-specs dd { margin: 0 0 8px; }
.fcm-contact-box {
	background: var(--fcm-bg);
	border: 1px solid var(--fcm-border);
	border-radius: var(--fcm-radius);
	padding: 18px 20px;
}
.fcm-map { width: 100%; border-radius: var(--fcm-radius); overflow: hidden; z-index: 0; }
.fcm-empty { padding: 30px; text-align: center; color: #777; }
