/*
 * Styles de la page d'accueil (front-page.php).
 * Esprit Suntech : marine + orange, formes en biais, cartes.
 */

/* ── Hero slider pleine largeur (image de fond + texte centré) ────────── */
.mq-hero {
	position: relative;
	min-height: clamp(520px, 78vh, 740px);
	background: var(--mq-color-secondary);
	color: #fff;
	overflow: hidden;
}

.mq-hero__slides { position: absolute; inset: 0; }

.mq-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease;
}

.mq-hero__slide.is-active { opacity: 1; visibility: visible; }

/* Photo plein cadre. */
.mq-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Overlay marine pour la lisibilité du texte. */
.mq-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 25, 76, 0.55), rgba(0, 25, 76, 0.8));
}

/* Contenu aligné à gauche, calé sur la largeur du conteneur. */
.mq-hero__inner {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: clamp(4rem, 10vh, 6rem);
	padding-inline: max(var(--mq-space-3), calc((100% - var(--mq-container)) / 2));
}

.mq-hero__content { max-width: 640px; }

/* Eyebrow orange avec petit trait. */
.mq-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--mq-font-head);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mq-color-primary-vivid);
	margin: 0 0 var(--mq-space-2);
}

.mq-hero__kicker::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--mq-color-primary);
}

.mq-hero__title {
	color: #fff;
	font-family: var(--mq-font-head);
	font-weight: 800;
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 var(--mq-space-3);
	max-width: 18ch;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.mq-hero__sub {
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(1rem, 1.2vw, 1.15rem);
	font-weight: 400;
	line-height: 1.65;
	margin: 0 0 var(--mq-space-4);
	max-width: 52ch;
}

/* Points clés (puces à coche orange). */
.mq-hero__points {
	list-style: none;
	margin: 0 0 var(--mq-space-5);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.mq-hero__points li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: #fff;
	font-weight: 500;
	font-size: 0.98rem;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.mq-hero__points svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	padding: 4px;
	border-radius: 50%;
	background: var(--mq-color-primary);
	color: #fff;
}

.mq-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mq-space-2);
}

/* Navigation : points à gauche, flèches à droite (comme la référence). */
.mq-hero__nav {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: clamp(1rem, 3vh, 2rem);
	z-index: 3;
	width: min(100% - 2 * var(--mq-space-3), var(--mq-container));
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--mq-space-3);
	/* Le conteneur ne capte pas les clics : les CTA du hero restent cliquables.
	   Seuls les contrôles (dots + flèches) sont interactifs. */
	pointer-events: none;
}

.mq-hero__dots,
.mq-hero__arrows { pointer-events: auto; }

.mq-hero__dots { display: flex; gap: 0.5rem; }

.mq-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background-color 0.2s ease, width 0.2s ease;
}

.mq-hero__dot.is-active { background: var(--mq-color-primary); width: 26px; border-radius: 6px; }

.mq-hero__arrows { display: flex; gap: 0.6rem; }

.mq-hero__arrow {
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mq-hero__arrow:hover { background: var(--mq-color-primary); border-color: var(--mq-color-primary); }

/* Les primitives .mq-services / .mq-card / .mq-cta vivent dans main.css
   (partagées avec les gabarits Leistungen). */

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.mq-hero__inner { padding-inline: var(--mq-space-3); }
}

/* ── Feature IoT / Smart Tech (blob + play + circuit, esprit Suntech) ──── */
.mq-feature__inner {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	align-items: center;
	gap: var(--mq-space-8);
}

.mq-feature__media {
	position: relative;
	max-width: 400px;
	margin-inline: auto;
	color: var(--mq-color-line);
}

.mq-feature__blob {
	position: relative;
	border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
	overflow: hidden;
	box-shadow: var(--mq-shadow);
}

.mq-feature__blob img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.mq-feature__circuit {
	position: absolute;
	top: -22px;
	left: -34px;
	width: 150px;
	color: var(--mq-color-line);
	z-index: -1;
}

.mq-feature__circuit .mq-feature__dot { fill: var(--mq-color-primary); }

.mq-feature__play {
	position: absolute;
	right: 6%;
	bottom: 8%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: var(--mq-color-primary);
	color: #fff;
	box-shadow: 0 10px 26px rgba(243, 90, 2, 0.4);
}

.mq-feature__play svg { width: 26px; height: 26px; margin-left: 3px; }

.mq-feature__play::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--mq-color-primary);
	animation: mq-pulse 2.2s ease-out infinite;
}

@keyframes mq-pulse {
	0%   { transform: scale(1);   opacity: 0.7; }
	100% { transform: scale(1.6); opacity: 0;   }
}

.mq-feature__list {
	list-style: none;
	margin: 0 0 var(--mq-space-4);
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.mq-feature__list li {
	position: relative;
	padding-left: 1.6rem;
	color: var(--mq-color-body);
}

.mq-feature__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 9px;
	height: 9px;
	background: var(--mq-color-primary);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 900px) {
	.mq-feature__inner { grid-template-columns: 1fr; gap: var(--mq-space-4); }
	.mq-feature__media { order: -1; }
	@media (prefers-reduced-motion: reduce) { .mq-feature__play::before { animation: none; } }
}

/* Cercle/anneau décoratif orange en pointillé derrière le blob IoT. */
.mq-feature__ring {
	position: absolute;
	inset: -20px -14px -14px -20px;
	border: 2px dashed rgba(243, 90, 2, 0.4);
	border-radius: 58% 42% 50% 50% / 55% 50% 50% 45%;
	z-index: -1;
}

/* ── Responsive fin (mobile / tablette) ──────────────────────────────── */
@media (max-width: 782px) {
	.mq-section { padding-block: var(--mq-space-6); }
	/* Hauteur suffisante pour eyebrow + titre + points + double CTA (slides empilées). */
	.mq-hero { min-height: clamp(560px, 86vh, 700px); }
	.mq-hero__inner { padding-block: 3rem; }
}

@media (max-width: 600px) {
	/* Décor IoT allégé sur petit écran (évite débordement/encombrement). */
	.mq-feature__circuit { display: none; }
	.mq-feature__ring { inset: -12px -8px -8px -12px; }
	.mq-feature__media { max-width: 300px; }
	.mq-feature__play { width: 56px; height: 56px; }
	.mq-feature__play svg { width: 22px; height: 22px; }
	.mq-hero__nav { bottom: 0.6rem; }
	.mq-hero__arrow { width: 40px; height: 40px; }
	/* Contenu hero plus compact sur mobile. */
	.mq-hero__sub { margin-bottom: var(--mq-space-3); }
	.mq-hero__points { gap: 0.4rem; margin-bottom: var(--mq-space-4); }
	.mq-hero__points li { font-size: 0.9rem; }
	.mq-hero__points svg { width: 20px; height: 20px; }
	.mq-hero__cta .mq-btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}
