/* === Klipa AI — En-tête & pied de page (design system Manrope/bleu) ===
   Porté depuis le prototype validé "Header Footer.dc.html". Classes préfixées
   klx- pour ne jamais entrer en collision avec l'ancien header/footer. Piloté
   par [data-theme] (même bascule que tout le site). */

:root {
  --kl-page:#F7F8FA; --kl-surface:#FFFFFF; --kl-surface2:#F7F8FA;
  --kl-border:#E5E7EB; --kl-borderS:#D1D5DB;
  /* --kl-text3 : #9CA3AF donnait 2,54:1 sur blanc, sous le seuil WCAG 4,5:1 exigé
     par design-foundations §2 (P8). Remonté au minimum lisible (4,83:1) en clair --
     VE1b (Codex, 09/08) : la version sombre ci-dessous recopiait cette même valeur
     sans l'ajuster (3,60-3,91:1, sous le seuil) ; corrigée avec la valeur DÉJÀ
     validée de style.css::--text-3 sombre (#A7B0BF, 7,96:1 sur --kl-surface sombre).
     Même token que static/css/studio.css, désormais gardé identique dans les deux. */
  --kl-text:#111827; --kl-text2:#6B7280; --kl-text3:#6B7280;
  --kl-hover:#EDEFF3; --kl-menu:#FFFFFF; --kl-shadow:0 12px 28px rgba(16,24,40,.14);
  /* Encre premium de CETTE palette. Le badge d'abonnement lisait `--accent-ink`
     (palette du site) alors que sa pastille suit `--kl-surface` : dans l'atelier,
     qui redéfinit l'encre du site en clair sans toucher à la pastille blanche, le
     violet clair tombait à 1,85:1 — illisible. Une encre par palette, et les deux
     restent d'accord quel que soit l'écran. */
  --kl-accent:#7C3AED;
  --kl-footer:#0E1116; --kl-footerText:#C7CBD4; --kl-footerText2:#8A909C; --kl-footerBorder:#242A33;
}
[data-theme="dark"] {
  --kl-page:#0E1116; --kl-surface:#171A21; --kl-surface2:#1C2029;
  --kl-border:#242A33; --kl-borderS:#2A2F3A;
  --kl-text:#F3F4F6; --kl-text2:#9CA3AF; --kl-text3:#A7B0BF;
  --kl-hover:#1C2029; --kl-menu:#171A21; --kl-shadow:0 12px 28px rgba(0,0,0,.5);
  --kl-accent:#C4B5FD;
  --kl-footer:#080A0E; --kl-footerText:#9CA3AF; --kl-footerText2:#9CA3AF; --kl-footerBorder:#1C2029;
}

@keyframes klx-menu { from { opacity:0; transform:translateY(8px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes klx-acc  { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

/* ===================== EN-TÊTE ===================== */
.klx-header {
  position:sticky; top:0; z-index:100;
  /* flex-shrink:0 : le body est une colonne flex — sans lui, la barre est
     comprimée à sa hauteur min-content et son contenu déborde. */
  height:66px; flex-shrink:0; background:var(--kl-surface); border-bottom:1px solid var(--kl-border);
  display:flex; align-items:center; justify-content:space-between; padding:0 28px;
  font-family:'Manrope','Manrope Fallback',system-ui,sans-serif;
}
.klx-left { display:flex; align-items:center; gap:26px; }
.klx-logo { display:flex; align-items:center; }
/* pas de `display` ici : ce sont les classes .logo-light/.logo-dark (style.css)
   qui gèrent la bascule clair/sombre du logo. Taille = celle d'avant la refonte. */
.klx-logo img { height:34px; width:auto; }
.klx-nav { display:flex; align-items:center; gap:2px; }

.klx-navbtn {
  display:inline-flex; align-items:center; gap:4px; height:40px; padding:0 12px;
  border:none; background:transparent; border-radius:10px; font-family:inherit;
  font-size:15px; font-weight:600; color:var(--kl-text); cursor:pointer; transition:background .12s;
}
.klx-navbtn:hover { background:var(--kl-hover); }
.klx-navbtn svg { transition:transform .18s; }
.klx-navbtn.klx-open svg { transform:rotate(180deg); }
.klx-navlink {
  display:inline-flex; align-items:center; height:40px; padding:0 12px; border-radius:10px;
  text-decoration:none; font-size:15px; font-weight:600; color:var(--kl-text); transition:background .12s;
}
.klx-navlink:hover { background:var(--kl-hover); }

.klx-right { display:flex; align-items:center; gap:8px; }
.klx-auth { display:flex; align-items:center; gap:8px; }
.klx-iconbtn {
  width:40px; height:40px; border:1px solid var(--kl-border); border-radius:10px;
  background:var(--kl-surface); color:var(--kl-text); cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .12s; position:relative;
}
.klx-iconbtn:hover { background:var(--kl-hover); }
.klx-iconbtn-wide {
  display:inline-flex; align-items:center; gap:6px; height:40px; padding:0 12px;
  border:1px solid var(--kl-border); border-radius:10px; background:var(--kl-surface);
  color:var(--kl-text); cursor:pointer; font-family:inherit; font-size:13px; font-weight:800;
}
.klx-iconbtn-wide:hover { background:var(--kl-hover); }
.klx-divider { width:1px; height:24px; background:var(--kl-border); margin:0 4px; }

.klx-cta {
  height:42px; padding:0 20px; border:none; border-radius:12px; background:var(--primary);
  color:#fff; font-family:inherit; font-size:15px; font-weight:700; cursor:pointer;
  white-space:nowrap; box-shadow:0 4px 12px rgba(37,99,235,.28); text-decoration:none;
  display:inline-flex; align-items:center;
}
.klx-cta:hover { background:var(--primary-hover); }
.klx-ghost {
  height:42px; padding:0 16px; border:1px solid var(--kl-borderS); border-radius:12px;
  background:var(--kl-surface); color:var(--kl-text); font-family:inherit; font-size:15px;
  font-weight:700; cursor:pointer; white-space:nowrap; text-decoration:none;
  display:inline-flex; align-items:center;
}
.klx-ghost:hover { background:var(--kl-hover); }
.klx-pro-link {
  display:inline-flex; align-items:center; gap:6px; height:42px; padding:0 12px; border-radius:10px;
  text-decoration:none; color:var(--accent-ink); font-size:14px; font-weight:800;
}
.klx-pro-link:hover { background:var(--kl-hover); }
.klx-pro-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); }

/* ---- Méga-menu ---- */
.klx-item { position:relative; }
.klx-mega-wrap { position:absolute; top:100%; left:0; padding-top:14px; z-index:40; }
.klx-mega {
  background:var(--kl-menu); border:1px solid var(--kl-border); border-radius:18px;
  box-shadow:var(--kl-shadow); padding:18px; display:flex; gap:14px;
  transform-origin:top left; animation:klx-menu .2s cubic-bezier(.22,1,.36,1); max-width:calc(100vw - 40px);
}
.klx-mega-tools { width:824px; flex-direction:column; gap:12px; padding:16px; }
.klx-mega-solutions { width:620px; }
.klx-mega-cols { display:flex; gap:8px; flex:1; min-width:0; }
.klx-mcol { flex:1; min-width:0; }
.klx-mcol-title {
  margin:2px 6px 8px; font-size:11px; font-weight:800; letter-spacing:.05em;
  text-transform:uppercase; color:var(--kl-text3);
}
.klx-mrows { display:flex; flex-direction:column; gap:1px; }
.klx-mrow {
  position:relative; display:flex; align-items:center; gap:11px; padding:8px 9px;
  border-radius:11px; text-decoration:none; transition:background .14s;
}
.klx-mrow:hover { background:var(--kl-hover); }
.klx-mtile {
  width:34px; height:34px; border-radius:10px; display:flex; align-items:center;
  justify-content:center; flex-shrink:0; transition:transform .16s cubic-bezier(.22,1,.36,1);
}
.klx-mrow:hover .klx-mtile { transform:scale(1.06); }
.klx-mtxt { flex:1; min-width:0; }
.klx-mhead { display:flex; align-items:center; gap:6px; }
.klx-mlabel { font-size:14px; font-weight:700; color:var(--kl-text); white-space:nowrap; }
.klx-mdesc {
  display:block; font-size:12px; font-weight:500; color:var(--kl-text2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px;
}
.klx-pro {
  font-size:9px; font-weight:800; letter-spacing:.04em; color:var(--accent-ink);
  background:rgba(124,58,237,.12); padding:1px 5px; border-radius:5px;
}
.klx-marrow {
  flex-shrink:0; opacity:0; transform:translateX(-4px); transition:all .16s; color:var(--kl-text3);
}
.klx-mrow:hover .klx-marrow { opacity:1; transform:translateX(0); }

/* barre mise en avant (Optimiseur) — pleine largeur, bas du méga-menu Outils.
   DEUX liens distincts : la zone gauche (icône+texte) ouvre l'Optimiseur, le
   bouton droit « Tous les outils » ouvre le catalogue /tools. */
.klx-feat-bar {
  display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:14px;
  background:linear-gradient(120deg,rgba(37,99,235,.10),rgba(124,58,237,.10));
  border:1px solid var(--kl-border); transition:border-color .14s;
}
.klx-feat-bar:hover { border-color:var(--primary); }
.klx-feat-main { display:flex; align-items:center; gap:14px; flex:1; min-width:0; text-decoration:none; }
.klx-feat-ic {
  width:42px; height:42px; border-radius:12px; background:linear-gradient(135deg,#2563EB,#7C3AED);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 4px 12px rgba(37,99,235,.3); color:#fff;
}
.klx-feat-txt { flex:1; min-width:0; }
.klx-feat-title { display:block; margin:0; font-size:15px; font-weight:800; color:var(--kl-text); letter-spacing:-.01em; }
.klx-feat-desc { display:block; margin:2px 0 0; font-size:13px; font-weight:500; color:var(--kl-text2); }
.klx-feat-btn {
  display:inline-flex; align-items:center; gap:6px; flex-shrink:0; height:38px; padding:0 16px; border-radius:10px;
  background:var(--primary); color:#fff; font-size:14px; font-weight:700; white-space:nowrap;
  box-shadow:0 4px 12px rgba(37,99,235,.28); text-decoration:none;
}
.klx-feat-btn:hover { background:var(--primary-hover); }

/* ---- menus déroulants (langue, compte) ---- */
.klx-drop {
  position:absolute; top:calc(100% + 10px); right:0; background:var(--kl-menu);
  border:1px solid var(--kl-border); border-radius:12px; box-shadow:var(--kl-shadow); padding:6px;
  transform-origin:top right; animation:klx-menu .18s cubic-bezier(.22,1,.36,1); z-index:40;
}
.klx-drop-lang { width:150px; }
.klx-drop-account { width:250px; border-radius:14px; padding:8px; }
.klx-langitem {
  display:flex; align-items:center; justify-content:space-between; width:100%; padding:9px 11px;
  border:none; background:transparent; border-radius:9px; font-family:inherit; font-size:14px;
  font-weight:600; color:var(--kl-text); cursor:pointer;
}
.klx-langitem:hover { background:var(--kl-hover); }
.klx-langitem.klx-active { font-weight:800; }
.klx-acct-head { padding:12px 12px 14px; }
.klx-acct-name { margin:0; font-size:15px; font-weight:800; color:var(--kl-text); }
.klx-acct-email { margin:3px 0 0; font-size:13px; font-weight:500; color:var(--kl-text2); }
.klx-acct-badge {
  display:inline-flex; align-items:center; gap:5px; margin-top:8px; height:22px; padding:0 8px;
  border-radius:99px; background:var(--kl-hover); font-size:11px; font-weight:800; color:var(--kl-text2);
}
.klx-acct-badge.klx-pro-badge { background:rgba(124,58,237,.10); color:var(--accent-ink); }
.klx-acct-sep { height:1px; background:var(--kl-border); margin:0 4px 6px; }
.klx-acct-item {
  display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:9px;
  text-decoration:none; color:var(--kl-text); font-size:14px; font-weight:600;
  transition:background .12s; border:none; background:transparent; width:100%; cursor:pointer; font-family:inherit;
}
.klx-acct-item:hover { background:var(--kl-hover); }
.klx-acct-item.klx-danger { color:var(--error-ink); font-weight:700; }
.klx-avatar {
  width:42px; height:42px; border-radius:50%; border:2px solid var(--kl-border);
  background:linear-gradient(135deg,#2563EB,#7C3AED); color:#fff; font-family:inherit;
  font-size:15px; font-weight:800; cursor:pointer; display:flex; align-items:center; justify-content:center;
}

/* ---- indicateur de crédits (affiché seulement si le serveur l'active) ---- */
.klx-credits-btn {
  display:inline-flex; align-items:center; gap:7px; height:40px; max-width:190px; padding:0 12px;
  border:1px solid var(--kl-border); border-radius:10px; background:var(--kl-surface);
  font-family:inherit; font-size:13px; font-weight:700; color:var(--kl-text); cursor:pointer;
}
.klx-credits-btn span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.klx-credits-btn:hover { background:var(--kl-hover); }
.klx-credits-btn.klx-credits-low { border-color:var(--warning,#D97706); }
/* ---- écran de travail : l'en-tête du site cède la place à la barre ---------
   La règle vivait dans atelier-chrome.css, liée dans le CORPS de la page. Elle
   n'arrivait donc qu'APRÈS la première peinture, et l'en-tête restait visible
   au-dessus de la barre de travail le temps du chargement. Ici, dans la feuille
   de l'en-tête chargée dans le <head>, l'en-tête n'est jamais peint quand le
   serveur sert la page déjà engagée. `atelier-on` est posée par le serveur puis
   entretenue par la coquille (templates/tool/atelier-shell.html). */
body.atelier-on .klx-header { display:none; }
/* ---- badge d'ABONNEMENT — la même règle sert les DEUX barres --------------
   Un abonné ne lit plus « Inclus » mais le NOM de son abonnement (catalogue).
   Le violet est la couleur du premium et il est rare : c'est ici son emploi.
   Le vert reste hors de portée — l'exception validée ne vaut que pour
   l'indicateur de crédits à trois états (design-foundations §6.1).
   La couleur n'est jamais seule porteuse : le nom du plan est écrit, le badge
   reste exact en niveaux de gris.
   Contrastes MESURÉS (texte sur fond réel), les deux thèmes :
     clair  #7C3AED sur #FFFFFF 5,70:1 — sur la teinte #F2EBFD 4,91:1
     sombre #C4B5FD sur #171A21 9,43:1 — sur la teinte #2F3040 7,03:1
   `is-abo-top` = plan le plus haut du catalogue : même encre, fond teinté. Une
   seconde couleur distinguerait moins bien que le mot, qui le dit déjà. */
.klx-credits-btn.is-abo { color:var(--kl-accent); border-color:var(--kl-accent); }
.klx-credits-btn.is-abo span { color:inherit; }
.klx-credits-btn.is-abo-top { background:rgba(124,58,237,.10); }
.klx-credits-btn.is-abo-top:hover { background:rgba(124,58,237,.17); }
[data-theme="dark"] .klx-credits-btn.is-abo-top { background:rgba(196,181,253,.14); }
[data-theme="dark"] .klx-credits-btn.is-abo-top:hover { background:rgba(196,181,253,.22); }
.klx-drop-credits { width:288px; max-width:calc(100vw - 24px); border-radius:14px; padding:8px; }
.klx-cr-rows { padding:0 8px; }
.klx-cr-row {
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin:0 0 6px; padding:0 8px; font-size:13px; font-weight:600; color:var(--kl-text2);
}
.klx-cr-rows .klx-cr-row { padding:0; }
.klx-cr-row b { font-weight:800; color:var(--kl-text); white-space:nowrap; }
.klx-cr-title { margin:8px 8px 6px; font-size:12px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; color:var(--kl-text2); }
.klx-cr-note { margin:2px 8px 8px; font-size:12px; font-weight:500; line-height:1.45; color:var(--kl-text2); }
.klx-cr-jalon { color:var(--kl-text); font-weight:600; }
.klx-cr-offer {
  display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%;
  min-height:52px; padding:9px 12px; margin:0 0 4px; border:1px solid var(--kl-border); border-radius:10px;
  background:var(--kl-surface); font-family:inherit; text-align:left; cursor:pointer;
}
.klx-cr-offer:hover { background:var(--kl-hover); }
.klx-cr-offer-txt { min-width:0; }
.klx-cr-offer-txt b { display:block; font-size:14px; font-weight:800; color:var(--kl-text); }
.klx-cr-offer-txt span { display:block; margin-top:2px; font-size:12px; font-weight:500; line-height:1.35; color:var(--kl-text2); }

/* ===================== MOBILE ===================== */
.klx-hamb, .klx-mobile-cta, .klx-mobile-right { display:none; }
.klx-hamb {
  width:40px; height:40px; border:1px solid var(--kl-border); border-radius:10px;
  background:var(--kl-surface); cursor:pointer; align-items:center; justify-content:center; color:var(--kl-text);
}
.klx-mobile-panel { display:none; }

@media (max-width:960px) {
  .klx-header { height:56px; padding:0 16px; }
  .klx-logo img { height:24px; }
  .klx-nav { display:none; }
  /* Sur téléphone la barre ne garde de la zone droite QUE l'indicateur de
     crédits — le reste passe dans le panneau du menu. */
  .klx-right { display:flex; gap:0; min-width:0; }
  .klx-right > *:not(.klx-credits) { display:none; }
  /* Cible tactile ≥ 44 px ; seul le badge est compressible (ellipse sur son
     libellé), le CTA et le burger gardent leur taille pleine. */
  .klx-credits-btn { height:44px; max-width:150px; min-width:0; padding:0 10px; font-size:12.5px; }
  .klx-drop-credits {
    position:fixed; top:62px; left:12px; right:12px; width:auto; max-width:none;
    max-height:calc(100vh - 74px); overflow-y:auto; transform-origin:top center;
  }
  .klx-hamb { display:flex; flex:none; width:44px; height:44px; }
  .klx-mobile-cta {
    display:inline-flex; align-items:center; flex:none; white-space:nowrap;
    height:44px; padding:0 14px; border:none; border-radius:10px;
    background:var(--primary); color:#fff; font-family:inherit; font-size:13px; font-weight:700;
    cursor:pointer; box-shadow:0 3px 10px rgba(37,99,235,.3); text-decoration:none;
  }
  .klx-mobile-right { display:flex; align-items:center; gap:8px; flex:none; }
  /* Très petits écrans : quand le badge est là, le CTA cède la place — le
     panneau du badge propose déjà la création de compte. Le burger reste
     toujours atteignable. */
  @media (max-width:374px) {
    .klx-header:has(.klx-credits-btn) .klx-mobile-cta { display:none; }
  }

  /* Tablette : le panneau garde une largeur de carte au lieu de s'étirer
     sur toute la largeur de l'écran. */
  @media (min-width:600px) {
    .klx-drop-credits { left:auto; width:380px; }
  }

  .klx-mobile-panel {
    display:block; position:fixed; left:0; right:0; top:56px; bottom:0; z-index:99;
    background:var(--kl-page); overflow-y:auto; padding:14px 16px 40px;
    -webkit-overflow-scrolling:touch; animation:klx-acc .2s ease;
    font-family:'Manrope','Manrope Fallback',system-ui,sans-serif;
  }
  .klx-mob-card {
    display:flex; align-items:center; gap:12px; padding:12px; background:var(--kl-surface);
    border:1px solid var(--kl-border); border-radius:14px; margin-bottom:14px;
  }
  .klx-mob-avatar {
    width:44px; height:44px; border-radius:50%; background:linear-gradient(135deg,#2563EB,#7C3AED);
    color:#fff; font-size:16px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .klx-acc-head {
    width:100%; display:flex; align-items:center; justify-content:space-between; padding:15px 8px;
    border:none; background:transparent; font-family:inherit; font-size:16px; font-weight:700;
    color:var(--kl-text); cursor:pointer;
  }
  .klx-acc-head svg { transition:transform .18s; }
  .klx-acc-head.klx-open svg { transform:rotate(180deg); }
  .klx-acc-body { animation:klx-acc .22s cubic-bezier(.22,1,.36,1); padding:4px 2px 12px; }
  .klx-acc-grouptitle { margin:12px 6px 4px; font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--kl-text3); }
  .klx-mob-row { display:flex; align-items:center; gap:12px; padding:9px 8px; border-radius:11px; text-decoration:none; }
  .klx-mob-row:active { background:var(--kl-hover); }
  .klx-mob-tile { width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .klx-mob-label { font-size:15px; font-weight:700; color:var(--kl-text); }
  .klx-mob-desc { display:block; font-size:12px; font-weight:500; color:var(--kl-text2); margin-top:1px; }
  .klx-acc-link { display:block; padding:15px 8px; text-decoration:none; font-size:16px; font-weight:700; color:var(--kl-text); }
  .klx-mob-sep { height:1px; background:var(--kl-border); }
  .klx-mob-all { display:inline-flex; align-items:center; gap:7px; margin:10px 0 0 8px; padding:10px 0; text-decoration:none; color:var(--primary-ink); font-size:15px; font-weight:800; }
  .klx-mob-util { display:flex; gap:10px; margin-top:16px; }
  .klx-mob-langseg { flex:1; display:flex; padding:4px; background:var(--kl-surface2); border:1px solid var(--kl-border); border-radius:12px; gap:4px; }
  .klx-mob-langbtn { flex:1; height:36px; border:none; border-radius:9px; font-family:inherit; font-size:14px; font-weight:800; cursor:pointer; background:transparent; color:var(--kl-text2); }
  .klx-mob-langbtn.klx-active { background:var(--primary); color:#fff; }
  .klx-mob-theme {
    flex:1; display:flex; align-items:center; justify-content:center; gap:8px; height:44px;
    border:1px solid var(--kl-border); border-radius:12px; background:var(--kl-surface);
    color:var(--kl-text); font-family:inherit; font-size:14px; font-weight:700; cursor:pointer;
  }
  .klx-mob-pro {
    display:flex; align-items:center; justify-content:center; gap:8px; height:46px; border-radius:12px;
    background:rgba(124,58,237,.10); text-decoration:none; color:var(--accent-ink); font-size:15px; font-weight:800; margin-bottom:14px;
  }
  .klx-mob-danger { display:block; padding:14px 8px; font-size:15px; font-weight:700; color:var(--error-ink); text-decoration:none; }
}

/* ===================== PIED DE PAGE ===================== */
.klx-footer { background:var(--kl-footer); padding:44px 40px 28px; font-family:'Manrope',system-ui,sans-serif; }
.klx-footer-inner { max-width:1200px; margin:0 auto; }
.klx-foot-grid { display:grid; grid-template-columns:1.4fr 1fr 1.3fr 1fr; gap:32px; }
.klx-foot-logo { height:30px; width:auto; display:block; }
.klx-foot-tagline { margin:16px 0 0; font-size:14px; line-height:1.6; color:var(--kl-footerText2); font-weight:500; max-width:240px; }
.klx-foot-title { margin:0 0 14px; font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--kl-footerText2); }
.klx-foot-col { display:flex; flex-direction:column; gap:10px; }
.klx-foot-tools { display:grid; grid-template-columns:1fr 1fr; gap:10px 20px; }
.klx-foot-link { text-decoration:none; font-size:14px; font-weight:600; color:var(--kl-footerText); transition:color .12s; }
.klx-foot-link:hover { color:#fff; }
.klx-foot-sep { height:1px; background:var(--kl-footerBorder); margin:32px 0 20px; }
.klx-foot-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.klx-foot-copy { margin:0; font-size:13px; font-weight:500; color:var(--kl-footerText2); }
.klx-foot-legal { display:flex; gap:16px; }
.klx-foot-linksmall { text-decoration:none; font-size:13px; font-weight:600; color:var(--kl-footerText2); }
.klx-foot-linksmall:hover { color:var(--kl-footerText); }

@media (max-width:960px) {
  .klx-footer { padding:28px 22px; }
  .klx-foot-grid { grid-template-columns:1fr; gap:26px; }
  .klx-foot-tagline { max-width:none; }
  .klx-foot-bottom { flex-direction:column-reverse; align-items:flex-start; gap:14px; }
}

/* Accueil « Projection » (T-accueil-projection, décision ratifiée) : le thème
   clair/sombre de ce site est une préférence UTILISATEUR ([data-theme]) ;
   Projection est nuit/clair FIXE par section, pas theme-aware. Un bouton de
   bascule visible sur une page où il ne change presque rien serait trompeur
   — masqué uniquement sur cette page ("proj-page", posé sur <body> par
   render_page(); ne PAS confondre avec la classe de scope CSS ".proj", posée
   ailleurs, sur le wrapper du contenu). Le bouton reste fonctionnel sur
   toutes les autres pages : ceci ne touche que sa visibilité ici. */
body.proj-page .klx-iconbtn[aria-label="Thème"],
body.proj-page .klx-mob-theme { display: none; }
