/**
 * Homepage — design premium magazine nautique (maquette validée).
 * Chargée uniquement sur la page d'accueil. Toutes les classes sont scopées
 * sous .mmm-home pour ne pas affecter le reste du thème.
 * Header/footer restent ceux du thème (le markup maquette est ignoré).
 */

.mmm-home {
	--navy: #001b33;
	--navy-2: #062641;
	--ink: #162033;
	--muted: #5f6b7a;
	--gold: #c89b55;
	--gold-2: #d8b46e;
	--ivory: #fbf8f1;
	--sand: #eee5d8;
	--line: #e5dccf;
	--white: #fff;
	--shadow: 0 20px 60px rgba(0, 27, 51, .10);
	--container: 1180px;
	--serif: "Playfair Display", Georgia, serif;
	--sans: "Inter", Arial, sans-serif;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}
.mmm-home img { max-width: 100%; display: block; }
.mmm-home a { color: inherit; text-decoration: none; }
.mmm-home button, .mmm-home input, .mmm-home select { font: inherit; }
.mmm-home h1, .mmm-home h2, .mmm-home h3 { margin: 0; }
.mmm-home .mmm-container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.mmm-home section { padding: 54px 0; }

/* ---------------- Hero ---------------- */
.mmm-home .mmm-hero {
	position: relative;
	min-height: 680px;
	color: var(--white);
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(0, 20, 40, .88) 0%, rgba(0, 25, 48, .74) 32%, rgba(0, 27, 51, .18) 68%, rgba(0, 27, 51, .04) 100%),
		var(--mmm-hero-img, none) center / cover no-repeat;
	background-color: var(--navy);
	padding: 0;
}
.mmm-home .mmm-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 170px;
	background: linear-gradient(0deg, rgba(0, 27, 51, .34), transparent);
	pointer-events: none;
}
.mmm-home .mmm-hero-inner {
	position: relative;
	z-index: 2;
	min-height: 680px;
	display: grid;
	align-items: center;
	padding: 86px 0 70px;
}
.mmm-home .mmm-hero-content { max-width: 640px; }
.mmm-home .mmm-overline {
	display: inline-block;
	color: var(--gold-2);
	text-transform: uppercase;
	letter-spacing: .16em;
	font-weight: 800;
	font-size: 12px;
	margin-bottom: 18px;
}
.mmm-home h1 {
	font-family: var(--serif);
	/* Titre magazine premium : serif fin (400), taille contenue et resserrée
	   sur tablette / desktop pour un rendu plus haut de gamme (moins massif). */
	font-size: clamp(40px, 4.4vw, 58px);
	line-height: 1.06;
	letter-spacing: -.012em;
	max-width: 660px;
	font-weight: 400;
	color: var(--white);
	text-shadow: 0 1px 26px rgba(0, 18, 38, .32);
}
.mmm-home .mmm-hero p {
	margin: 24px 0 0;
	color: rgba(255,255,255,.90);
	font-size: 18px;
	line-height: 1.7;
	max-width: 530px;
}
.mmm-home .mmm-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.mmm-home .mmm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 3px;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: transform .2s ease, background .2s ease, border .2s ease;
	cursor: pointer;
	border: 1px solid transparent;
}
.mmm-home .mmm-btn:hover { transform: translateY(-1px); }
.mmm-home .mmm-btn-gold { background: var(--gold); color: var(--white); }
.mmm-home .mmm-btn-gold:hover { background: #b68642; }
.mmm-home .mmm-btn-outline { border-color: rgba(255,255,255,.75); color: var(--white); }
.mmm-home .mmm-btn-outline:hover { background: rgba(255,255,255,.12); }
.mmm-home .mmm-hero-trust {
	margin-top: 42px;
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	color: rgba(255,255,255,.86);
	font-size: 13px;
	font-weight: 700;
}
.mmm-home .mmm-hero-trust span { display: inline-flex; gap: 9px; align-items: center; }
.mmm-home .mmm-hero-trust i {
	width: 24px;
	height: 24px;
	border: 1px solid rgba(216, 180, 110, .75);
	color: var(--gold-2);
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-style: normal;
	flex: 0 0 auto;
}
.mmm-home .mmm-hero-trust i svg { width: 12px; height: 12px; }

/* ---------------- Trust bar ---------------- */
.mmm-home .mmm-trust-bar { background: var(--white); border-bottom: 1px solid var(--line); padding: 0; }
.mmm-home .mmm-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.mmm-home .mmm-trust-item { padding: 28px 30px; display: flex; gap: 15px; align-items: center; border-right: 1px solid var(--line); }
.mmm-home .mmm-trust-item:last-child { border-right: 0; }
.mmm-home .mmm-trust-icon { color: var(--gold); flex: 0 0 auto; width: 28px; height: 28px; }
.mmm-home .mmm-trust-icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.mmm-home .mmm-trust-item strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 3px; }
.mmm-home .mmm-trust-item span { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* ---------------- Search ---------------- */
.mmm-home .mmm-search-panel { padding: 34px 0; background: var(--ivory); }
.mmm-home .mmm-search-box { background: var(--navy); color: var(--white); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.mmm-home .mmm-search-title { text-align: center; font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; font-size: 16px; color: rgba(255,255,255,.9); }
.mmm-home .mmm-search-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 170px; gap: 14px; }
.mmm-home .mmm-search-form select, .mmm-home .mmm-search-form button { height: 48px; border: 1px solid rgba(255,255,255,.18); border-radius: 2px; padding: 0 14px; }
.mmm-home .mmm-search-form select { background: var(--white); color: var(--navy); }
.mmm-home .mmm-search-form button { background: var(--gold); color: var(--white); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; border-color: var(--gold); }
.mmm-home .mmm-search-form button:hover { background: #b68642; }
.mmm-home .mmm-search-note { margin: 0; text-align: center; font-size: 11px; color: rgba(255,255,255,.6); }

/* ---------------- Section heads ---------------- */
.mmm-home .mmm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.mmm-home .mmm-section-kicker { display: block; margin-bottom: 8px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mmm-home h2 { font-family: var(--serif); color: var(--navy); font-weight: 600; font-size: clamp(30px, 3vw, 44px); line-height: 1.15; letter-spacing: -.02em; }
.mmm-home .mmm-text-link { color: var(--navy); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.mmm-home .mmm-text-link:hover { color: var(--gold); }

/* ---------------- Sélection premium ---------------- */
.mmm-home .mmm-boats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mmm-home .mmm-boat-card { background: var(--white); border: 1px solid var(--line); min-width: 0; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.mmm-home .mmm-boat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(0, 27, 51, .09); }
.mmm-home .mmm-boat-image { position: relative; aspect-ratio: 1.38 / 1; overflow: hidden; background: var(--sand); }
.mmm-home .mmm-boat-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mmm-home .mmm-boat-card:hover .mmm-boat-image img { transform: scale(1.05); }
.mmm-home .mmm-boat-ph { width: 100%; height: 100%; background: linear-gradient(135deg,#dfe6ee,#c7d3df); }
.mmm-home .mmm-badge { position: absolute; top: 10px; left: 10px; background: var(--navy); color: var(--white); padding: 6px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.mmm-home .mmm-badge.gold { background: var(--gold); }
.mmm-home .mmm-boat-body { padding: 14px 14px 16px; }
.mmm-home .mmm-boat-title { font-family: var(--serif); color: var(--navy); font-size: 18px; line-height: 1.2; margin-bottom: 8px; text-transform: uppercase; }
.mmm-home .mmm-boat-meta { color: var(--muted); font-size: 12px; display: grid; gap: 5px; margin-bottom: 12px; }
.mmm-home .mmm-boat-price { color: var(--gold); font-weight: 800; font-size: 14px; margin-bottom: 11px; }
.mmm-home .mmm-boat-link { color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Empty state */
.mmm-home .mmm-empty { background: var(--white); border: 1px solid var(--line); padding: 48px 32px; text-align: center; }
.mmm-home .mmm-empty svg { width: 40px; height: 40px; color: var(--gold); margin: 0 auto 16px; }
.mmm-home .mmm-empty p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; line-height: 1.6; }

/* ---------------- Editorial ---------------- */
.mmm-home .mmm-editorial { padding: 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mmm-home .mmm-editorial-grid { display: grid; grid-template-columns: 46% 54%; align-items: stretch; min-height: 420px; }
.mmm-home .mmm-editorial-media { background-size: cover; background-position: center; min-height: 420px; background-color: var(--sand); }
.mmm-home .mmm-editorial-content { padding: 54px; display: grid; align-content: center; gap: 28px; }
.mmm-home .mmm-editorial-content > p { color: var(--muted); line-height: 1.75; margin: 0; max-width: 580px; }
.mmm-home .mmm-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.mmm-home .mmm-proof { padding: 20px 18px; border-right: 1px solid var(--line); }
.mmm-home .mmm-proof:last-child { border-right: 0; }
.mmm-home .mmm-proof .mmm-proof-icon { color: var(--gold); display: block; margin-bottom: 8px; width: 28px; height: 28px; }
.mmm-home .mmm-proof .mmm-proof-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.mmm-home .mmm-proof strong { display: block; color: var(--navy); font-size: 13px; margin-bottom: 5px; }
.mmm-home .mmm-proof span { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }

/* ---------------- Catégories ---------------- */
.mmm-home .mmm-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mmm-home .mmm-category-card { background: var(--white); border: 1px solid var(--line); padding: 24px 12px; text-align: center; min-height: 150px; display: grid; align-content: center; justify-items: center; gap: 10px; transition: border .2s ease, transform .2s ease; }
.mmm-home .mmm-category-card:hover { transform: translateY(-2px); border-color: rgba(200,155,85,.6); }
/* Illustrations premium (trait doré #C89B55, fond transparent). Hauteur de boîte
   commune : les gabarits varient (compas quasi carré, yacht très allongé), on
   contraint donc la boîte et l'image s'y inscrit sans déformation. */
.mmm-home .mmm-category-card .mmm-cat-icon { width: 100%; height: 80px; display: grid; place-items: center; }
.mmm-home .mmm-category-card .mmm-cat-icon img { max-width: 100%; max-height: 80px; width: auto; height: auto; }
.mmm-home .mmm-category-card strong { color: var(--navy); font-family: var(--serif); font-size: 17px; }

/* ---------------- Split banners ---------------- */
.mmm-home .mmm-split-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mmm-home .mmm-banner-card { min-height: 230px; padding: 34px; color: var(--white); display: grid; align-content: end; position: relative; overflow: hidden; background-color: var(--navy); background-size: cover; background-position: center; }
.mmm-home .mmm-banner-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,27,51,.88), rgba(0,27,51,.38)); z-index: 1; }
.mmm-home .mmm-banner-card > * { position: relative; z-index: 2; }
.mmm-home .mmm-banner-card h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 12px; color: var(--white); }
.mmm-home .mmm-banner-card p { color: rgba(255,255,255,.84); margin: 0 0 20px; line-height: 1.6; max-width: 420px; }
.mmm-home .mmm-banner-card .mmm-btn { justify-self: start; }

/* ---------------- Marques ---------------- */
.mmm-home .mmm-brands-strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mmm-home .mmm-brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
.mmm-home .mmm-brand-card { min-height: 92px; display: grid; place-items: center; padding: 18px; border-right: 1px solid var(--line); color: var(--navy); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; text-align: center; transition: background .2s ease, color .2s ease; }
.mmm-home .mmm-brand-card:last-child { border-right: 0; }
.mmm-home .mmm-brand-card:hover { background: var(--ivory); color: var(--gold); }

/* ---------------- Dual links ---------------- */
.mmm-home .mmm-dual-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mmm-home .mmm-link-panel { background: var(--white); border: 1px solid var(--line); display: grid; grid-template-columns: 40% 60%; min-height: 190px; overflow: hidden; }
.mmm-home .mmm-link-panel img { width: 100%; height: 100%; object-fit: cover; }
.mmm-home .mmm-link-panel-content { padding: 26px; display: grid; align-content: center; }
.mmm-home .mmm-link-panel h3 { font-family: var(--serif); color: var(--navy); font-size: 26px; line-height: 1.12; margin-bottom: 12px; }
.mmm-home .mmm-link-panel p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; font-size: 14px; }

/* ---------------- FAQ ---------------- */
.mmm-home .mmm-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mmm-home .mmm-faq-grid details { background: var(--white); border: 1px solid var(--line); padding: 0; }
.mmm-home .mmm-faq-grid summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.mmm-home .mmm-faq-grid summary::-webkit-details-marker { display: none; }
.mmm-home .mmm-faq-grid summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.mmm-home .mmm-faq-grid details[open] summary::after { content: "–"; }
.mmm-home .mmm-faq-grid details p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.65; font-size: 14px; }

/* ---------------- Final CTA ---------------- */
.mmm-home .mmm-final-cta { color: var(--white); padding: 70px 0; background-color: var(--navy); background-size: cover; background-position: center; position: relative; }
.mmm-home .mmm-final-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,27,51,.88), rgba(0,27,51,.42)); }
.mmm-home .mmm-final-cta .mmm-container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.mmm-home .mmm-final-cta h2 { color: var(--white); max-width: 680px; }
.mmm-home .mmm-final-cta p { color: rgba(255,255,255,.86); line-height: 1.6; margin: 14px 0 0; max-width: 560px; }
.mmm-home .mmm-final-cta .mmm-hero-actions { margin: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
	.mmm-home .mmm-search-form { grid-template-columns: repeat(2, 1fr); }
	.mmm-home .mmm-search-form button { grid-column: span 2; }
	.mmm-home .mmm-boats-grid { grid-template-columns: repeat(3, 1fr); }
	.mmm-home .mmm-category-grid { grid-template-columns: repeat(3, 1fr); }
	.mmm-home .mmm-brand-grid { grid-template-columns: repeat(3, 1fr); }
	.mmm-home .mmm-brand-card { border-bottom: 1px solid var(--line); }
	.mmm-home .mmm-trust-grid { grid-template-columns: repeat(2, 1fr); }
	.mmm-home .mmm-trust-item:nth-child(2) { border-right: 0; }
	.mmm-home .mmm-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.mmm-home .mmm-editorial-grid { grid-template-columns: 1fr; }
	.mmm-home .mmm-editorial-content { padding: 40px 24px; }
	.mmm-home .mmm-proof-grid { grid-template-columns: repeat(2, 1fr); }
	.mmm-home .mmm-split-banners, .mmm-home .mmm-dual-links, .mmm-home .mmm-faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.mmm-home .mmm-container { width: min(100% - 28px, var(--container)); }
	.mmm-home .mmm-hero, .mmm-home .mmm-hero-inner { min-height: 620px; }
	.mmm-home .mmm-hero-inner { align-items: end; padding-bottom: 58px; }
	.mmm-home h1 { font-size: 44px; }
	.mmm-home .mmm-hero p { font-size: 16px; }
	.mmm-home .mmm-hero-actions { flex-direction: column; }
	.mmm-home .mmm-hero-actions .mmm-btn { width: 100%; }
	.mmm-home .mmm-trust-grid { grid-template-columns: 1fr; }
	.mmm-home .mmm-trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 12px; }
	.mmm-home .mmm-trust-item:last-child { border-bottom: 0; }
	.mmm-home .mmm-search-box { padding: 22px; }
	.mmm-home .mmm-search-form { grid-template-columns: 1fr; }
	.mmm-home .mmm-search-form button { grid-column: auto; }
	.mmm-home section { padding: 42px 0; }
	.mmm-home .mmm-section-head { display: block; }
	.mmm-home .mmm-text-link { display: inline-block; margin-top: 14px; }
	.mmm-home .mmm-boats-grid { grid-template-columns: 1fr; }
	.mmm-home .mmm-category-grid { grid-template-columns: 1fr 1fr; }
	.mmm-home .mmm-proof-grid { grid-template-columns: 1fr; }
	.mmm-home .mmm-brand-grid { grid-template-columns: 1fr 1fr; }
	.mmm-home .mmm-link-panel { grid-template-columns: 1fr; }
	.mmm-home .mmm-link-panel img { height: 180px; }
	.mmm-home .mmm-final-cta .mmm-container { display: block; }
	.mmm-home .mmm-final-cta .mmm-hero-actions { margin-top: 24px; }
}

/* ------------------------------------------------------------------ *
 * Mobile (téléphones) — réduction typographique & espacement.
 * ------------------------------------------------------------------ */
@media (max-width: 640px) {
	.mmm-home h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
	.mmm-home h2 { font-size: 23px; line-height: 1.18; }
	.mmm-home .mmm-hero p { font-size: 15px; line-height: 1.6; margin-top: 18px; }
	.mmm-home .mmm-hero, .mmm-home .mmm-hero-inner { min-height: 500px; }
	.mmm-home .mmm-hero-inner { padding: 52px 0 40px; }
	.mmm-home .mmm-overline { font-size: 11px; margin-bottom: 12px; }
	.mmm-home section { padding: 34px 0; }
	.mmm-home .mmm-search-box { padding: 20px; }
	.mmm-home .mmm-search-title { font-size: 14px; }
	.mmm-home .mmm-boat-title { font-size: 17px; }
	.mmm-home .mmm-banner-card { min-height: 180px; padding: 26px; }
	.mmm-home .mmm-banner-card h3 { font-size: 22px; }
	.mmm-home .mmm-link-panel h3 { font-size: 21px; }
	.mmm-home .mmm-editorial-content { padding: 30px 20px; gap: 20px; }
	.mmm-home .mmm-category-card strong { font-size: 15px; }
	.mmm-home .mmm-btn { font-size: 11px; }
}

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