/*
Theme Name: HM Social Boost
Theme URI: https://hmsocialboost.com
Author: HM Social Boost
Author URI: https://hmsocialboost.com
Description: Thème WordPress sur-mesure pour HM Social Boost — site vitrine + plateforme de formation (HM Courses). Identité violet / or / crème.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hm-theme
*/

/* ==========================================================================
   Variables de marque — identiques à celles du plugin HM Courses
   ========================================================================== */

:root {
	--hm-violet: #4A0080;
	--hm-violet-dark: #34005c;
	--hm-violet-soft: #f1e6fb;
	--hm-gold: #C8A96E;
	--hm-gold-dark: #ab8c54;
	--hm-cream: #F7F3ED;
	--hm-ink: #241a30;
	--hm-ink-soft: #5c5168;
	--hm-white: #ffffff;
	--hm-border: #e4dcd0;
	--hm-radius: 10px;
	--hm-shadow: 0 8px 28px rgba(74, 0, 128, 0.08);
	--hm-font-display: 'Cormorant Garamond', serif;
	--hm-font-body: 'DM Sans', sans-serif;
	--hm-container: 1400px;
}

/* ==========================================================================
   Reset minimal
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--hm-font-body);
	color: var(--hm-ink);
	background: var(--hm-white);
	line-height: 1.65;
	font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--hm-violet); text-decoration: none; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
	font-family: var(--hm-font-display);
	color: var(--hm-violet-dark);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 16px;
}
p { margin: 0 0 16px; }
.hm-container { max-width: var(--hm-container); margin: 0 auto; padding: 0 24px; }
.hm-section { padding: 72px 0; }
.hm-section-tight { padding: 48px 0; }
.hm-eyebrow { display: inline-block; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hm-gold-dark); margin-bottom: 10px; font-weight: 600; }
.hm-center { text-align: center; }
.hm-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--hm-violet); border: 1.5px solid var(--hm-gold);
	color: var(--hm-cream); font-family: var(--hm-font-display);
	font-weight: 600; font-size: 16px;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.hm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font-family: var(--hm-font-body); font-size: 14.5px; font-weight: 500;
	padding: 13px 26px; border-radius: var(--hm-radius); border: none;
	cursor: pointer; text-decoration: none; transition: opacity .15s ease, transform .1s ease;
}
.hm-btn:hover { opacity: .88; }
.hm-btn:active { transform: scale(.98); }
.hm-btn-violet { background: var(--hm-violet); color: var(--hm-cream); }
.hm-btn-gold { background: var(--hm-gold); color: var(--hm-violet-dark); }
.hm-btn-outline { background: transparent; color: var(--hm-violet); border: 1.5px solid var(--hm-violet); }
.hm-btn-outline-light { background: transparent; color: var(--hm-cream); border: 1.5px solid var(--hm-gold); }

/* ==========================================================================
   En-tête / navigation
   ========================================================================== */

.hm-site-header {
	background: var(--hm-white);
	border-bottom: 1px solid var(--hm-border);
	position: sticky; top: 0; z-index: 500;
}
.hm-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--hm-container); margin: 0 auto; }
.hm-logo { display: flex; align-items: center; gap: 10px; font-family: var(--hm-font-display); font-size: 19px; color: var(--hm-violet-dark); font-weight: 600; }
.hm-logo img { max-height: 42px; width: auto; }

.hm-primary-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; }
.hm-primary-nav a { font-size: 14.5px; font-weight: 500; color: var(--hm-ink); }
.hm-primary-nav a:hover { color: var(--hm-violet); }
.hm-header-cta { display: flex; align-items: center; gap: 18px; }

.hm-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hm-nav-toggle span { display: block; width: 24px; height: 2px; background: var(--hm-violet-dark); margin: 5px 0; }

@media (max-width: 880px) {
	.hm-primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--hm-white); border-bottom: 1px solid var(--hm-border); padding: 12px 24px 20px; }
	.hm-primary-nav.is-open { display: block; }
	.hm-primary-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
	.hm-nav-toggle { display: block; }
	.hm-header-cta .hm-btn-outline { display: none; }
}

/* ==========================================================================
   Hero (accueil)
   ========================================================================== */

.hm-hero {
	background: linear-gradient(135deg, var(--hm-violet) 0%, var(--hm-violet-dark) 100%);
	color: var(--hm-cream);
	padding: 96px 0 88px;
	text-align: center;
}
.hm-hero h1 { color: var(--hm-cream); font-size: 46px; max-width: 760px; margin: 0 auto 18px; }
.hm-hero p.hm-hero-sub { color: #d9c2f0; font-size: 17px; max-width: 600px; margin: 0 auto 32px; }
.hm-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Grilles services / formations (accueil + templates)
   ========================================================================== */

.hm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hm-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.hm-service-card, .hm-course-card-theme {
	background: var(--hm-white);
	border: 1px solid var(--hm-border);
	border-radius: var(--hm-radius);
	padding: 30px 26px;
	height: 100%;
}
.hm-service-card .hm-service-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--hm-violet-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px; color: var(--hm-violet); }
.hm-service-card h3 { font-size: 19px; margin-bottom: 8px; }
.hm-service-card p { font-size: 14.5px; color: var(--hm-ink-soft); margin-bottom: 0; }

.hm-course-card-theme { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.hm-course-card-theme-media { height: 170px; background: var(--hm-violet-soft); overflow: hidden; }
.hm-course-card-theme-media img { width: 100%; height: 100%; object-fit: cover; }
.hm-course-card-theme-media .hm-course-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--hm-font-display); font-size: 28px; color: var(--hm-violet); }
.hm-course-card-theme-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.hm-course-card-theme-body h3 { font-size: 19px; margin-bottom: 8px; }
.hm-course-card-theme-body p { font-size: 14px; color: var(--hm-ink-soft); flex: 1; }
.hm-course-card-theme-price { font-family: var(--hm-font-display); color: var(--hm-violet-dark); font-size: 18px; margin-bottom: 14px; }

.hm-cta-band { background: var(--hm-cream); border-radius: var(--hm-radius); padding: 56px 40px; text-align: center; }
.hm-cta-band h2 { margin-bottom: 10px; }
.hm-cta-band p { color: var(--hm-ink-soft); max-width: 520px; margin: 0 auto 26px; }

/* ==========================================================================
   Pages standards
   ========================================================================== */

.hm-page-header { background: var(--hm-cream); padding: 56px 0; text-align: center; margin-bottom: 8px; }
.hm-page-header h1 { margin: 0; font-size: 34px; }
.hm-page-content { padding: 40px 0 60px; }
.hm-page-content img { border-radius: 10px; margin: 20px 0; }

/* Articles de blog */
.hm-post-meta { color: var(--hm-ink-soft); font-size: 13.5px; margin-bottom: 24px; }
.hm-post-thumb { border-radius: var(--hm-radius); overflow: hidden; margin-bottom: 32px; }

/* 404 */
.hm-404 { text-align: center; padding: 110px 24px; }
.hm-404 .hm-mark { width: 64px; height: 64px; font-size: 24px; margin-bottom: 24px; }


/* ==========================================================================
   Pied de page
   ========================================================================== */

.hm-site-footer { background: var(--hm-violet-dark); color: #d9c2f0; padding: 64px 0 28px; margin-top: 64px; }
.hm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.hm-footer-brand .hm-logo { color: var(--hm-cream); }
.hm-footer-brand p { color: #c6a9e0; font-size: 14px; margin-top: 14px; max-width: 280px; }
.hm-footer-col h4 { color: var(--hm-cream); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.hm-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hm-footer-col a { color: #d9c2f0; font-size: 14px; }
.hm-footer-col a:hover { color: var(--hm-gold); }
.hm-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #b79bd1; }

@media (max-width: 760px) {
	.hm-footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.hm-grid-3, .hm-grid-2 { grid-template-columns: 1fr; }
	.hm-hero h1 { font-size: 32px; }
	.hm-hero { padding: 64px 0; }
}
