/* HuKaTech – configurateur de kit et « Composer mon kit » */
.hk-kitcfg { margin: .5rem 0 1.5rem; }
.hk-kitcfg .hk-sec { margin-bottom: 1.25rem; }
.hk-h { font-weight: 700; color: #0b1f33; font-size: 1.05rem; margin-bottom: .3rem; }
.hk-sub { font-size: .85rem; color: #64748b; margin-bottom: .6rem; }
.hk-sub a { font-weight: 600; }
.hk-row { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: .5rem; background: #fff; transition: border-color .15s, background .15s, opacity .15s; }
.hk-row img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; flex: none; background: #fff; }
.hk-n { flex: 1; min-width: 0; line-height: 1.25; }
.hk-n a { color: #0b1f33; font-weight: 600; font-size: .92rem; text-decoration: none; }
.hk-n a:hover { text-decoration: underline; }
.hk-n .hk-d { display: block; color: #64748b; font-size: .78rem; margin-top: 2px; }
.hk-row.hk-mod { border-color: #1f6feb; background: #f5f9ff; }
.hk-row.hk-zero { opacity: .55; }
.hk-step { display: inline-flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 999px; overflow: hidden; flex: none; background: #fff; }
.hk-step button { border: 0; background: #f1f5f9; width: 36px; height: 36px; font-size: 1.15rem; line-height: 1; color: #0b1f33; cursor: pointer; }
.hk-step button:hover { background: #e2e8f0; }
.hk-step input { width: 44px; border: 0; text-align: center; font-weight: 700; color: #0b1f33; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.hk-step input::-webkit-outer-spin-button, .hk-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hk-step input:focus { outline: none; background: #eff6ff; }
.hk-nk { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hk-sum { border: 1px solid #e2e8f0; border-radius: 16px; padding: 1rem 1.1rem; background: #f8fafc; }
.hk-list { list-style: none; padding: 0; margin: .25rem 0 .75rem; }
.hk-list li { display: flex; gap: .45rem; padding: .3rem 0; border-bottom: 1px dashed #e2e8f0; font-size: .9rem; color: #1e293b; }
.hk-list .hk-q { font-weight: 700; color: #1f6feb; min-width: 2.5rem; flex: none; }
.hk-list .hk-nm { flex: 1; min-width: 0; }
.hk-list .hk-p { margin-left: auto; color: #334155; white-space: nowrap; }
.hk-list .hk-empty { color: #64748b; border: 0; }
.hk-tot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .75rem; color: #475569; }
.hk-tot strong { font-size: 1.2rem; color: #0b1f33; }
.hk-notes { font-size: .8rem; color: #92400e; padding-left: 1.1rem; margin: 0 0 .75rem; }
.hk-notes:empty { display: none; }
.hk-cta { width: 100%; padding: .7rem 1rem; font-weight: 700; border-radius: 12px; }
.hk-reset { display: block; margin: .5rem auto 0; font-size: .85rem; }
.hk-video-left { margin-top: 1rem; }
.hk-video-left video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #0b1f33; display: block; box-shadow: 0 6px 20px rgba(15, 23, 42, .12); }
/* Composer mon kit */
.hk-hero-c { background: linear-gradient(135deg, #0b1f33 0%, #12355b 100%); color: #fff; }
.hk-hero-c .hk-kick { color: #7dd3fc; font-weight: 700; letter-spacing: .08em; font-size: .85rem; text-transform: uppercase; }
.hk-hero-c h1 { color: #fff; font-weight: 800; }
.hk-hero-c p { color: #cbd5e1; max-width: 720px; }
.hk-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); }
.hk-card-h { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.hk-card-h i { width: 36px; height: 36px; border-radius: 10px; background: #eff6ff; color: #1f6feb; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.hk-card-h h2 { font-size: 1.15rem; font-weight: 700; color: #0b1f33; margin: 0; }
.hk-qrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid #f1f5f9; margin: 0; cursor: default; }
.hk-qrow:first-of-type { border-top: 0; }
.hk-ql { min-width: 0; }
.hk-ql b { display: block; color: #0b1f33; font-weight: 600; font-size: .95rem; }
.hk-ql small { display: block; color: #64748b; font-size: .8rem; }
.hk-toggle { cursor: pointer; }
.hk-toggle .form-switch { flex: none; padding-left: 3rem; }
.hk-toggle .form-switch .form-check-input { width: 2.6rem; height: 1.4rem; margin-left: -3rem; margin-top: 0; cursor: pointer; }
.hk-sticky { position: sticky; top: 96px; }
.hk-sum .hk-h { font-size: 1.2rem; }
.hk-trust { font-size: .8rem; color: #64748b; margin-top: .75rem; }
.hk-trust i { color: #1f6feb; width: 1.1rem; }
.hk-mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1030; background: #0b1f33; color: #fff; border-radius: 14px; padding: .65rem .9rem; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 8px 24px rgba(15, 23, 42, .3); }
.hk-mbar[hidden] { display: none; }
.hk-mbar a { color: #fff; font-weight: 700; text-decoration: none; }
@media (min-width: 992px) { .hk-mbar { display: none !important; } }
/* Guides : choix Appli / Home Assistant */
.hk-guide-switch { margin: 1.5rem 0 1rem; padding: 1rem 1.1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; }
.hk-guide-switch .hk-q { font-weight: 700; color: #0b1f33; margin-bottom: .6rem; }
.hk-pills { gap: .5rem; flex-wrap: wrap; }
.hk-pills .nav-link { border: 1px solid #cbd5e1; border-radius: 999px; color: #0b1f33; font-weight: 600; padding: .55rem 1.1rem; background: #fff; display: inline-flex; align-items: center; gap: .5rem; }
.hk-pills .nav-link:hover { border-color: #1f6feb; }
.hk-pills .nav-link.active { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.hk-ha-logo { width: 20px; height: 20px; border-radius: 5px; background: #03a9f4; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.hk-ha-head { display: flex; gap: .9rem; align-items: center; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px; padding: .9rem 1rem; margin: 1rem 0; flex-wrap: wrap; }
.hk-ha-badge { background: #03a9f4; color: #fff; font-weight: 700; border-radius: 999px; padding: .25rem .75rem; font-size: .8rem; white-space: nowrap; }
.hk-ha h3 { font-size: 1.1rem; margin-top: 1.2rem; }
.hk-yaml { position: relative; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 1rem 1rem .9rem; font-size: .8rem; line-height: 1.45; white-space: pre; overflow: auto; margin-bottom: 1.25rem; }
.hk-yaml code { color: inherit; background: transparent; padding: 0; }
.hk-copy { position: absolute; top: .55rem; right: .55rem; border: 0; border-radius: 8px; background: #1e293b; color: #e2e8f0; font-size: .75rem; padding: .3rem .6rem; cursor: pointer; }
.hk-copy:hover { background: #334155; }
.hk-ha-head p { flex: 1; min-width: 220px; }
/* Page Assistance */
.hk-tile { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 1.2rem 1.25rem; height: 100%; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); }
.hk-tile > i { width: 44px; height: 44px; border-radius: 12px; background: #eff6ff; color: #1f6feb; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: .7rem; }
.hk-tile h2 { font-size: 1.1rem; font-weight: 700; color: #0b1f33; margin-bottom: .35rem; }
.hk-tile p { color: #475569; font-size: .92rem; flex: 1; }
.hk-tile .btn { align-self: flex-start; font-weight: 600; border-radius: 10px; }
.hk-guides-tip { display: flex; gap: .6rem; align-items: center; margin-top: 1rem; padding: .75rem 1rem; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; font-size: .92rem; }
.hk-guides-tip a { font-weight: 700; }
.hk-support .tab-pane.hk-card { padding: 1.3rem 1.4rem; }
.hk-support .s_website_form_label { font-weight: 600; color: #0b1f33; font-size: .9rem; margin-bottom: .3rem; }
.hk-support .form-control, .hk-support .form-select { border-radius: 10px; }
.hk-opts .hk-opt { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid #f1f5f9; }
.hk-opts .hk-opt:first-of-type { border-top: 0; }
.hk-opt > i { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #eff6ff; color: #1f6feb; display: inline-flex; align-items: center; justify-content: center; }
.hk-opt b { display: block; color: #0b1f33; font-size: .95rem; }
.hk-opt small { display: block; color: #64748b; font-size: .82rem; margin: .1rem 0 .25rem; }
.hk-opt a { font-size: .85rem; font-weight: 600; }
.hk-contact i { color: #1f6feb; width: 1.2rem; }
.hk-ok { text-align: center; padding: 2rem 1rem; }
.hk-ok i { font-size: 2.6rem; color: #16a34a; }
.hk-ok h3 { font-size: 1.3rem; font-weight: 700; color: #0b1f33; margin: .6rem 0 .3rem; }
.hk-ok p { color: #475569; margin: 0; }
/* Accueil : boutons de la bannière + images de kits cliquables */
.hk-hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.1rem; }
.hk-hb { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.45rem; border-radius: 14px; font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease; }
.hk-hb i { font-size: 1rem; }
.hk-hb:hover { transform: translateY(-2px); text-decoration: none; }
.hk-hb-primary { background: #1f6feb; color: #fff; border: 1px solid #1f6feb; box-shadow: 0 10px 26px rgba(31, 111, 235, .38); }
.hk-hb-primary:hover, .hk-hb-primary:focus { background: #1a5fd0; border-color: #1a5fd0; color: #fff; box-shadow: 0 14px 30px rgba(31, 111, 235, .45); }
.hk-hb-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hk-hb-glass:hover, .hk-hb-glass:focus { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .6); color: #fff; }
.hk-hb .hk-arrow { transition: transform .15s ease; }
.hk-hb:hover .hk-arrow { transform: translateX(3px); }
@media (max-width: 575.98px) { .hk-hero-btns { flex-direction: column; } .hk-hb { width: 100%; } }
.hk-kit-img { display: block; overflow: hidden; }
.hk-kit-img img { transition: transform .35s ease; }
.hk-kit-img:hover img { transform: scale(1.04); }
.hk-kit-title a { color: inherit; text-decoration: none; }
.hk-kit-title a:hover { color: #1f6feb; }
