/**
 * Page « Bateaux neufs » — design catalogue premium (maquette validée).
 * Chargée uniquement sur la page « bateaux-neufs ». Toutes les classes sont
 * scopées sous .mmm-neufs pour ne pas affecter le reste du thème.
 * Header/footer restent ceux du thème (le markup maquette est ignoré).
 */

.mmm-neufs {
	--navy: #001b33;
	--navy-deep: #000e24;
	--blue: #0f476b;
	--ivory: #faf7f0;
	--sand: #ede4d7;
	--gold: #c89b55;
	--gold-soft: #ddb978;
	--text: #132036;
	--muted: #687386;
	--border: #e5ddd1;
	--white: #fff;
	--shadow: 0 18px 48px rgba(0, 27, 51, .10);
	--container: 1240px;
	--radius: 14px;
	--serif: "Playfair Display", Georgia, serif;
	--sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--ivory);
	color: var(--text);
	font-family: var(--sans);
	line-height: 1.5;
}
.mmm-neufs img { max-width: 100%; display: block; }
.mmm-neufs a { color: inherit; text-decoration: none; }
.mmm-neufs button, .mmm-neufs input, .mmm-neufs select { font: inherit; }
.mmm-neufs h1, .mmm-neufs h2, .mmm-neufs h3 { margin: 0; }
.mmm-neufs .mmm-container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

/* ---------------- Hero ---------------- */
.mmm-neufs .mmm-hero {
	position: relative;
	min-height: 560px;
	color: var(--white);
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(0,14,36,.92) 0%, rgba(0,27,51,.72) 42%, rgba(0,27,51,.14) 100%),
		var(--mmm-hero-img, none) center/cover no-repeat;
	background-color: var(--navy-deep);
}
.mmm-neufs .mmm-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 120px;
	background: linear-gradient(to top, rgba(0,27,51,.45), transparent);
	pointer-events: none;
}
.mmm-neufs .mmm-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 390px;
	gap: 56px;
	align-items: center;
	min-height: 560px;
	padding: 60px 0;
}
.mmm-neufs .mmm-overline {
	display: block;
	color: var(--gold-soft);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.mmm-neufs .mmm-hero h1,
.mmm-neufs .mmm-editorial h2,
.mmm-neufs .mmm-info-card h2,
.mmm-neufs .mmm-hero-card h2,
.mmm-neufs .mmm-faq h2,
.mmm-neufs .mmm-boat-card h3 {
	font-family: var(--serif);
	font-weight: 700;
	letter-spacing: -.02em;
}
.mmm-neufs .mmm-hero h1 {
	font-size: clamp(38px, 4.4vw, 58px);
	line-height: 1.06;
	letter-spacing: -.012em;
	font-weight: 400;
	max-width: 640px;
	margin: 0 0 22px;
	color: var(--white);
	text-shadow: 0 1px 26px rgba(0, 18, 38, .32);
}
.mmm-neufs .mmm-hero p {
	max-width: 560px;
	color: rgba(255,255,255,.9);
	font-size: 18px;
	line-height: 1.75;
	margin: 0 0 34px;
}
.mmm-neufs .mmm-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.mmm-neufs .mmm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 4px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .02em;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.mmm-neufs .mmm-btn:hover { transform: translateY(-1px); }
.mmm-neufs .mmm-btn-gold { background: var(--gold); color: var(--white); }
.mmm-neufs .mmm-btn-gold:hover { background: #b98b46; }
.mmm-neufs .mmm-btn-outline { border-color: rgba(255,255,255,.58); color: var(--white); background: rgba(255,255,255,.06); }
.mmm-neufs .mmm-btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.12); }
.mmm-neufs .mmm-btn-navy { background: var(--navy); color: var(--white); }
.mmm-neufs .mmm-btn-navy:hover { background: var(--blue); }

.mmm-neufs .mmm-hero-card {
	background: rgba(255,255,255,.96);
	color: var(--text);
	border-radius: 10px;
	padding: 14px;
	box-shadow: 0 30px 80px rgba(0,14,36,.32);
	border: 1px solid rgba(255,255,255,.5);
}
.mmm-neufs .mmm-hero-card-image { position: relative; border-radius: 7px; overflow: hidden; height: 190px; background: var(--sand); }
.mmm-neufs .mmm-hero-card-image img { width: 100%; height: 100%; object-fit: cover; }
.mmm-neufs .mmm-badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 4px 9px;
	border-radius: 3px;
	background: var(--navy);
	color: var(--white);
	text-transform: uppercase;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .06em;
}
.mmm-neufs .mmm-badge.gold { background: var(--gold); }
.mmm-neufs .mmm-hero-card-image .mmm-badge { position: absolute; top: 12px; left: 12px; }
.mmm-neufs .mmm-hero-card-body { padding: 18px 4px 2px; }
.mmm-neufs .mmm-hero-card-title-row { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.mmm-neufs .mmm-hero-card h2 { font-size: 26px; line-height: 1.05; margin: 0 0 4px; color: var(--navy); }
.mmm-neufs .mmm-price { color: var(--gold); font-weight: 700; font-size: 18px; white-space: nowrap; }
.mmm-neufs .mmm-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 16px 0; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--border); }
.mmm-neufs .mmm-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--gold); font-weight: 700; font-size: 14px; }

/* ---------------- Trust ---------------- */
.mmm-neufs .mmm-trust { background: var(--white); border-bottom: 1px solid var(--border); }
.mmm-neufs .mmm-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.mmm-neufs .mmm-trust-item {
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 14px;
	align-items: center;
	padding: 28px 26px;
	border-right: 1px solid var(--border);
}
.mmm-neufs .mmm-trust-item:last-child { border-right: 0; }
.mmm-neufs .mmm-icon {
	width: 42px;
	height: 42px;
	border: 1px solid rgba(200,155,85,.55);
	color: var(--gold);
	border-radius: 999px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}
.mmm-neufs .mmm-icon svg { width: 21px; height: 21px; stroke-width: 1.6; }
.mmm-neufs .mmm-trust-item strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 2px; }
.mmm-neufs .mmm-trust-item span { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }

/* ---------------- Main / filtres ---------------- */
.mmm-neufs .mmm-main { padding: 54px 0 0; }
.mmm-neufs .mmm-filter-wrap {
	display: grid;
	grid-template-columns: 1fr 220px;
	gap: 20px;
	align-items: stretch;
	margin-bottom: 34px;
}
.mmm-neufs .mmm-filter-panel {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: 0 10px 35px rgba(0,27,51,.05);
}
.mmm-neufs .mmm-filter-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
	gap: 14px;
	align-items: end;
}
.mmm-neufs .mmm-field label { display: block; font-size: 12px; color: var(--navy); font-weight: 700; margin-bottom: 7px; }
.mmm-neufs .mmm-field select, .mmm-neufs .mmm-field input {
	width: 100%;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--white);
	color: var(--text);
	padding: 0 12px;
	outline: none;
}
.mmm-neufs .mmm-field select:focus, .mmm-neufs .mmm-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,155,85,.14); }
.mmm-neufs .mmm-field .mmm-btn { width: 100%; }
.mmm-neufs .mmm-search-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: 0 10px 35px rgba(0,27,51,.05);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.mmm-neufs .mmm-search-card strong { display: block; color: var(--navy); margin-bottom: 6px; }
.mmm-neufs .mmm-search-card span { color: var(--muted); font-size: 13px; }
.mmm-neufs .mmm-search-card a { display: inline-flex; gap: 6px; color: var(--gold); font-weight: 700; font-size: 13px; margin-top: 12px; }

.mmm-neufs .mmm-tabs {
	display: flex;
	gap: 34px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 24px;
}
.mmm-neufs .mmm-tabs a {
	padding: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--muted);
	border-bottom: 2px solid transparent;
}
.mmm-neufs .mmm-tabs a:hover { color: var(--navy); }
.mmm-neufs .mmm-tabs a.is-active { color: var(--navy); border-bottom-color: var(--gold); }

.mmm-neufs .mmm-listing-count { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

/* ---------------- Grille bateaux ---------------- */
.mmm-neufs .mmm-boats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mmm-neufs .mmm-boat-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 12px 34px rgba(0,27,51,.06);
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mmm-neufs .mmm-boat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(200,155,85,.55); }
.mmm-neufs .mmm-boat-image { position: relative; height: 205px; background: var(--sand); overflow: hidden; }
.mmm-neufs .mmm-boat-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mmm-neufs .mmm-boat-card:hover .mmm-boat-image img { transform: scale(1.04); }
.mmm-neufs .mmm-boat-image .mmm-badge { position: absolute; top: 12px; left: 12px; }
.mmm-neufs .mmm-boat-ph { width: 100%; height: 100%; background: linear-gradient(135deg,#dfe6ee,#c7d3df); }
.mmm-neufs .mmm-boat-body { padding: 18px 18px 14px; display: flex; flex-direction: column; flex-grow: 1; }
.mmm-neufs .mmm-boat-top { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 4px; }
.mmm-neufs .mmm-boat-card h3 { color: var(--navy); font-size: 22px; line-height: 1.12; }
.mmm-neufs .mmm-boat-price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.mmm-neufs .mmm-boat-type { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.mmm-neufs .mmm-boat-specs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	color: var(--muted);
	font-size: 12px;
	padding: 13px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.mmm-neufs .mmm-boat-spec { display: flex; align-items: center; gap: 6px; }
.mmm-neufs .mmm-boat-spec svg { width: 14px; height: 14px; color: var(--gold); flex: 0 0 auto; }
.mmm-neufs .mmm-location { color: var(--muted); font-size: 12px; margin: 12px 0; display: flex; align-items: center; gap: 6px; }
.mmm-neufs .mmm-location svg { width: 14px; height: 14px; color: var(--gold); }
.mmm-neufs .mmm-boat-body .mmm-card-link { margin-top: auto; }

/* Empty state */
.mmm-neufs .mmm-empty { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 56px 32px; text-align: center; box-shadow: 0 10px 35px rgba(0,27,51,.05); }
.mmm-neufs .mmm-empty .mmm-icon { margin: 0 auto 20px; width: 58px; height: 58px; }
.mmm-neufs .mmm-empty .mmm-icon svg { width: 28px; height: 28px; }
.mmm-neufs .mmm-empty h3 { font-family: var(--serif); color: var(--navy); font-size: 32px; line-height: 1.05; margin-bottom: 12px; }
.mmm-neufs .mmm-empty p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

/* Pagination */
.mmm-neufs .mmm-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.mmm-neufs .mmm-pager a, .mmm-neufs .mmm-pager span {
	min-width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--navy);
	background: var(--white);
}
.mmm-neufs .mmm-pager a:hover { border-color: var(--gold); color: var(--gold); }
.mmm-neufs .mmm-pager .is-current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------------- Info grid ---------------- */
.mmm-neufs .mmm-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 52px 0 56px; }
.mmm-neufs .mmm-info-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 28px;
	min-height: 230px;
}
.mmm-neufs .mmm-info-card.accent { background: linear-gradient(135deg, #fff 0%, #f5eee4 100%); }
.mmm-neufs .mmm-info-card.navy { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.mmm-neufs .mmm-info-card.navy::after { content: "⚓"; position: absolute; right: 24px; bottom: -42px; font-size: 170px; color: rgba(255,255,255,.06); }
.mmm-neufs .mmm-info-card h2 { color: var(--navy); font-size: 27px; line-height: 1.15; margin: 0 0 14px; }
.mmm-neufs .mmm-info-card.navy h2 { color: var(--white); }
.mmm-neufs .mmm-info-card p { color: var(--muted); margin: 0 0 18px; }
.mmm-neufs .mmm-info-card.navy p { color: rgba(255,255,255,.82); }
.mmm-neufs .mmm-feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.mmm-neufs .mmm-feature-list li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 10px; }

/* ---------------- Editorial + FAQ ---------------- */
.mmm-neufs .mmm-editorial-faq { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; margin-bottom: 56px; }
.mmm-neufs .mmm-editorial { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 32px; }
.mmm-neufs .mmm-editorial h2 { font-size: 31px; line-height: 1.12; color: var(--navy); margin: 0 0 18px; }
.mmm-neufs .mmm-editorial p { color: var(--muted); margin: 0 0 16px; }
.mmm-neufs .mmm-faq { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 28px; }
.mmm-neufs .mmm-faq h2 { color: var(--navy); font-size: 31px; margin: 0 0 18px; }
.mmm-neufs .mmm-faq details { border-top: 1px solid var(--border); padding: 0; }
.mmm-neufs .mmm-faq details:last-child { border-bottom: 1px solid var(--border); }
.mmm-neufs .mmm-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 16px 0;
	font-weight: 700;
	color: var(--navy);
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.mmm-neufs .mmm-faq summary::-webkit-details-marker { display: none; }
.mmm-neufs .mmm-faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.mmm-neufs .mmm-faq details[open] summary::after { content: "–"; }
.mmm-neufs .mmm-faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
	.mmm-neufs .mmm-hero-inner { grid-template-columns: 1fr; }
	.mmm-neufs .mmm-hero-card { max-width: 430px; }
	.mmm-neufs .mmm-filter-wrap, .mmm-neufs .mmm-editorial-faq { grid-template-columns: 1fr; }
	.mmm-neufs .mmm-filter-grid { grid-template-columns: repeat(3, 1fr); }
	.mmm-neufs .mmm-field.mmm-field-submit { grid-column: 1 / -1; }
	.mmm-neufs .mmm-trust-grid { grid-template-columns: repeat(2, 1fr); }
	.mmm-neufs .mmm-trust-item:nth-child(2) { border-right: 0; }
	.mmm-neufs .mmm-boats-grid { grid-template-columns: repeat(2, 1fr); }
	.mmm-neufs .mmm-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.mmm-neufs .mmm-container { width: min(100% - 28px, var(--container)); }
	.mmm-neufs .mmm-hero { min-height: auto; }
	.mmm-neufs .mmm-hero-inner { min-height: auto; padding: 64px 0; gap: 34px; }
	.mmm-neufs .mmm-hero h1 { font-size: 46px; }
	.mmm-neufs .mmm-hero p { font-size: 16px; }
	.mmm-neufs .mmm-actions { flex-direction: column; align-items: stretch; }
	.mmm-neufs .mmm-trust-grid, .mmm-neufs .mmm-boats-grid, .mmm-neufs .mmm-filter-grid { grid-template-columns: 1fr; }
	.mmm-neufs .mmm-trust-item { border-right: 0; border-bottom: 1px solid var(--border); }
	.mmm-neufs .mmm-trust-item:last-child { border-bottom: 0; }
	.mmm-neufs .mmm-tabs { overflow-x: auto; white-space: nowrap; gap: 24px; }
	.mmm-neufs .mmm-boat-image { height: 190px; }
}

/* ------------------------------------------------------------------ *
 * Mobile (téléphones) — réduction typographique & espacement.
 * ------------------------------------------------------------------ */
@media (max-width: 640px) {
	.mmm-neufs .mmm-hero h1 { font-size: 31px; line-height: 1.08; letter-spacing: -.01em; }
	.mmm-neufs .mmm-hero p { font-size: 15px; line-height: 1.6; }
	.mmm-neufs .mmm-hero, .mmm-neufs .mmm-hero-inner { min-height: auto; }
	.mmm-neufs .mmm-hero-inner { padding: 48px 0; gap: 28px; }
	.mmm-neufs .mmm-overline { font-size: 11px; margin-bottom: 12px; }
	.mmm-neufs .mmm-hero-card h2 { font-size: 22px; }
	.mmm-neufs .mmm-editorial h2, .mmm-neufs .mmm-faq h2, .mmm-neufs .mmm-info-card h2 { font-size: 24px; }
	.mmm-neufs .mmm-boat-card h3 { font-size: 19px; }
	.mmm-neufs .mmm-empty h3 { font-size: 24px; }
	.mmm-neufs .mmm-main { padding-top: 34px; }
	.mmm-neufs .mmm-info-grid { margin: 32px 0 36px; }
	.mmm-neufs .mmm-editorial-faq { margin-bottom: 36px; }
	.mmm-neufs .mmm-btn { font-size: 13px; }
}

/* Mobile — CTA hero à la largeur du contenu (plus pleine largeur), hauteur d'origine. */
@media (max-width: 640px) {
	.mmm-neufs .mmm-actions { flex-direction: column; align-items: flex-start; }
	.mmm-neufs .mmm-actions .mmm-btn { width: auto; }
}
