/* Spas du Maroc — Fiche établissement (Phase 3B). Même système visuel que l'accueil et l'annuaire. */

.sdmp {
	--sdm-bg: #f7f2e9;
	--sdm-surface: #fffdf8;
	--sdm-surface-alt: #efe7d6;
	--sdm-text: #17251f;
	--sdm-text-muted: #57655e;
	--sdm-accent: #14382e;
	--sdm-accent-hover: #1e5442;
	--sdm-gold: #a5762f;
	--sdm-gold-text: #8a6124;
	--sdm-border: #e4d8c2;
	--sdm-radius-md: 14px;
	--sdm-radius-lg: 20px;
	--sdm-shadow-soft: 0 14px 40px rgba(15, 35, 28, 0.09);
	--sdm-max: 1240px;
	--sdm-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--sdm-font-ui: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

	font-family: var(--sdm-font-ui);
	color: var(--sdm-text);
	background: var(--sdm-bg);
	line-height: 1.7;
	padding: 26px 0 72px;
	overflow-x: clip;
}

.sdmp *,
.sdmp *::before,
.sdmp *::after { box-sizing: border-box; }

.sdmp-container { width: min(100% - 48px, var(--sdm-max)); margin-inline: auto; }

.sdmp h1, .sdmp h2, .sdmp h3 { font-family: var(--sdm-font-display); font-weight: 600; line-height: 1.18; margin: 0; color: var(--sdm-text); }

.sdmp a:focus-visible { outline: 2px solid var(--sdm-gold); outline-offset: 3px; }
.sdmp summary:focus-visible { outline: 2px solid var(--sdm-gold); outline-offset: 3px; }

/* ---------- Fil d'Ariane ---------- */
.sdmp-crumbs {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
	font-size: 0.82rem; letter-spacing: 0.02em; color: var(--sdm-text-muted);
	margin-bottom: 22px;
}
.sdmp-crumbs a { color: var(--sdm-gold-text); text-decoration: none; }
.sdmp-crumbs a:hover { text-decoration: underline; }
.sdmp-crumbs [aria-current] { color: var(--sdm-text); font-weight: 500; }

/* ---------- Héro ---------- */
.sdmp-hero {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 40px;
	align-items: center;
	background: var(--sdm-surface);
	border: 1px solid var(--sdm-border);
	border-radius: var(--sdm-radius-lg);
	box-shadow: var(--sdm-shadow-soft);
	padding: 40px;
}
.sdmp-hero--nomedia { grid-template-columns: 1.4fr 0.6fr; }

.sdmp-eyebrow {
	margin: 0 0 10px;
	font-size: 0.78rem; font-weight: 600;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--sdm-gold-text);
}
.sdmp-eyebrow-type { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--sdm-border); color: var(--sdm-text-muted); }

.sdmp-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-style: normal; }

.sdmp-intro { margin: 14px 0 0; max-width: 56ch; color: var(--sdm-text-muted); font-size: 1.02rem; }

.sdmp-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.sdmp-chip {
	padding: 6px 13px;
	background: var(--sdm-surface-alt);
	color: var(--sdm-gold-text);
	border-radius: 999px;
	font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
}

.sdmp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.sdmp a.sdmp-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 0.92rem; font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.sdmp a.sdmp-btn-primary { background-color: var(--sdm-accent); background-image: none; color: #fdfaf2; }
.sdmp a.sdmp-btn-primary:hover { background-color: var(--sdm-accent-hover); color: #fdfaf2; }
.sdmp a.sdmp-btn-ghost { background-color: transparent; background-image: none; color: var(--sdm-accent); border-color: var(--sdm-border); }
.sdmp a.sdmp-btn-ghost:hover { border-color: var(--sdm-gold); color: var(--sdm-accent); }

.sdmp-status { margin: 18px 0 0; font-size: 0.82rem; color: var(--sdm-text-muted); }

.sdmp-hero-media { margin: 0; border-radius: var(--sdm-radius-md); overflow: hidden; }
.sdmp-hero-media img { display: block; width: 100%; height: 100%; max-height: 460px; object-fit: cover; }

.sdmp-hero-fallback {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	min-height: 220px;
	background: var(--sdm-surface-alt);
	color: var(--sdm-gold-text);
	font-size: 0.85rem;
	border-radius: var(--sdm-radius-md);
}

/* ---------- Colonnes ---------- */
.sdmp-columns {
	display: grid;
	grid-template-columns: 1.55fr 0.85fr;
	gap: 36px;
	align-items: start;
	margin-top: 36px;
}

.sdmp-section { margin-bottom: 34px; }
.sdmp-section h2 { font-size: 1.45rem; margin-bottom: 14px; }
.sdmp-section p { margin: 0 0 14px; color: var(--sdm-text); }
.sdmp-section p:last-child { margin-bottom: 0; }

/* Galerie */
.sdmp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sdmp-gallery-item { margin: 0; border-radius: var(--sdm-radius-md); overflow: hidden; }
.sdmp-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.sdmp-faq {
	border: 1px solid var(--sdm-border);
	border-radius: var(--sdm-radius-md);
	background: var(--sdm-surface);
	margin-bottom: 10px;
	padding: 0 18px;
}
.sdmp-faq summary {
	cursor: pointer;
	padding: 14px 0;
	font-weight: 600;
	list-style-position: outside;
}
.sdmp-faq p { padding: 0 0 16px; margin: 0; color: var(--sdm-text-muted); }

/* ---------- Panneau infos ---------- */
.sdmp-facts {
	position: sticky; top: 96px;
	background: var(--sdm-surface);
	border: 1px solid var(--sdm-border);
	border-radius: var(--sdm-radius-lg);
	box-shadow: var(--sdm-shadow-soft);
	padding: 26px;
}
.sdmp-facts h2 { font-size: 1.15rem; margin-bottom: 14px; }
.sdmp-facts h3 { font-size: 1rem; margin: 20px 0 10px; }
.sdmp-facts dl { margin: 0; }
.sdmp-facts dt {
	font-size: 0.72rem; font-weight: 600;
	letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--sdm-text-muted);
	margin-top: 14px;
}
.sdmp-facts dt:first-child { margin-top: 0; }
.sdmp-facts dd { margin: 3px 0 0; font-size: 0.95rem; }
.sdmp-facts a { color: var(--sdm-accent); text-decoration: none; border-bottom: 1px solid var(--sdm-gold-soft, #e6d3ae); }
.sdmp-facts a:hover { color: var(--sdm-accent-hover); }

.sdmp-hours { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.sdmp-hours th { text-align: left; font-weight: 500; color: var(--sdm-text-muted); padding: 4px 0; }
.sdmp-hours td { text-align: right; padding: 4px 0; }

.sdmp-facts-note { margin: 16px 0 0; font-size: 0.8rem; color: var(--sdm-text-muted); }

/* ---------- Fiches proches ---------- */
.sdmp-related { margin-top: 10px; }
.sdmp-related h2 { font-size: 1.45rem; margin-bottom: 18px; }
.sdmp-related .sdm-dir { background: transparent; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.sdmp-hero { grid-template-columns: 1fr 1fr; padding: 30px; gap: 28px; }
	.sdmp-columns { grid-template-columns: 1.4fr 1fr; gap: 26px; }
}

@media (max-width: 820px) {
	.sdmp-container { width: min(100% - 32px, var(--sdm-max)); }
	.sdmp-hero, .sdmp-hero--nomedia { grid-template-columns: 1fr; padding: 24px; }
	.sdmp-hero-media { order: -1; }
	.sdmp-hero-fallback { display: none; }
	.sdmp-hero-media img { max-height: 300px; }
	.sdmp-columns { grid-template-columns: 1fr; }
	.sdmp-facts { position: static; }
	.sdmp-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; }
	.sdmp-gallery-item { flex: 0 0 78%; scroll-snap-align: start; }
	.sdmp a.sdmp-btn { flex: 1 1 auto; justify-content: center; min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	.sdmp *, .sdmp *::before, .sdmp *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Phase 4C : une puce de soin devient un lien quand une page service existe pour la ville. */
.sdmp-chip a { color: inherit; text-decoration: none; }
.sdmp-chip a:hover, .sdmp-chip a:focus-visible { text-decoration: underline; }
