/*
 * Styles globaux custom — base du thème enfant.
 * Étape initiale (Phase 1). Les composants (top bar, footer, sections de page)
 * seront ajoutés dans leurs fichiers dédiés au fil des phases.
 */

body {
	font-family: var(--mq-font-body);
	color: var(--mq-color-body);
	line-height: var(--mq-lh-base);
}

h1, h2, h3, h4 {
	font-family: var(--mq-font-head);
	color: var(--mq-color-ink);
	line-height: 1.2;
}

a {
	color: var(--mq-color-primary);
}

a:hover {
	color: var(--mq-color-primary-dark);
}

/* Conteneur utilitaire centré à la largeur de charte. */
.mq-container {
	width: 100%;
	max-width: var(--mq-container);
	margin-inline: auto;
	padding-inline: var(--mq-space-3);
}

/* ═══ Primitives design (esprit Suntech) ═════════════════════════════════ */

/* ── Boutons ─────────────────────────────────────────────────────────────
 * Repris de Suntech : carrés (radius 0), primaire orange / secondaire marine,
 * variantes outline + blanc, et un modificateur "biais" (clip-path) pour les
 * CTA, signature visuelle Suntech.
 */
.mq-btn {
	display: inline-block;
	font-family: var(--mq-font-head);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	padding: 0.9rem 2.2rem;
	border: 2px solid transparent;
	border-radius: 0;
	background: var(--mq-color-primary);
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mq-btn:hover,
.mq-btn:focus { background: var(--mq-color-primary-dark); color: #fff; }

.mq-btn--secondary { background: var(--mq-color-secondary); border-color: var(--mq-color-secondary); }
.mq-btn--secondary:hover,
.mq-btn--secondary:focus { background: #001236; color: #fff; }

/* Outline (contour) : fond transparent, se remplit au survol. */
.mq-btn--outline {
	background: transparent;
	border-color: var(--mq-color-primary);
	color: var(--mq-color-primary);
}
.mq-btn--outline:hover,
.mq-btn--outline:focus { background: var(--mq-color-primary); color: #fff; }

.mq-btn--white { background: #fff; color: var(--mq-color-secondary); border-color: #fff; }
.mq-btn--white:hover { background: transparent; color: #fff; }

/* Ghost (fantôme) : bouton clair semi-transparent sur fond sombre (hero, CTA). */
.mq-btn--ghost {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}
.mq-btn--ghost:hover,
.mq-btn--ghost:focus { background: #fff; border-color: #fff; color: var(--mq-color-secondary); }

/* Modificateur biais : bord droit en pointe (signature Suntech). */
.mq-btn--angle {
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
	padding-right: 2.6rem;
}

/* ── Sections & en-têtes de section ──────────────────────────────────── */
.mq-section { padding-block: var(--mq-space-8); }
.mq-section--soft { background: var(--mq-color-bg-soft); }

.mq-head { max-width: 780px; margin-bottom: var(--mq-space-6); }
.mq-head--center { margin-inline: auto; text-align: center; }

/* En-tête de section centré : kicker encadré de deux traits orange (épuré + pro). */
.mq-head--center .mq-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
}
.mq-head--center .mq-kicker::before,
.mq-head--center .mq-kicker::after {
	content: "";
	width: 26px;
	height: 2px;
	border-radius: 2px;
	background: var(--mq-color-primary);
}

/* Petit intitulé au-dessus du titre (orange, majuscules). */
.mq-kicker {
	display: inline-block;
	font-family: var(--mq-font-head);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mq-color-primary);
	margin-bottom: var(--mq-space-1);
}

.mq-title {
	font-size: clamp(1.7rem, 3.5vw, 2.6rem);
	line-height: 1.15;
	color: var(--mq-color-ink);
	margin: 0 0 var(--mq-space-2);
}

.mq-sub {
	font-size: 1.05rem;
	color: var(--mq-color-muted);
	margin: 0;
}

/* ── Grille de services / cartes (primitive partagée : home + Leistungen) ─ */
.mq-services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--mq-space-3);
}

.mq-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: var(--mq-space-4);
	background: #fff;
	border: 1px solid var(--mq-color-line);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Coin orange en biais (haut-droit) qui s'intensifie au survol. */
.mq-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	border-style: solid;
	border-width: 0 42px 42px 0;
	border-color: transparent var(--mq-color-primary) transparent transparent;
	opacity: 0.12;
	transition: opacity 0.25s ease, border-width 0.25s ease;
}

/* Barre orange en bas qui grandit au survol. */
.mq-card::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 0;
	background: var(--mq-color-primary);
	transition: width 0.3s ease;
}

.mq-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--mq-shadow);
	border-color: transparent;
}

.mq-card:hover::before { opacity: 1; border-width: 0 54px 54px 0; }
.mq-card:hover::after { width: 100%; }

/* Icône en biais (signature Suntech), se remplit d'orange au survol. */
.mq-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	background: rgba(243, 90, 2, 0.12);
	color: var(--mq-color-primary);
	clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
	transition: background-color 0.25s ease, color 0.25s ease;
}

.mq-card:hover .mq-card__icon { background: var(--mq-color-primary); color: #fff; }

.mq-card__icon svg { width: 28px; height: 28px; }

.mq-card__title { font-size: 1.15rem; margin: 0; color: var(--mq-color-ink); }
.mq-card__desc { margin: 0; color: var(--mq-color-body); font-size: 0.95rem; line-height: 1.55; }

.mq-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	margin-top: auto;
	padding-top: 0.4rem;
	color: var(--mq-color-primary);
	font-weight: 600;
	font-size: 0.9rem;
}

.mq-card__more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.mq-card:hover .mq-card__more svg { transform: translateX(3px); }

/* ── Bandeau CTA (primitive partagée : home + Leistungen) ────────────── */
.mq-cta { background: var(--mq-color-primary); color: #fff; }

.mq-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mq-space-3);
	padding-block: var(--mq-space-6);
	flex-wrap: wrap;
}

.mq-cta__title { color: #fff; margin: 0 0 0.3rem; font-size: 1.6rem; }
.mq-cta__sub { margin: 0; color: rgba(255, 255, 255, 0.9); }

/* ── Pager (navigation précédent / suivant entre fiches CPT) ─────────── */
.mq-pager {
	display: flex;
	align-items: stretch;
	gap: var(--mq-space-3);
	margin-top: var(--mq-space-6);
	flex-wrap: wrap;
}

.mq-pager-link {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex: 1 1 240px;
	padding: var(--mq-space-3);
	background: #fff;
	border: 1px solid var(--mq-color-line);
	text-decoration: none;
	color: var(--mq-color-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mq-pager-link:hover {
	border-color: var(--mq-color-primary);
	box-shadow: var(--mq-shadow);
	transform: translateY(-2px);
}

.mq-pager-link--next { justify-content: flex-end; text-align: right; }

.mq-pager-link svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--mq-color-primary); }

.mq-pager-meta { display: flex; flex-direction: column; min-width: 0; }

.mq-pager-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--mq-color-muted);
}

.mq-pager-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mq-pager-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--mq-space-3) var(--mq-space-4);
	background: var(--mq-color-secondary);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.mq-pager-all:hover { background: var(--mq-color-primary); color: #fff; }

@media (max-width: 600px) {
	.mq-pager-all { order: 3; flex: 1 1 100%; }
}

/* Responsive des primitives cartes / CTA. */
@media (max-width: 900px) {
	.mq-services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.mq-cta__title { font-size: 1.35rem; }
}

@media (max-width: 600px) {
	.mq-card { padding: var(--mq-space-3); }
}

@media (max-width: 560px) {
	.mq-services { grid-template-columns: 1fr; }
	.mq-cta__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Top bar (contacts avec icônes rondes orange, épuré) ─────────────── */
/* Topbar : bande marine devenue une carte contenue (fixée en desktop). */
.mq-topbar {
	background: transparent;
	color: #fff;
	font-size: 0.98rem;
	padding-top: 0.7rem;
}

.mq-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mq-space-2) var(--mq-space-3);
	min-height: 44px;
	flex-wrap: wrap;
	background: var(--mq-color-secondary);
	padding: 0.3rem 1.4rem;
	border-radius: 10px;
	box-shadow: 0 8px 26px rgba(0, 12, 38, 0.16);
}

.mq-topbar__contact {
	display: flex;
	align-items: center;
	gap: var(--mq-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

.mq-topbar__contact li { display: flex; align-items: center; gap: 0.6rem; }

.mq-topbar__ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 50%;
	background: var(--mq-color-primary);
	color: #fff;
}

.mq-topbar__ic svg { width: 16px; height: 16px; }

.mq-topbar__ci { display: flex; flex-direction: column; line-height: 1.25; }
.mq-topbar__lbl { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

.mq-topbar__ci a,
.mq-topbar__ci span:not(.mq-topbar__lbl) {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.98rem;
}

.mq-topbar__ci a:hover { color: var(--mq-color-primary-vivid); }

.mq-topbar__right {
	display: flex;
	align-items: center;
	gap: var(--mq-space-2);
}

/* ── Sélecteur de langue ─────────────────────────────────────────────── */
.mq-lang {
	position: relative;
}

.mq-lang > summary {
	display: flex;
	align-items: center;
	gap: 0.45em;
	cursor: pointer;
	list-style: none;
	padding: 4px 6px;
	border-radius: var(--mq-radius-sm);
	color: #fff;
	user-select: none;
}

.mq-lang > summary::-webkit-details-marker { display: none; }
.mq-lang > summary:hover { background: rgba(255, 255, 255, 0.12); }

.mq-flag {
	display: inline-flex;
	width: 20px;
	height: 14px;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.mq-flag svg { width: 100%; height: 100%; display: block; }

/* Bascule du drapeau du sélecteur selon la langue active (classe is-en/is-fr
   ajoutée en JS). DE par défaut. */
.mq-lang__flag .mqf { display: none; }
.mq-lang__flag .mqf-de { display: inline-flex; }
.mq-lang.is-en .mq-lang__flag .mqf-de,
.mq-lang.is-fr .mq-lang__flag .mqf-de { display: none; }
.mq-lang.is-en .mq-lang__flag .mqf-en { display: inline-flex; }
.mq-lang.is-fr .mq-lang__flag .mqf-fr { display: inline-flex; }

/* Google Translate : on masque la barre/bannière et le tooltip injectés. */
.goog-te-banner-frame,
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-tooltip { display: none !important; }
body { top: 0 !important; }
#google_translate_element { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.mq-lang__chev {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.mq-lang[open] .mq-lang__chev { transform: rotate(180deg); }

.mq-lang__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 160px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border-radius: var(--mq-radius-sm);
	box-shadow: var(--mq-shadow);
	z-index: 60;
}

.mq-lang__menu a {
	display: flex;
	align-items: center;
	gap: 0.55em;
	padding: 7px 9px;
	border-radius: 6px;
	color: var(--mq-color-ink);
	text-decoration: none;
	font-size: 0.85rem;
}

.mq-lang__menu a:hover {
	background: var(--mq-color-bg-soft);
	color: var(--mq-color-primary-dark);
}

/* Le moteur GTranslate est piloté par notre sélecteur : on masque son widget. */
.gtranslate_wrapper { position: absolute; left: -9999px; top: -9999px; }

@media (max-width: 900px) {
	.mq-topbar__hours { display: none; }
}

@media (max-width: 600px) {
	.mq-topbar__lbl { display: none; }
	.mq-topbar__ic { width: 28px; height: 28px; }
	.mq-topbar__contact { gap: var(--mq-space-2); }
}

/* ── Footer (bleu Suntech) ───────────────────────────────────────────── */
.mq-footer {
	background: var(--mq-color-footer);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.92rem;
}

.mq-footer__inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: var(--mq-space-4);
	padding-block: var(--mq-space-8) var(--mq-space-6);
}

.mq-footer__logo {
	display: inline-block;
	margin-bottom: var(--mq-space-2);
}

.mq-footer__logo img {
	height: 46px;
	width: auto;
	max-width: 100%;
}

.mq-footer__brand p { max-width: 34ch; line-height: 1.6; }

.mq-footer__col h3 {
	color: #fff;
	font-size: 1rem;
	margin: 0 0 var(--mq-space-2);
}

.mq-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.mq-footer__col a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.mq-footer__col a:hover { color: var(--mq-color-primary-vivid); }

.mq-footer__contact p { margin: 0 0 var(--mq-space-2); line-height: 1.6; }

.mq-footer__social {
	display: flex;
	gap: 0.7rem;
	margin-top: var(--mq-space-3);
}

.mq-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.82);
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.mq-footer__social a:hover,
.mq-footer__social a:focus {
	background: var(--mq-color-primary);
	border-color: var(--mq-color-primary);
	color: #fff;
	transform: translateY(-3px);
}
.mq-footer__social svg { width: 19px; height: 19px; }

.mq-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.82rem;
}

.mq-footer__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mq-space-2);
	padding-block: var(--mq-space-2);
	flex-wrap: wrap;
}

.mq-footer__legal-ids { color: rgba(255, 255, 255, 0.6); }

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

.mq-footer__legal a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.mq-footer__legal a:hover { color: var(--mq-color-primary-vivid); }

@media (max-width: 782px) {
	.mq-footer__inner { grid-template-columns: 1fr 1fr; gap: var(--mq-space-3); }
	.mq-footer__brand { grid-column: 1 / -1; }
	.mq-footer__bar-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
	.mq-footer__inner { grid-template-columns: 1fr; }
}

/* ═══ Overrides Astra (header/footer) ════════════════════════════════════ */

/* Masquer le footer par défaut d'Astra ("Powered by Astra") : on garde
 * uniquement notre .mq-footer (injecté avant, en frère). */
.site-footer { display: none !important; }

/* ── Header façon Suntech ────────────────────────────────────────────────
 * Logo seul (le titre texte du site fait doublon avec le logo), menu propre
 * avec survol/actif orange, en Catamaran.
 */
.ast-site-identity .site-title,
.ast-site-identity .site-description {
	display: none !important;
}

/* Logo (méthode megaique.net) : hauteur forcée, largeur auto, léger hover.
 * !important car Astra impose une largeur via le Customizer. */
.site-header .custom-logo-link img,
.ast-site-identity .custom-logo-link img,
.site-header .site-logo-img .custom-logo {
	height: 58px !important;
	width: auto !important;
	max-width: none !important;
	transition: transform 0.2s ease;
}

/* Menu compact et sur une seule ligne (le CTA Kontakt reste en ligne). */
.main-header-menu { flex-wrap: nowrap; }

.main-header-menu .menu-link,
.ast-builder-menu-1 .main-header-menu .menu-item > .menu-link {
	padding-inline: 0.68rem;
	white-space: nowrap;
	font-size: 1.1rem;
}

/* Desktop étroit (922–1150px) : on resserre un peu pour que le menu complet
 * + le CTA Kontakt tiennent sur une ligne ; la grande police reste ≥ 1150px. */
@media (min-width: 922px) and (max-width: 1150px) {
	.main-header-menu .menu-link { padding-inline: 0.5rem; font-size: 1.02rem; }
	.site-header .custom-logo-link img { height: 50px !important; }
	.site-header .site-branding { padding-right: 1.8rem; }
}

.site-header .custom-logo-link:hover img { transform: translateY(-1px); }

/* Menu principal : typo et couleurs de charte. */
.main-header-menu .menu-link,
.ast-builder-menu-1 .main-header-menu .menu-item > .menu-link {
	font-family: var(--mq-font-head);
	font-weight: 600;
	color: var(--mq-color-ink);
}

.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link {
	color: var(--mq-color-primary);
}

/* Souligné orange (rappel Suntech) sur l'item actif. */
.main-header-menu > .menu-item {
	position: relative;
}

.main-header-menu > .current-menu-item > .menu-link::after,
.main-header-menu > .current-menu-ancestor > .menu-link::after {
	content: "";
	position: absolute;
	left: 0.8em;
	right: 0.8em;
	bottom: 0.35em;
	height: 3px;
	border-radius: 3px;
	background: var(--mq-color-primary);
}

/* L'item de la page courante en orange et gras (au-delà du soulignement),
 * pour bien le différencier du bouton CTA « Kontakt ». */
.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link {
	color: var(--mq-color-primary);
	font-weight: 700;
}

/* ── Header : base mobile / tablette (< 1200px) ─────────────────────────
 * Astra affiche le menu burger sous 1200px (cf. filtre PHP). Header blanc
 * simple et sticky, sans superposition sur le hero. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: transparent;
}

.main-header-bar {
	position: relative;
	background: #fff;
	border-bottom: 0;
	box-shadow: 0 2px 16px rgba(0, 12, 38, 0.1);
}

/* ── Header : version desktop (≥ 922px) flottante, fixée, sur le hero ─── */
@media (min-width: 922px) {
	.mq-topbar {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 101;
	}

	.site-header {
		position: fixed;
		top: var(--mq-topbar-h, 60px);
		left: 0;
		right: 0;
		background: transparent;
	}

	.main-header-bar {
		background: transparent;
		box-shadow: none;
		padding-top: 0.6rem;
	}

	/* Barre de navigation : carte blanche contenue (largeur du conteneur).
	 * Pas d'overflow:hidden ici (sinon les sous-menus déroulants seraient
	 * coupés) ; l'arrondi du bloc logo est géré sur .site-branding. */
	.main-header-bar .site-primary-header-wrap.ast-container {
		background: #fff;
		border-radius: 12px;
		box-shadow: 0 12px 34px rgba(0, 12, 38, 0.15);
	}
	/* Coins gauches du bloc logo orange arrondis pour épouser la carte. */
	.site-header .site-branding { border-radius: 12px 0 0 12px; }

	/* ── Sous-menus déroulants (desktop) : carte blanche soignée ────────── */
	.main-header-menu .sub-menu {
		background: #fff;
		border: 1px solid var(--mq-color-line);
		border-top: 3px solid var(--mq-color-primary);
		border-radius: 0 0 10px 10px;
		box-shadow: 0 18px 40px rgba(0, 12, 38, 0.18);
		padding: 0.4rem;
		min-width: 232px;
	}
	.main-header-menu .sub-menu .menu-link {
		padding: 0.62rem 0.9rem;
		border-radius: 7px;
		font-size: 0.95rem;
		font-weight: 600;
		color: var(--mq-color-ink);
		transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
	}
	.main-header-menu .sub-menu .menu-item:hover > .menu-link,
	.main-header-menu .sub-menu .current-menu-item > .menu-link {
		background: var(--mq-color-bg-soft);
		color: var(--mq-color-primary);
		padding-left: 1.1rem;
	}
	/* Sous-menu de 3e niveau : décalé sur le côté. */
	.main-header-menu .sub-menu .sub-menu { border-radius: 10px; }
	/* Flèche des items à sous-menu, alignée et discrète. */
	.main-header-menu .sub-menu .ast-menu-toggle { color: var(--mq-color-muted); }

	/* Home : le fond du hero passe derrière le header fixe (imbrication) ;
	 * le contenu est décalé pour rester lisible. */
	.home .mq-hero__inner { padding-top: calc(var(--mq-header-h, 148px) + clamp(1rem, 4vh, 2.5rem)); }

	/* Autres pages : on décale le contenu sous le header fixe. */
	body:not(.home) #content { padding-top: var(--mq-header-h, 148px); }
}

/* Bouton CTA (Kontakt) en biais dans le menu. */
.mq-menu-cta {
	display: flex;
	align-items: center;
	margin-left: 0.5rem;
	flex-shrink: 0;
}

.mq-menu-cta > .mq-btn {
	padding: 0.62rem 1.5rem 0.62rem 1.2rem;
	font-size: 0.95rem;
	color: #fff;
	white-space: nowrap; /* jamais couper « Kontakt » sur deux lignes */
	line-height: 1.1;
}

.mq-menu-cart { flex-shrink: 0; }

.mq-menu-cta > .mq-btn::after { display: none; } /* pas de soulignement actif */

/* Panier dans le menu (icône ronde + badge compteur). */
.mq-menu-cart { display: flex; align-items: center; margin-left: 0.2rem; }

.mq-menu-cart > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--mq-color-secondary);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mq-menu-cart > a:hover { background: var(--mq-color-bg-soft); color: var(--mq-color-primary); }
.mq-menu-cart svg { width: 24px; height: 24px; }

.mq-menu-cart .mq-cart__count {
	top: -1px;
	right: -1px;
	min-width: 18px;
	height: 18px;
	font-size: 0.66rem;
	border-width: 1.5px;
}

/* ── Menu mobile (reflète le desktop, épuré) ─────────────────────────── */
.ast-builder-menu-mobile .main-header-menu .menu-link,
.ast-mobile-popup-drawer .main-header-menu .menu-link {
	font-family: var(--mq-font-head);
	font-weight: 600;
	color: var(--mq-color-ink);
}

.ast-builder-menu-mobile .main-header-menu .menu-item:hover > .menu-link,
.ast-builder-menu-mobile .main-header-menu .current-menu-item > .menu-link {
	color: var(--mq-color-primary);
}

/* Bouton CTA en pleine largeur dans le menu mobile (pas de biais). */
.ast-builder-menu-mobile .mq-menu-cta { margin: 0.7rem 1rem 0.3rem; }

.ast-builder-menu-mobile .mq-menu-cta > .mq-btn {
	display: block;
	width: 100%;
	text-align: center;
	clip-path: none;
	padding: 0.85rem 1rem;
}

/* Burger mobile Astra = .main-header-menu-toggle (trigger « minimal ») :
 * bien visible, aux couleurs de charte. Les .ast-menu-toggle sont les flèches
 * de sous-menus, stylées à part. */
.main-header-menu-toggle {
	background: transparent;
	color: var(--mq-color-secondary);
	border: 0;
}
.main-header-menu-toggle:hover { color: var(--mq-color-primary); }
.main-header-menu-toggle .ast-mobile-svg,
.main-header-menu-toggle svg { fill: currentColor; width: 30px; height: 30px; }
.ast-menu-toggle svg { fill: currentColor; }

/* ── Bloc logo orange à découpe diagonale + slogan (Suntech Header Seven) ── */
.site-header .site-branding {
	background: var(--mq-color-primary);
	padding: 0.6rem 2.4rem 0.6rem 1.3rem;
	clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mq-brand-slogan {
	display: block;
	margin-top: 0.3rem;
	font-family: var(--mq-font-head);
	font-size: 0.72rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.2;
}

/* ── Responsive header (mobile/tablette) ─────────────────────────────── */
/* Sécurité : jamais de scroll horizontal. */
body { overflow-x: hidden; }

@media (max-width: 921px) {
	/* Barre mobile blanche (logo Astra à gauche). Le menu est géré par notre
	 * burger + drawer maison (inc/mobile-menu.php), plus fiable que le trigger
	 * d'Astra que l'on masque. */
	.ast-mobile-header-wrap { background: #fff; }
	.main-header-menu-toggle { display: none !important; }

	/* Bloc logo orange : sans découpe diagonale, plus compact sur mobile. */
	.site-header .site-branding {
		clip-path: none;
		padding: 0.4rem 0.9rem;
	}
	.site-header .custom-logo-link img,
	.ast-site-identity .custom-logo-link img,
	.site-header .site-logo-img .custom-logo {
		height: 50px !important;
	}
	.mq-brand-slogan { font-size: 0.62rem; margin-top: 0.15rem; }

	/* Top bar : centré et aéré quand ça passe à la ligne. */
	.mq-topbar__inner { justify-content: center; gap: var(--mq-space-2) var(--mq-space-3); padding-block: 0.4rem; }
}

@media (max-width: 480px) {
	.mq-brand-slogan { display: none; } /* slogan masqué sur très petit écran */
	.site-header .custom-logo-link img { height: 44px !important; }
}

/* ── Panier flottant WooCommerce (toujours visible, responsive) ──────── */
/* Coin bas-GAUCHE : évite la collision avec le badge reCAPTCHA et le bouton
 * « retour en haut », tous deux ancrés en bas-droite. */
.mq-cart {
	position: fixed;
	left: clamp(0.8rem, 2vw, 1.6rem);
	bottom: clamp(0.8rem, 2vw, 1.6rem);
	z-index: 95;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--mq-color-primary);
	color: #fff;
	box-shadow: 0 12px 30px rgba(243, 90, 2, 0.42);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.mq-cart:hover,
.mq-cart:focus { transform: translateY(-3px); background: var(--mq-color-primary-dark); color: #fff; }

.mq-cart svg { width: 26px; height: 26px; }

.mq-cart__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 11px;
	background: var(--mq-color-secondary);
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}

.mq-cart__count.is-empty { display: none; }

@media (max-width: 560px) {
	.mq-cart { width: 52px; height: 52px; }
	.mq-cart svg { width: 23px; height: 23px; }
}

/* ── Menu mobile maison : burger + drawer (< 922px) ──────────────────── */
/* Burger affiché par défaut, masqué en desktop (≥ 922px). Aligné sur la barre
 * du logo (sous la topbar, dont la hauteur est mesurée en JS). */
.mq-burger {
	position: fixed;
	top: calc(var(--mq-topbar-h, 56px) + 14px);
	right: 16px;
	z-index: 140;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 9px 7px;
	background: transparent;
	border: 0;
	cursor: pointer;
}

/* Burger masqué quand le drawer est ouvert (la croix du panneau suffit). */
.mq-drawer-open .mq-burger { display: none; }
.mq-burger span {
	display: block;
	height: 2.5px;
	width: 100%;
	background: var(--mq-color-secondary);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}
.mq-burger.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mq-burger.is-active span:nth-child(2) { opacity: 0; }
.mq-burger.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 922px) {
	.mq-burger { display: none; }
}

.mq-drawer { position: fixed; inset: 0; z-index: 130; }
.mq-drawer[hidden] { display: none; }

.mq-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 12, 38, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.mq-drawer.is-open .mq-drawer__backdrop { opacity: 1; }

.mq-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(84vw, 340px);
	background: #fff;
	box-shadow: -10px 0 40px rgba(0, 12, 38, 0.25);
	padding: var(--mq-space-6) var(--mq-space-4) var(--mq-space-4);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.3s ease;
}
.mq-drawer.is-open .mq-drawer__panel { transform: none; }

.mq-drawer__close {
	position: absolute;
	top: 8px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 2rem;
	line-height: 1;
	color: var(--mq-color-secondary);
	cursor: pointer;
}

.mq-drawer__menu { list-style: none; margin: var(--mq-space-4) 0 0; padding: 0; }
.mq-drawer__menu > li { border-bottom: 1px solid var(--mq-color-line); }
.mq-drawer__menu a {
	display: block;
	padding: 0.85rem 0.2rem;
	font-family: var(--mq-font-head);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--mq-color-ink);
	text-decoration: none;
}
.mq-drawer__menu a:hover { color: var(--mq-color-primary); }
.mq-drawer__menu .sub-menu {
	list-style: none;
	margin: 0.1rem 0 0.6rem;
	padding: 0.1rem 0 0.1rem 0.9rem;
	border-left: 2px solid var(--mq-color-primary);
}
.mq-drawer__menu .sub-menu li { border-bottom: 0; }
.mq-drawer__menu .sub-menu a {
	font-size: 0.96rem;
	font-weight: 500;
	padding: 0.5rem 0.2rem;
	color: var(--mq-color-body);
}
.mq-drawer__menu .sub-menu a:hover { color: var(--mq-color-primary); }
.mq-drawer__menu .mq-menu-cart { display: none; }
.mq-drawer__menu .mq-menu-cta { border-bottom: 0; }
.mq-drawer__menu .mq-menu-cta > .mq-btn {
	display: block;
	width: 100%;
	margin-top: 0.8rem;
	text-align: center;
	clip-path: none;
	color: #fff;
}

.mq-drawer__cart {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: var(--mq-space-4);
	font-weight: 600;
	color: var(--mq-color-secondary);
	text-decoration: none;
}
.mq-drawer__cart svg { width: 22px; height: 22px; }


/* ── Preloader (overlay de chargement) ───────────────────────────────── */
.mq-preloader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mq-color-secondary);
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mq-preloader.is-done { opacity: 0; visibility: hidden; }

/* Badge : icône M dans un rond blanc + anneau orange qui tourne autour. */
.mq-preloader__badge {
	position: relative;
	width: 116px;
	height: 116px;
}

.mq-preloader__icon {
	position: absolute;
	inset: 9px;
	width: calc(100% - 18px);
	height: calc(100% - 18px);
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
	padding: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	animation: mq-pop 0.5s ease both;
}

.mq-preloader__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, 0.16);
	border-top-color: var(--mq-color-primary);
	animation: mq-spin 0.9s linear infinite;
}

@keyframes mq-spin { to { transform: rotate(360deg); } }
@keyframes mq-pop { from { transform: scale(0.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 600px) {
	.mq-preloader__badge { width: 92px; height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
	.mq-preloader__ring { animation-duration: 2.5s; }
	.mq-preloader__icon { animation: none; }
}

