/* ============================================================
   GROUPE POLMAR - Home page
   Dépend des variables de main.css (:root)
   ============================================================ */

.hm { overflow-x: clip; }

/* ── Kicker / têtes de section ── */
.hm-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pink);
	margin-bottom: 14px;
}
.hm-kicker::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--pink);
	border-radius: 2px;
}
.hm-kicker--light { color: #E3B8DA; }
.hm-kicker--light::before { background: #E3B8DA; }

.hm-section { padding: 84px 0; }
.hm-section__head { max-width: 680px; margin-bottom: 44px; }
.hm-section__head h2 { margin-bottom: 8px; }
.hm-section__sub { color: var(--g600); font-size: .95rem; }
.hm-section__head--split {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.hm-section__foot { margin-top: 40px; text-align: center; }

/* ── Apparition au scroll (classe posée en JS, fallback sans JS = tout visible) ── */
.hm-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .65s ease, transform .65s cubic-bezier(.22, .61, .36, 1);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}
.hm-reveal.is-in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.hm-reveal { opacity: 1; transform: none; transition: none; }
}

/* ════════ HERO ════════ */
.hm-hero {
	position: relative;
	min-height: 640px;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
}
/* Fond séparé du contenu pour la parallaxe : déborde en haut pour couvrir le décalage */
.hm-hero__bg {
	position: absolute;
	top: -180px;
	right: 0;
	bottom: 0;
	left: 0;
	background-size: cover;
	background-position: center;
	will-change: transform;
}
.hm-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12,32,48,.9) 0%, rgba(15,49,76,.72) 55%, rgba(15,49,76,.5) 100%);
}
.hm-hero__in {
	position: relative;
	z-index: 1;
	padding-top: 70px;
	padding-bottom: 64px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
/* Trait symétrique du kicker centré */
.hm-hero__in .hm-kicker::after {
	content: "";
	width: 26px;
	height: 2px;
	background: #E3B8DA;
	border-radius: 2px;
}
.hm-hero__title {
	color: #fff;
	font-size: clamp(2.9rem, 7vw, 5.6rem);
	font-weight: 800;
	line-height: .96;
	max-width: 880px;
	margin-bottom: 16px;
}
.hm-hero__title span { color: var(--pink); }
.hm-hero__sub {
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	font-weight: 500;
	color: rgba(255,255,255,.88);
	margin-bottom: 36px;
}

/* Entrée en scène du hero au chargement */
@media (prefers-reduced-motion: no-preference) {
	@keyframes hmHeroUp {
		from { opacity: 0; transform: translateY(26px); }
		to   { opacity: 1; transform: none; }
	}
	.hm-hero__in > * { animation: hmHeroUp .7s cubic-bezier(.22, .61, .36, 1) backwards; }
	.hm-hero__in > :nth-child(1) { animation-delay: .05s; }
	.hm-hero__in > :nth-child(2) { animation-delay: .13s; }
	.hm-hero__in > :nth-child(3) { animation-delay: .21s; }
	.hm-hero__in > :nth-child(4) { animation-delay: .29s; }
	.hm-hero__in > :nth-child(5) { animation-delay: .37s; }
	.hm-hero__in > :nth-child(6) { animation-delay: .45s; }
}

/* ── Moteur de recherche VO ── */
.hm-search {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	gap: 0;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	max-width: 1080px;
	width: 100%;
	margin: 0 auto;
	text-align: left;
	transition: box-shadow var(--transition);
}
.hm-search:focus-within {
	box-shadow: var(--shadow-lg), 0 0 0 3px rgba(193,127,181,.4);
}
.hm-search__field {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 20px;
	border-right: 1px solid var(--g100);
	transition: background var(--transition);
}
.hm-search__field:hover { background: var(--g50); }
.hm-search__field label {
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--g400);
}
.hm-search__field select {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230F314C' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right center;
	font-family: var(--ff);
	font-size: .88rem;
	font-weight: 600;
	color: var(--navy);
	padding: 4px 24px 4px 0;
	cursor: pointer;
	outline: none;
	width: 100%;
}
.hm-search__field select:disabled {
	color: var(--g400);
	cursor: not-allowed;
	opacity: .7;
}
.hm-search__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border: none;
	background: var(--navy);
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 0 34px;
	cursor: pointer;
	transition: background var(--transition);
}
.hm-search__btn svg { transition: transform var(--transition); }
.hm-search__btn:hover { background: var(--pink); }
.hm-search__btn:hover svg { transform: scale(1.18); }

.hm-hero__count {
	margin-top: 18px;
	font-size: .85rem;
	color: rgba(255,255,255,.85);
}
.hm-hero__count strong { color: #fff; font-weight: 800; }
.hm-hero__count a {
	margin-left: 16px;
	color: #E3B8DA;
	font-weight: 700;
	font-size: .8rem;
	transition: color var(--transition);
}
.hm-hero__count a:hover { color: #fff; }

/* ── Chiffres clés intégrés au hero, sous le moteur de recherche ── */
.hm-hero__stats {
	margin-top: 38px;
	width: 100%;
	max-width: 1080px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.hm-stat {
	text-align: center;
	padding: 18px 12px 15px;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: var(--radius);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.hm-stat:hover {
	background: rgba(255,255,255,.12);
	border-color: rgba(227,184,218,.5);
	transform: translateY(-3px);
}
.hm-stat__num {
	display: block;
	font-family: var(--fc);
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	font-weight: 800;
	line-height: 1.05;
	color: #fff;
}
.hm-stat__label {
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #E3B8DA;
}

/* ════════ MARQUES ════════ */
.hm-brands { background: #fff; }
.hm-brands__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}
.hm-brands__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 104px;
	background: var(--g50);
	border: 1.5px solid transparent;
	border-radius: var(--radius);
	transition: all var(--transition);
}
.hm-brands__item img {
	max-height: 64px;
	max-width: 72%;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: .8;
	transition: all var(--transition);
}
.hm-brands__item:hover {
	background: #fff;
	border-color: var(--navy);
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}
.hm-brands__item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.06); }

/* ════════ OCCASIONS ════════ */
.hm-vo { background: var(--g50); }
.pmvo-grid--home {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* ════════ LE GROUPE ════════ */
.hm-group { background: #fff; }
.hm-group__in {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 64px;
	align-items: center;
}
.hm-group__media {
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
}
.hm-group__media img {
	width: 100%;
	height: 440px;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.hm-group__media:hover img { transform: scale(1.04); }
.hm-group__content h2 { margin-bottom: 18px; }
.hm-group__content p {
	color: var(--g600);
	font-size: .92rem;
	margin-bottom: 16px;
}
.hm-group__content .btn { margin-top: 10px; }

/* ════════ EXPERTISES ════════ */
.hm-skills { background: var(--g50); }
.hm-skills__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.hm-skill {
	display: block;
	background: #fff;
	border-radius: var(--radius);
	padding: 34px 30px;
	border: 1.5px solid transparent;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition);
}
.hm-skill:hover {
	border-color: var(--navy);
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}
.hm-skill__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: var(--g100);
	color: var(--navy);
	margin-bottom: 18px;
	transition: all var(--transition);
}
.hm-skill:hover .hm-skill__icon { background: var(--navy); color: #fff; transform: scale(1.08) rotate(-4deg); }
.hm-skill h3 { font-size: 1.08rem; margin-bottom: 8px; }
.hm-skill p { color: var(--g600); font-size: .85rem; margin-bottom: 16px; }
.hm-skill__link {
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--pink);
	transition: letter-spacing var(--transition);
}
.hm-skill:hover .hm-skill__link { letter-spacing: .08em; }

/* ════════ ACTUALITÉS ════════ */
.hm-news { background: #fff; }
.hm-news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.hm-news__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--g100);
	box-shadow: var(--shadow-sm);
	transition: all var(--transition);
}
.hm-news__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}
.hm-news__img {
	height: 190px;
	background: var(--g100);
	overflow: hidden;
}
.hm-news__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.hm-news__card:hover .hm-news__img img { transform: scale(1.05); }
.hm-news__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 24px 24px;
}
.hm-news__body time {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pink);
	margin-bottom: 8px;
}
.hm-news__body h3 {
	font-size: 1.15rem;
	line-height: 1.2;
	margin-bottom: 14px;
}
.hm-news__link {
	margin-top: auto;
	font-size: .76rem;
	font-weight: 700;
	color: var(--navy);
}
.hm-news__card:hover .hm-news__link { color: var(--pink); }

/* ════════ RECRUTEMENT ════════ */
.hm-jobs {
	position: relative;
	padding: 104px 0;
	background-size: cover;
	background-position: center;
	color: #fff;
}
.hm-jobs__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(12,32,48,.94) 0%, rgba(15,49,76,.82) 55%, rgba(15,49,76,.55) 100%);
}
.hm-jobs__in { position: relative; z-index: 1; max-width: 720px; }
.hm-jobs__in h2 { color: #fff; margin-bottom: 16px; }
.hm-jobs__in p {
	color: rgba(255,255,255,.85);
	font-size: .95rem;
	margin-bottom: 28px;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1200px) {
	.pmvo-grid--home { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
	.hm-section { padding: 64px 0; }
	.hm-search { grid-template-columns: 1fr 1fr; max-width: 640px; }
	.hm-search__field { border-bottom: 1px solid var(--g100); }
	.hm-search__btn { grid-column: 1 / -1; padding: 16px; }
	.hm-hero__stats { max-width: 640px; gap: 10px; }
	.hm-group__in { grid-template-columns: 1fr; gap: 36px; }
	.hm-group__media img { height: 320px; }
	.hm-skills__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
	.hm-news__grid { grid-template-columns: repeat(2, 1fr); }
	.pmvo-grid--home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.hm-hero { min-height: 0; }
	.hm-search { grid-template-columns: 1fr; }
	.hm-search__field { border-right: none; }
	.hm-hero__count a { display: block; margin: 6px 0 0; }
	.hm-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.hm-stat { padding: 14px 8px 12px; }
	.hm-news__grid { grid-template-columns: 1fr; }
	.pmvo-grid--home { grid-template-columns: 1fr; }
	.hm-section__head--split { align-items: flex-start; flex-direction: column; }
	.hm-jobs { padding: 72px 0; }
}
