/* ==========================================================================
   SwissKH, sections de contenu posées sur les blocs Elementor
   (pince B8, automation, process horizontal, secteurs, Maria, bandeau,
   cartes articles, FAQ, contact). Classes ajoutées dans Avancé > Classes CSS.
   ========================================================================== */

/* ---------- Accroche rouge sous un titre (.skh-tagline sur un widget Titre) ---------- */
.elementor-widget-heading.skh-tagline .elementor-heading-title { font-family: var(--skh-font-display); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); line-height: 1.15; }

/* ---------- Liste à tirets rouges (widget Liste d'icônes, sans icône) ---------- */
.skh-list-dash .elementor-icon-list-item { align-items: baseline !important; }
.skh-list-dash .elementor-icon-list-item::before { content: ""; flex: none; width: 14px; height: 1.5px; margin-right: 12px; background: var(--skh-red); transform: translateY(-4px); }

/* ---------- Libellé mono (« Aussi », légendes) ---------- */
.elementor-widget-heading.skh-mono-label .elementor-heading-title { font-family: var(--skh-font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--skh-fg-3); }

/* ---------- Repères d'angle (.skh-marks + 4 span.mk) ---------- */
.skh-marks { position: relative; }
.skh-marks > .mk { position: absolute; width: 18px; height: 18px; pointer-events: none; border-color: var(--mk, #A3AAB3); transition: transform .5s var(--skh-ease), border-color .3s; z-index: 2; }
.skh-marks > .mk.tl { top: -1px; left: -1px; border-top: 1.5px solid; border-left: 1.5px solid; }
.skh-marks > .mk.tr { top: -1px; right: -1px; border-top: 1.5px solid; border-right: 1.5px solid; }
.skh-marks > .mk.bl { bottom: -1px; left: -1px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.skh-marks > .mk.br { bottom: -1px; right: -1px; border-bottom: 1.5px solid; border-right: 1.5px solid; }
.skh-marks:hover > .mk { --mk: var(--skh-red); }
.skh-marks:hover > .mk.tl { transform: translate(-5px, -5px); }
.skh-marks:hover > .mk.tr { transform: translate(5px, -5px); }
.skh-marks:hover > .mk.bl { transform: translate(-5px, 5px); }
.skh-marks:hover > .mk.br { transform: translate(5px, 5px); }

/* ---------- Boutons : variantes complémentaires ---------- */
.skh-btn-dark-fill .elementor-button { --skh-fill: #fff; --skh-fg-fill: var(--skh-ink); }
.skh-btn-sm .elementor-button { padding: 13px 18px; font-size: .95rem; }
.skh-chip .elementor-button {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--skh-line-strong); border-radius: 999px;
	background: transparent; color: var(--skh-fg); font-family: var(--skh-font-body); font-size: .9375rem; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1;
	--skh-fill: var(--skh-ink); --skh-fg-fill: #fff;
}
.skh-chip .elementor-button:hover { border-color: var(--skh-ink); }

/* ---------- Pince Schaublin B8 ---------- */
.skh-clamp { margin: 0; background: #fff; border: 1px solid var(--skh-line); padding: clamp(20px, 3vw, 40px); display: grid; place-items: center; gap: 18px; }
.skh-svg-anim .skh-clamp svg { width: min(100%, 380px); }
.skh-clamp figcaption { font-size: .8125rem; color: var(--skh-fg-3); text-align: center; max-width: 40ch; }

/* ---------- Schéma pick & place ---------- */
.skh-pnp { position: relative; background: #14181D; border: 1px solid rgba(255, 255, 255, .12); padding: clamp(18px, 3vw, 36px); padding-top: clamp(40px, 4vw, 48px); --mk: rgba(255, 255, 255, .3); }
.skh-pnp .skh-hud { position: absolute; left: 16px; top: 14px; font-family: var(--skh-font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: #A9B2BD; font-variant-numeric: tabular-nums; }

/* ---------- Capacités (widget Boîte d'icône .skh-feat) ---------- */
.skh-feat { position: relative; padding-top: 18px; border-top: 1px solid var(--skh-line-strong); }
.skh-feat::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 2px; background: var(--skh-red); transition: width .6s var(--skh-ease); z-index: 1; }
.skh-feat:hover::before { width: 100%; }
.skh-cap-grid .skh-feat { border-top-color: rgba(255, 255, 255, .12); }
.skh-feat .elementor-icon-box-icon { line-height: 0; }
.skh-ico-line svg, .skh-feat .elementor-icon svg { fill: none !important; stroke: currentColor; }
.skh-ico-line svg *, .skh-feat .elementor-icon svg * { vector-effect: non-scaling-stroke; }

/* ---------- Process horizontal épinglé (.skh-htrack) ---------- */
.skh-pstep { position: relative; background: #fff; border: 1px solid var(--skh-line); padding: 28px !important; transition: border-color .4s, box-shadow .5s var(--skh-ease), transform .5s var(--skh-ease); }
.skh-pstep.is-on { border-color: var(--skh-ink); box-shadow: var(--skh-shadow-2); transform: translateY(-6px); }
.elementor-widget-heading.skh-pstep-n .elementor-heading-title { font-family: var(--skh-font-display); font-weight: 700; font-size: 5.4rem; line-height: .8; color: transparent; -webkit-text-stroke: 1.2px var(--skh-line-strong); transition: -webkit-text-stroke-color .4s; }
.skh-pstep.is-on .skh-pstep-n .elementor-heading-title { -webkit-text-stroke-color: var(--skh-red); }
.skh-pstep-ico { position: absolute !important; right: 24px; top: 28px; width: auto !important; margin: 0 !important; }
.skh-pstep-t { margin-top: auto !important; }
.elementor-widget-heading.skh-pstep-t .elementor-heading-title { font-size: 1.55rem; }
.e-con.skh-pstep--end { border-color: var(--skh-ink); }
.skh-hbar { position: relative; height: 2px; background: var(--skh-line); }
.skh-hbar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--skh-red); }
.skh-hbar span { position: absolute; right: 0; top: 12px; font-family: var(--skh-font-mono); font-size: .6875rem; letter-spacing: .12em; color: var(--skh-fg-3); }
.skh-hbar-wrap { width: 100%; max-width: calc(var(--skh-maxw) + 2 * var(--skh-gutter)); margin: clamp(28px, 4vh, 48px) auto 0 !important; padding-inline: var(--skh-gutter); }
@media (min-width: 961px) {
	.e-con.skh-htrack__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
	.e-con.skh-htrack__track { padding-left: max(var(--skh-gutter), calc((100vw - var(--skh-maxw)) / 2)); padding-right: var(--skh-gutter); will-change: transform; }
	.skh-htrack__track > .skh-pstep { flex: 0 0 clamp(280px, 28vw, 380px) !important; min-height: clamp(300px, 46vh, 420px); }
}
@media (max-width: 960px) {
	.e-con.skh-htrack__track { padding-inline: var(--skh-gutter); }
	.skh-pstep-n .elementor-heading-title { font-size: 3.6rem; }
	.skh-hbar-wrap { display: none; }
}

/* ---------- Cartes secteurs (conteneur lien .skh-scard) ---------- */
.e-con.skh-scard { background: #fff; overflow: hidden; color: inherit; }
.skh-scard-img { width: 100%; margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; }
.skh-scard-img > *, .skh-scard-img a { height: 100%; }
.skh-scard-img img { width: 100%; height: 115% !important; max-width: none; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.02) !important; transition: transform .9s var(--skh-ease); }
.skh-scard:hover .skh-scard-img img { transform: translate3d(0, var(--py, 0px), 0) scale(1.08) !important; }
.e-con.skh-scard-body { padding-top: 20px; border-top: 2px solid var(--skh-red); }
.skh-scard--med .skh-scard-body { border-top-color: var(--skh-med); }
.skh-scard .elementor-heading-title { transition: color .25s; }
.skh-scard:hover .elementor-heading-title { color: var(--skh-red-deep); }

/* ---------- Logiciel Maria ---------- */
.skh-maria .skh-kicker .elementor-heading-title::before { background: #7FB0CF; }
.skh-flow { position: relative; }
.skh-flow::before { content: ""; position: absolute; left: 12%; right: 12%; top: 25px; height: 2px; background: repeating-linear-gradient(90deg, #7FB0CF 0 10px, transparent 10px 20px); background-size: 40px 2px; animation: skhDash 1.2s linear infinite; opacity: .7; }
.skh-flow > .e-con { position: relative; z-index: 1; }
.elementor-widget-heading.skh-flow-n .elementor-heading-title { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #7FB0CF; background: #102C4D; font-family: var(--skh-font-mono); font-size: .8125rem; font-weight: 600; color: #fff; transition: background .3s, border-color .3s, color .3s; }
.skh-flow > .e-con:last-child .skh-flow-n .elementor-heading-title { border-color: #FF6A72; }
.skh-flow > .e-con.is-on .skh-flow-n .elementor-heading-title { background: #7FB0CF; color: #0B2240; }
.elementor-widget-heading.skh-flow-t .elementor-heading-title { font-family: var(--skh-font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; color: #fff; }
.skh-mods > .e-con { border: 1px solid #2A4468; padding: 14px 16px; background: #102C4D; border-radius: 2px; }
.elementor-widget-heading.skh-mod-t .elementor-heading-title { color: #fff; font-family: var(--skh-font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; }
.elementor-widget-heading.skh-mod-s .elementor-heading-title { font-family: var(--skh-font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: #7FB0CF; }
.skh-mods > .e-con.is-soon { background: transparent; border-style: dashed; }
.skh-mods > .e-con.is-soon .elementor-heading-title { color: #8C9FB4; }
.e-con.skh-mwin { background: #102C4D; border: 1px solid #2A4468; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.skh-mwin > .elementor-widget { margin: 0 !important; }
.skh-mwin-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #2A4468; font-family: var(--skh-font-mono); font-size: .75rem; color: #C9D5E2; }
.skh-mwin-bar .dots { display: flex; gap: 6px; }
.skh-mwin-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2A4468; }
.skh-mwin-bar .st { display: flex; align-items: center; gap: 8px; color: #7FB0CF; }
.skh-mwin-bar .st i { width: 7px; height: 7px; border-radius: 50%; background: #7FB0CF; animation: skhPulseSky 2s infinite; }
.skh-mwin-code { padding: 16px 18px; font-family: var(--skh-font-mono); font-size: .8125rem; line-height: 1.8; color: #C9D5E2; border-top: 1px solid #2A4468; min-height: 190px; }
.skh-mwin-code .c { color: #7FB0CF; }
.skh-mwin-code .caret { display: inline-block; width: 8px; height: 15px; background: #7FB0CF; vertical-align: -2px; margin-left: 4px; animation: skhBlink 1s step-end infinite; }
@keyframes skhDash { to { background-position: 40px 0; } }
@keyframes skhBlink { 50% { opacity: 0; } }
@keyframes skhPulseSky { 0% { box-shadow: 0 0 0 0 rgba(127, 176, 207, .5); } 70% { box-shadow: 0 0 0 8px rgba(127, 176, 207, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 176, 207, 0); } }
.skh-flow > .e-con { min-width: 0; }
/* Le ::before d'un conteneur Elementor a « width: 100% » : sans ce correctif, la ligne
   pointillée (left 12 %) dépassait à droite et créait un défilement horizontal. */
.e-con.skh-flow::before { width: auto !important; height: 2px !important; }
@media (max-width: 640px) {
	.skh-mwin-bar > span:nth-child(2) { display: none; }
	.elementor-widget-heading.skh-flow-t .elementor-heading-title { font-size: .9rem; letter-spacing: .02em; }
	.skh-flow-n .elementor-heading-title { width: 44px !important; height: 44px !important; }
	.skh-flow::before { top: 21px; }
	.e-con.skh-mods { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.e-con.skh-band::before { background-image: linear-gradient(180deg, rgba(9, 11, 14, .9) 0%, rgba(9, 11, 14, .72) 100%) !important; }
}

/* ---------- Formulaires : choix en cartes (boutons radio en liste) ---------- */
.skh-form .elementor-field-type-radio .elementor-field-subgroup:not(.elementor-subgroup-inline) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.skh-form .elementor-field-type-radio .elementor-field-subgroup:not(.elementor-subgroup-inline) .elementor-field-option { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; border: 1px solid var(--skh-line-strong); border-radius: 2px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.skh-form .elementor-field-type-radio .elementor-field-subgroup:not(.elementor-subgroup-inline) .elementor-field-option:hover { border-color: var(--skh-ink); }
.skh-form .elementor-field-type-radio .elementor-field-subgroup:not(.elementor-subgroup-inline) .elementor-field-option:has(input:checked) { border-color: var(--skh-red); box-shadow: inset 0 0 0 1px var(--skh-red); }
.skh-form .elementor-field-type-radio .elementor-field-option label { cursor: pointer; font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.skh-form .elementor-field-option input { accent-color: var(--skh-red); }
@media (max-width: 640px) { .skh-form .elementor-field-type-radio .elementor-field-subgroup:not(.elementor-subgroup-inline) { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bandeau photo (showroom) ---------- */
.e-con.skh-band { color: #fff; isolation: isolate; }
.e-con.skh-band::before { background-image: linear-gradient(90deg, rgba(9, 11, 14, .94) 0%, rgba(9, 11, 14, .78) 42%, rgba(9, 11, 14, .25) 100%) !important; opacity: 1 !important; }

/* ---------- Cartes articles (modèle de boucle 127) ---------- */
.e-con.skh-acard { position: relative; }
/* Visuel : image à la une, sinon décor canvas en secours (data-decor sur .skh-acard-media). */
.e-con.skh-acard-media { aspect-ratio: 16 / 10; padding: 0; overflow: hidden; background: #14181D; }
.e-con.skh-acard-media > .skh-acard-img { position: absolute; inset: 0; aspect-ratio: auto; }
.skh-acard-img { width: 100%; margin: 0 !important; aspect-ratio: 16 / 10; overflow: hidden; background: #14181D; }
.skh-acard-img > *, .skh-acard-img a { display: block; height: 100%; }
.skh-acard-img img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s var(--skh-ease); }
.skh-acard:hover .skh-acard-img img { transform: scale(1.05); }
.skh-acard-meta .elementor-widget-heading .elementor-heading-title { font-family: var(--skh-font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--skh-fg-3); }
.elementor-widget-heading.skh-acard-cat .elementor-heading-title { color: var(--skh-red-deep); font-weight: 600; }
.elementor-widget-heading.skh-acard-title .elementor-heading-title { font-size: 1.35rem; line-height: 1.12; transition: color .25s; }
.skh-acard:hover .elementor-widget-heading.skh-acard-title .elementor-heading-title { color: var(--skh-red-deep); }
.skh-acard-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
/* Résultats de recherche : pas de date ni de catégorie pour les pages et les machines */
.e-loop-item:not(.type-post) .skh-acard-meta { display: none; }
/* Article à la une (modèle de boucle 367) */
.e-con.skh-afeat-media { aspect-ratio: 16 / 10; flex: none; }
.e-con.skh-afeat-body { flex: 1 1 0; width: auto; min-width: 0; }
.elementor-widget-heading.skh-afeat-title .elementor-heading-title { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); line-height: 1.05; }
@media (max-width: 640px) { .e-con.skh-afeat-body { flex: none; width: 100%; } }

/* ---------- FAQ (widget Accordéon imbriqué .skh-acc) ---------- */
.skh-acc { border-top: 1px solid var(--skh-line); --n-accordion-title-font-size: 1.3rem; --n-accordion-icon-size: 14px; }
.skh-acc .e-n-accordion-item { border-bottom: 1px solid var(--skh-line); }
.skh-acc .e-n-accordion-item-title { padding: 20px 0 !important; border: 0 !important; background: transparent !important; justify-content: space-between; gap: 18px; color: var(--skh-fg); }
.skh-acc .e-n-accordion-item-title-header { flex: 1; }
.skh-acc .e-n-accordion-item-title-text { font-family: var(--skh-font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: inherit; }
.skh-acc .e-n-accordion-item-title-icon { font-size: 14px; color: inherit; }
.skh-acc .e-n-accordion-item-title-icon svg { width: 14px; height: 14px; fill: currentColor; }
.skh-acc .e-n-accordion-item[open] > .e-n-accordion-item-title, .skh-acc .e-n-accordion-item-title:hover { color: var(--skh-red-deep); }
.skh-acc .e-n-accordion-item > .e-con { padding: 0 0 24px !important; border: 0 !important; background: transparent !important; }

/* ---------- Contact ---------- */
.skh-contact-links .elementor-icon-list-text { font-family: var(--skh-font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; }
.skh-contact-links a:hover .elementor-icon-list-text { color: var(--skh-red); }
.e-con.skh-quote-sav > .elementor-widget { flex: none; width: auto; margin: 0; }
.e-con.skh-quote-sav > .e-con { flex: 1 1 0; width: auto; min-width: 0; }
@media (max-width: 640px) { .e-con.skh-quote-sav > .e-con { flex: none; width: 100%; } }
.skh-form .elementor-field-group { margin-bottom: 0; }
.skh-form .elementor-field-type-upload .elementor-field { padding: 18px 16px; border: 1px dashed var(--skh-line-strong) !important; background: var(--skh-steel-50) !important; cursor: pointer; }
.skh-form .elementor-field-type-acceptance .elementor-field-subgroup label { font-size: .875rem; color: var(--skh-fg-2); }
.skh-form .elementor-message { font-size: .9375rem; }
