/* =====================================================================
   Kelios Energy : composants de la refonte (préfixe k-)
   Se charge après styles.css : réutilise ses variables (:root), donc les
   thèmes clair et sombre fonctionnent sans règle supplémentaire.
   Code couleur : ambre = soleil (production), turquoise = batterie et
   consommation, gris = réseau, corail = alerte ou coupure.
   Un seul bouton ambre par écran.
   ===================================================================== */

:root {
  --r-xl: 28px;
  --r-pill: 999px;
  --alert: #ff8a73;
  --night-track: #22386c;
  --solar-bright: #ffb547;
  --current-bright: #3be8cc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --night-track: #2b4380; }
}
:root[data-theme="dark"] { --night-track: #2b4380; }

/* ---------- Panneau sombre (bandeau, blocs « bento ») ---------- */
.k-night {
  background: var(--night); color: var(--night-text);
  border-radius: var(--r-xl); padding: clamp(28px, 4vw, 56px);
}
.k-night :is(h1, h2, h3) { color: #fff; }
.k-night .lede, :is(.k-night, .k-panel--night) .k-muted { color: var(--night-text-2); }
.k-night a:not(.btn) { color: inherit; }
.k-muted { color: var(--text-2); }
.k-note { font-size: 0.8125rem; color: var(--text-2); max-width: 70ch; margin: 24px 0 0; }
:is(.k-night, .k-panel--night) .k-note { color: var(--night-text-2); }

/* ---------- Sélecteur segmenté (Tous / Maison / Travail) ---------- */
.k-tabs { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 4px; border-radius: 28px; background: var(--night-2); }
.k-tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); color: var(--night-text);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; border: 0; background: none;
}
.k-tab:hover { text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.k-tab[aria-selected="true"], .k-tab[aria-current="true"] { background: #fff; color: var(--night); }

/* ---------- Tuile d'icône ---------- */
.k-tile {
  --size: 48px;
  display: inline-grid; place-items: center; flex: none;
  width: var(--size); height: var(--size); border-radius: calc(var(--size) * 0.28);
  background: var(--night); color: var(--night-text);
  box-shadow: inset 0 0 0 1px var(--night-line);
}
.k-tile svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-tile--sm { --size: 40px; }
.k-tile--md { --size: 56px; }
.k-tile--lg { --size: 80px; }
.k-tile--lg svg { width: 75%; height: 75%; stroke-width: 2; }
.k-tile--on-night { background: var(--night-2); }
.k-tile--current svg { stroke: var(--current-bright); }
.k-tile--dashed { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); color: var(--text); }

/* ---------- Pastille ---------- */
.k-badge {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--solar-bright); color: #0b1836; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.k-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: var(--r-pill);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: var(--bg-alt); color: var(--text-2);
}
.k-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grid); }
.k-chip--solar { background: var(--solar-soft); color: var(--solar-ink); }
.k-chip--solar::before { background: var(--solar); }
.k-chip--current { background: var(--current-soft); color: var(--current-ink); }
.k-chip--current::before { background: var(--current); }
.k-chip--ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.k-chip--ok::before { background: var(--ok); }

/* ---------- Jauge (solaire, batterie) ---------- */
.k-gauge { margin: 0 0 12px; --fill: 50%; --fill-bg: var(--current); }
.k-gauge__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.875rem; color: var(--text-2); }
.k-gauge__label { display: inline-flex; align-items: center; gap: 6px; }
.k-gauge__label svg { width: 16px; height: 16px; fill: none; stroke: var(--fill-bg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-gauge__head strong { color: var(--text); }
.k-gauge__track { height: 8px; border-radius: 4px; background: var(--bg-alt); overflow: hidden; }
.k-gauge__fill { display: block; width: var(--fill); min-width: 6%; height: 100%; border-radius: 4px; background: var(--fill-bg); }
.k-gauge--solar { --fill-bg: var(--solar); }
.k-gauge--current { --fill-bg: var(--current); }
.k-gauge--alert { --fill-bg: var(--alert); }
:is(.k-night, .k-panel--night, .k-card--pop) .k-gauge__head { color: var(--night-text-2); }
:is(.k-night, .k-panel--night, .k-card--pop) .k-gauge__head strong { color: #fff; }
:is(.k-night, .k-panel--night, .k-card--pop) .k-gauge__track { background: var(--night-track); }
:is(.k-night, .k-panel--night, .k-card--pop) .k-gauge--solar { --fill-bg: var(--solar-bright); }
:is(.k-night, .k-panel--night, .k-card--pop) .k-gauge--current { --fill-bg: var(--current-bright); }

/* ---------- Liste à icônes ---------- */
.k-ticks { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.k-ticks li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.k-ticks svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--current-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-ticks--lg li { font-size: 1.0625rem; align-items: flex-start; gap: 14px; }
:is(.k-night, .k-panel--night, .k-card--pop) .k-ticks svg { stroke: var(--current-bright); }
.k-ticks--warm svg { stroke: var(--solar-ink); }

/* ---------- Grille responsive ---------- */
.k-grid { --min: 250px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min)), 1fr)); align-items: stretch; }
.k-grid--2 { --min: 460px; }
.k-grid--3 { --min: 260px; }

/* ---------- Titre de segment (Pour la maison, Pour le travail) ---------- */
.k-seghead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.k-seghead__title { display: flex; align-items: center; gap: 16px; }
.k-seghead h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); }
.k-seghead p { margin: 0; color: var(--text-2); font-size: 1.0625rem; }

/* ---------- Carte de kit ---------- */
.k-card {
  display: flex; flex-direction: column; padding: 28px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.k-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 80px; margin-bottom: 16px; }
.k-card__name { margin: 0 0 4px; font-size: 1.375rem; line-height: 1.2; }
.k-card__for { margin: 0 0 24px; color: var(--text-2); font-size: 0.875rem; }
.k-card__est { margin: 4px 0; }
.k-card__ticks { margin: 12px 0 28px; }
.k-card__cta { margin-top: auto; }
/* Cartes alignées : chaque ligne (icône, nom, description, prix, jauges…) a la même hauteur dans toute la rangée.
   --rows = nombre de blocs de la carte. Sans sous-grille (anciens navigateurs), les cartes restent en colonne flex. */
@supports (grid-template-rows: subgrid) {
  .k-grid > .k-card { grid-row: span var(--rows, 10); }
  .k-grid > .k-card:not(.k-card--soft) { display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .k-grid > .k-card > * { min-width: 0; }
}
.k-card--pop { background: var(--night); color: #fff; border: 2px solid var(--night); box-shadow: 0 24px 48px -28px rgba(10, 22, 48, 0.6); }
.k-card--pop .k-card__for { color: var(--night-text-2); }
.k-card--pop .k-card__name { color: #fff; }
.k-card--pop .k-tile { background: var(--night-2); }
.k-card--soft { background: transparent; border: 1.5px dashed var(--line-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .k-card--pop { border-color: var(--solar); } }
:root[data-theme="dark"] .k-card--pop { border-color: var(--solar); }

/* Prix « À partir de » */
.k-price { margin: 0 0 24px; }
.k-price__label { margin: 0; font-size: 0.8125rem; color: var(--text-2); }
.k-price__value { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.k-card--pop .k-price__label { color: var(--night-text-2); }

/* Encadré d'estimation (production mensuelle) */
.k-est { padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.k-est__label { margin: 0 0 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.k-est__row { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.k-est__row svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--solar); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-card--pop .k-est { background: var(--night-2); }
.k-card--pop .k-est__label { color: var(--night-text-2); }
.k-card--pop .k-est__row svg { stroke: var(--solar-bright); }

/* ---------- Extension de batterie ---------- */
.k-pack {
  display: flex; flex-direction: column; padding: 28px; border-radius: 20px;
  background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); color: #fff;
}
.k-pack__art { min-height: 56px; margin-bottom: 16px; }
.k-pack__name { margin: 0 0 4px; font-size: 1.5rem; line-height: 1.2; color: #fff; }
.k-pack__sub { margin: 0 0 20px; color: var(--night-text-2); font-size: 0.9375rem; }
.k-pack__hours { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.k-pack__hours svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--current-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-pack .btn { margin-top: auto; }

/* ---------- Barres de comparaison (solaire / groupe électrogène) ---------- */
.k-compare { margin: 0 0 24px; }
.k-compare__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 0.9375rem; }
.k-compare__value { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; white-space: nowrap; }
.k-compare__value--alert { color: var(--alert); }
.k-compare__value--current { color: var(--current-bright); }
.k-compare__track { height: 18px; border-radius: 9px; background: var(--night-track); }
.k-compare__fill { display: block; height: 100%; border-radius: 9px; background: var(--alert); width: var(--fill, 100%); }
.k-compare__fill--current { background: var(--current-bright); }

/* ---------- Blocs « bento » ---------- */
.k-panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.k-panel--night { background: var(--night); color: var(--night-text); border-color: var(--night); }
.k-panel--night :is(h2, h3) { color: #fff; }
.k-panel h2, .k-panel h3 { margin: 0 0 24px; font-size: 1.375rem; line-height: 1.2; }
.k-split { display: flex; height: 44px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--night-line); margin-bottom: 12px; font-size: 0.9375rem; font-weight: 700; }
.k-split > span { display: flex; align-items: center; justify-content: center; padding-inline: 8px; text-align: center; line-height: 1.2; }
@media (max-width: 420px) { .k-split { font-size: 0.8125rem; } }
.k-split__a { background: var(--night); color: #fff; }
.k-split__b { background: var(--bg-alt); color: var(--text); }

/* ---------- Schéma d'énergie (conteneur du SVG animé) ---------- */
.k-hub { position: relative; width: 100%; max-width: 460px; aspect-ratio: 460 / 440; margin-inline: auto; }
.k-hub > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.k-hub__cap { position: absolute; left: 0; right: 0; bottom: -40px; margin: 0; text-align: center; color: var(--night-text-2); font-size: 0.875rem; }

/* ---------- Boutons supplémentaires ---------- */
.btn--lg { min-height: 56px; padding-inline: 32px; font-size: 1.0625rem; border-radius: 12px; }
.btn--on-night { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: var(--night-line); }
.btn--on-night:hover { border-color: #fff; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .kg-dot { display: none; }
}

/* ---------- Icônes (sprite public/img/icons.svg) ---------- */
.k-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-icon--lg { width: 28px; height: 28px; }
.k-art { width: 60px; height: 60px; flex: none; color: var(--night-text); --k-detail: var(--current-bright); --k-sun: var(--solar-bright); }
.k-tile .k-art { width: 75%; height: 75%; }

/* ---------- Page Kits ---------- */
.k-section { padding-block: clamp(40px, 6vw, 72px) 0; }
.k-hero { padding-top: 24px; }
.k-hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; border-radius: 32px; }
.k-hero__text { flex: 1 1 420px; min-width: 0; }
.k-hero__chart { flex: 1 1 300px; min-width: 0; }
.k-hero__title { font-size: clamp(2rem, 1rem + 3.4vw, 3.25rem); line-height: 1.08; margin-bottom: 16px; }
.k-hero .lede { margin: 0 0 28px; color: var(--night-text-2); }
.k-crumbs { margin: 0 0 20px; color: var(--night-text-2); font-size: 0.875rem; }
.k-legend { display: flex; gap: 20px; margin: 8px 0 0; color: var(--night-text-2); font-size: 0.8125rem; }
.k-legend span { display: inline-flex; align-items: center; gap: 8px; }
.k-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.k-card__group { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.k-card__group .k-icon { color: #a63d2a; }
.k-card--pop .k-card__group .k-icon { color: var(--alert); }
.k-ticks__night { color: var(--solar-ink); font-size: 0.875rem; }
.k-ticks__night .k-icon { stroke: var(--solar-ink); }
.k-card--pop .k-ticks__night { color: var(--night-text-2); }
.k-card--pop .k-ticks__night .k-icon { stroke: var(--solar-bright); }
.k-ticks--tiles { gap: 18px; }
.k-ticks--tiles li { align-items: center; gap: 14px; }
.k-ticks--tiles .k-tile svg { stroke: var(--current-bright); }
.k-ticks--cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px 24px; }
.k-pack__price { margin: 0 0 16px; color: var(--night-text-2); font-size: 0.9375rem; }
.k-compare__fill { width: var(--fill, 100%); }
.k-icon-line { display: flex; align-items: center; gap: 10px; }
.k-icon-line svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--current-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-final { text-align: center; padding-bottom: clamp(64px, 9vw, 112px); }
.k-final h2 { margin-bottom: 12px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); }
.k-final .lede { margin: 0 auto 24px; }

/* ---------- Formulaire de devis ---------- */
.k-quote { max-width: 680px; }
.k-quote__panel { padding: clamp(20px, 4vw, 36px); }
.k-choice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 20px; border: 1.5px solid var(--solar); border-radius: var(--r-md); background: var(--solar-soft); }
.k-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; color: var(--text-2); font-size: 0.875rem; }
.k-or::before, .k-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.k-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.k-consent { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); font-size: 0.9375rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
.k-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--night); }
.k-reassure { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 0.9375rem; }
.k-reassure li { display: inline-flex; align-items: center; gap: 8px; }
.k-reassure .k-icon { stroke: var(--current-ink); stroke-width: 2.2; width: 18px; height: 18px; }
.k-done { display: grid; justify-items: start; gap: 12px; padding: 8px 0; }
.k-done h2 { font-size: 1.5rem; }
.k-done p { margin: 0; }
.k-done[hidden] { display: none; }
.choice__box .k-icon { width: 26px; height: 26px; color: var(--current-ink); }
.drop .k-icon { color: var(--text-2); }
.drop { position: relative; }

/* ---------- Accueil ---------- */
.k-homehero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--night-text); padding-block: clamp(40px, 6vw, 88px) clamp(72px, 8vw, 112px); }
/* Décor : panneaux solaires, onduleur et batterie au trait, estompés pour garder le texte lisible. */
.k-homehero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/hero-fond.svg") no-repeat left bottom / min(960px, 135%) auto; opacity: 0.7;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 92%), linear-gradient(to right, rgba(0, 0, 0, 0.3), #000 55%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to top, #000 35%, transparent 92%), linear-gradient(to right, rgba(0, 0, 0, 0.3), #000 55%);
  mask-composite: intersect;
}
@media (max-width: 979px) { .k-homehero::before { background-size: 200% auto; background-position: 20% 100%; opacity: 0.4; } }
.k-homehero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .k-homehero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; } }
.k-homehero__kicker { margin: 0 0 20px; color: var(--solar-bright); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.k-homehero h1 { color: #fff; font-size: clamp(2rem, 1rem + 3.4vw, 3.5rem); line-height: 1.08; margin-bottom: 24px; }
.k-homehero__lede { max-width: 560px; margin: 0 0 32px; color: var(--night-text-2); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.k-homehero .btn-row { margin-bottom: 36px; }
.k-homehero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; color: var(--night-text-2); font-size: 0.9375rem; }
.k-homehero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.k-homehero__facts .k-icon { stroke: var(--current-bright); stroke-width: 2.2; width: 18px; height: 18px; }
.k-hub--home { margin: 0 auto 48px; }
.k-uses { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .k-uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .k-uses { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.k-use { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.k-use:hover { border-color: var(--line-strong); transform: translateY(-2px); text-decoration: none; }
.k-use .k-tile { margin-bottom: 10px; }
.k-use__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.k-use__text { color: var(--text-2); font-size: 0.9375rem; line-height: 1.45; }
.k-more { margin: 32px 0 0; }

/* ---------- Réalisations : réserver la place des éléments rendus en JavaScript (évite un décalage de mise en page) ---------- */
#filters { min-height: 104px; }
@media (min-width: 720px) { #filters { min-height: 46px; } }
#gal-count { min-height: 1.5em; }
#masonry:empty { min-height: 150vh; }
.k-privacy { margin: 8px 0 0 34px; font-size: 0.875rem; color: var(--text-2); }
.k-privacy summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: 0.2em; }
.k-privacy p { margin: 8px 0 0; }

/* ---------- Pages des villes (kit-solaire-*.html) ---------- */
.k-local { max-width: 920px; margin: 0 0 48px; }
.k-local h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin: 0 0 12px; }
.k-local p { max-width: 68ch; color: var(--text-2); }
.k-local a { color: var(--solar-ink); font-weight: 600; }
.k-local__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 68ch; color: var(--text-2); }
.k-local__list li { padding-left: 20px; position: relative; }
.k-local__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--current); }
.k-local__list strong { color: var(--text); }
.k-prices-wrap { overflow-x: auto; margin: 20px 0 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.k-prices { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.k-prices th, .k-prices td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.k-prices thead th { border-top: 0; background: var(--bg-alt); color: var(--text-2); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.k-prices tbody th { font-weight: 700; }
.k-prices tbody th a { color: var(--text); text-decoration: none; }
.k-prices tbody th a:hover { text-decoration: underline; }
.k-prices small { display: block; margin-top: 2px; color: var(--text-2); font-size: 0.8125rem; font-weight: 400; }
.k-prices td { white-space: nowrap; }
.k-prices .k-prices__prix { font-family: var(--font-display); font-weight: 700; text-align: right; }
.k-prices thead th:last-child { text-align: right; }
@media (max-width: 640px) { .k-prices td, .k-prices th { padding: 12px; } .k-prices td:nth-child(2) { display: none; } .k-prices thead th:nth-child(2) { display: none; } }

/* ---------- Pages légales (mentions-legales.html, cgv.html) ---------- */
.k-legal { max-width: 760px; margin: 0 0 40px; }
.k-legal h2 { font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem); margin: 0 0 12px; }
.k-legal p, .k-legal li { color: var(--text-2); }
.k-legal p { max-width: 68ch; }
.k-legal a { color: var(--solar-ink); font-weight: 600; }
.k-legal__def { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px 20px; margin: 16px 0 0; }
.k-legal__def dt { color: var(--text-2); font-size: 0.9375rem; }
.k-legal__def dd { margin: 0; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.k-legal__todo { padding: 1px 6px; border: 1.5px dashed var(--solar); border-radius: 6px; background: var(--solar-soft); color: var(--solar-ink); font-weight: 600; }
@media (max-width: 640px) { .k-legal__def { grid-template-columns: 1fr; gap: 2px 0; } .k-legal__def dd { margin-bottom: 10px; } }

/* ---------- Blog : articles publiés depuis le back-office ---------- */
.cms-posts { margin-top: 48px; }
.cms-posts h2 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); margin: 0 0 20px; }

/* ---------- Page Produits (produits.html, produits/fiche.html) ---------- */
.k-eyebrow { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--solar-ink); }
.k-prods { margin-top: 48px; }
.k-prods__advice { padding: 24px; }
.k-prods__advice-h { margin: 0 0 8px; font-size: 1.0625rem; color: #fff; }
.k-prods__advice p { margin: 0 0 16px; }
.k-prods__bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.k-prods__bar[hidden] { display: none; }
.k-prods__search { flex: 0 1 280px; }
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.k-chipbtn { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 0.9375rem var(--font-body); cursor: pointer; }
.k-chipbtn span { opacity: 0.7; font-weight: 500; }
.k-chipbtn:hover { border-color: var(--text); }
.k-chipbtn[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.k-prods__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); min-height: 120px; margin: 0; padding: 0; list-style: none; }
.k-prods__grid > li { display: flex; }
.k-prods__etat { grid-column: 1 / -1; margin: 0; padding: 32px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--text-2); }
.k-prods__etat a { color: var(--text); font-weight: 700; }

.k-prod { display: flex; flex-direction: column; width: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.k-prod__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 16px; overflow: hidden; border-radius: var(--r-sm); background: var(--bg); color: var(--text-3); }
.k-prod--solar .k-prod__media { background: var(--solar-soft); color: var(--solar-ink); }
.k-prod--current .k-prod__media { background: var(--current-soft); color: var(--current-ink); }
.k-prod__media img { width: 100%; height: 100%; object-fit: cover; }
.k-prod__ph { width: 38%; height: auto; opacity: 0.55; }
.k-prod__count { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(11, 24, 54, 0.85); color: #fff; font-size: 0.75rem; font-weight: 600; }
.k-prod__cat { margin: 0 0 10px; }
.k-prod__name { margin: 0 0 6px; font-size: 1.0625rem; line-height: 1.25; }
.k-prod__name a { color: inherit; text-decoration: none; }
.k-prod__name a:hover { text-decoration: underline; }
.k-prod__resume { margin: 0 0 14px; flex-grow: 1; color: var(--text-2); font-size: 0.9375rem; line-height: 1.45; }
.k-prod__compat { margin: 0 0 14px; font-size: 0.875rem; font-weight: 600; }
.k-prod__compat span { display: block; margin-bottom: 2px; color: var(--text-2); font-size: 0.8125rem; font-weight: 400; }
.k-prod__price { margin: 0 0 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.875rem; }
.k-prod__cta { display: flex; gap: 8px; }
.k-prod__cta .btn:first-child { flex: 1; }

.k-request { margin-top: 64px; }
.k-request__in { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.k-request__text { flex: 1 1 320px; min-width: 0; }
.k-request__text h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); margin: 0 0 14px; }
.k-request__form { flex: 1 1 480px; min-width: 0; }
.k-request__row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.k-reassure--col { flex-direction: column; gap: 10px; }
.k-band { margin-top: 64px; }
.k-band__in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 32px 40px; border-radius: var(--r-lg); background: var(--solar-soft); }
.k-band__in h2 { margin: 0 0 6px; font-size: 1.375rem; }
.k-band__in p { margin: 0; }
.choices--pills { display: flex; flex-wrap: wrap; gap: 10px; }
.choice--pill .choice__box { padding: 10px 16px; border-radius: 999px; }
.choice--pill .choice__t { font-weight: 600; font-size: 0.9375rem; }

/* Fiche produit */
.k-fiche { padding-top: 24px; padding-bottom: 72px; }
.k-fiche__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.k-gal { flex: 1 1 480px; min-width: 0; }
.k-fiche__info { flex: 1 1 400px; min-width: 0; }
.k-fiche__info h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin: 0 0 14px; }
.k-fiche__info h2 { font-size: 1.0625rem; margin: 28px 0 12px; }
.k-fiche__buy { margin: 24px 0 8px; display: grid; gap: 10px; }
.k-fiche__buy .k-price__value { margin-bottom: 8px; }
.k-gal__stage { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-alt); border: 1px solid var(--line); }
.k-gal__img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.k-gal__empty { color: var(--text-3); }
.k-gal__ph { width: 34%; height: auto; opacity: 0.5; }
.k-gal__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.k-gal__nav--prev { left: 12px; }
.k-gal__nav--next { right: 12px; }
.k-gal__count { position: absolute; right: 14px; bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(11, 24, 54, 0.85); color: #fff; font-size: 0.8125rem; font-weight: 600; }
.k-gal__thumbs { display: flex; gap: 10px; margin: 14px 0 0; padding: 2px 2px 8px; list-style: none; overflow-x: auto; }
.k-gal__thumbs[hidden] { display: none; }
.k-gal__thumbs button { display: block; width: 84px; height: 64px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); cursor: pointer; }
.k-gal__thumbs button[aria-pressed="true"] { border: 2px solid var(--solar); }
.k-gal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-spec { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.k-spec th, .k-spec td { padding: 12px 0; text-align: left; border-top: 1px solid var(--line); }
.k-spec tr:last-child th, .k-spec tr:last-child td { border-bottom: 1px solid var(--line); }
.k-spec th { width: 45%; color: var(--text-2); font-weight: 500; }
.k-spec td { font-weight: 600; }
.k-fiche__desc { margin-top: 48px; max-width: 760px; }
.k-fiche__more { margin-top: 64px; }

/* Page Installateurs partenaires */
.k-part { margin-top: 64px; }
.k-part > h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); margin: 0 0 24px; }
.k-part .k-card { padding: 28px; }
.k-part .k-card h3 { margin: 16px 0 8px; font-size: 1.0625rem; }
.k-part .k-card p { margin: 0; }
.k-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.k-steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.k-steps__n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--night); color: #fff; font: 600 1rem var(--font-display); }
.k-steps h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.k-steps p { margin: 0; }
.k-part--profil { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.k-part--profil > div { flex: 1 1 320px; }
.k-part--profil > div h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); }
.k-part--profil > ul { flex: 1 1 420px; margin: 0; }
.k-part--faq { max-width: 820px; }
.k-faq { margin-bottom: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.k-faq summary { font-weight: 700; font-size: 1.0625rem; cursor: pointer; }
.k-faq p { margin: 12px 0 0; color: var(--text-2); }

/* ---------- Blog : cartes avec couverture, article à la une, filtres ---------- */
.post-card { padding: 0; gap: 0; overflow: hidden; }
.post-card__media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--night); }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .post-card__media img { transition: transform 0.4s ease; } .post-card:hover .post-card__media img { transform: scale(1.04); } }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.post-card__cat { display: block; }
.post-card__body .post-card__meta { order: 3; margin-top: 2px; }
.post-card__body .post-card__more { margin-top: auto; padding-top: 4px; }
.posts--blog { gap: 24px; }
@media (min-width: 720px) { .posts--blog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.posts--blog > li[hidden] { display: none; }
.posts--blog > .is-featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .post-card--featured { flex-direction: row; align-items: stretch; }
  .post-card--featured { align-items: stretch; }
  .post-card--featured .post-card__media img { object-fit: contain; }
  .post-card--featured .post-card__media { flex: 0 0 58%; align-self: stretch; aspect-ratio: auto; min-height: 340px; }
  .post-card--featured .post-card__body { flex: 1 1 0; justify-content: center; padding: 32px 36px; gap: 14px; }
  .post-card--featured .post-card__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.12; }
  .post-card--featured .post-card__excerpt { font-size: 1.0625rem; }
}
.post-card--featured .post-card__more::after { content: " →"; }
.blog-tools { display: grid; gap: 14px; margin-bottom: 12px; }
.blog-search { max-width: 360px; }
.blog-count { min-height: 1.5em; margin: 0 0 12px; color: var(--text-2); font-size: 0.9375rem; }
.blog-vide { margin: 24px 0; padding: 32px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--text-2); }
.lien-bouton { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cms-posts .posts { margin-top: 0; }

/* Couverture et figures animées des articles */
.article-cover { margin: 24px 0 0; max-width: 760px; }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: var(--r-lg); background: var(--night); }
@media (min-width: 1024px) {
  .article-head--cover { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 460px; column-gap: 56px; align-items: start; }
  .article-head--cover > :not(.article-cover) { grid-column: 1; max-width: 640px; }
  .article-head--cover > .article-cover { grid-column: 2; grid-row: 1 / span 5; margin: 8px 0 0; max-width: none; }
}
.art-fig { margin: 2em 0; }
.art-fig img { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: var(--night); }
.art-fig figcaption { margin-top: 10px; color: var(--text-2); font-size: 0.9375rem; }
