/* KILICASA — navigation commune (accueil, waiting list, privacy, pages SEO).
   Reprend le style du dashboard agence (KILICASA-pivot-agency-agent-dashbaord,
   src/styles/tokens.css et UserAppSidebar.module.css) : surfaces blanches,
   bordures gris clair, éléments arrondis 12 px avec fond gris à l'état actif,
   libellés de section en petites capitales, CTA pilule anthracite.
   Tout est préfixé kn- pour ne pas toucher au CSS de la landing. */

:root {
  --kn-surface: #ffffff;
  --kn-muted: #f3f4f6;        /* --ui-surface-hover / -muted */
  --kn-border: #e5e7eb;       /* --ui-border */
  --kn-border-strong: #d1d5db;
  --kn-text: #111111;         /* --agency-foreground */
  --kn-text-2: #4b5563;       /* --ui-text-secondary */
  --kn-text-3: #6b7280;       /* --ui-text-tertiary */
  --kn-ink: #303434;          /* --color-anthracite (CTA) */
  --kn-ink-hover: #272a2a;
  --kn-radius-bar: 18px;
  --kn-radius-panel: 18px;
  --kn-radius-item: 12px;
  --kn-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  --kn-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.13);
  --kn-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mêmes marges que la landing, sur toutes les pages (calculateurs compris). */
:root {
  --page-gutter: clamp(20px, 6vw, 80px);
  --kn-bar-max: calc(1280px - 2 * var(--page-gutter) + 24px);
}

.kn-header {
  transition: top .35s cubic-bezier(.2,.8,.2,1);
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 20px max(12px, calc(var(--page-gutter, 24px) - 12px)) 0;
  font-family: 'Jost', Helvetica, Arial, sans-serif;
  color: var(--kn-text);
}

.kn-header *, .kn-header *::before, .kn-header *::after { box-sizing: border-box; }

.kn-bar {
  position: relative;
  max-width: var(--kn-bar-max, 1240px);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  background: var(--kn-surface);
  border: 1px solid var(--kn-border);
  border-radius: var(--kn-radius-bar);
  box-shadow: var(--kn-shadow);
  transition: box-shadow 0.2s var(--kn-ease);
}
.kn-scrolled .kn-bar { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }

.kn-logo { display: inline-flex; align-items: center; margin-right: auto; min-height: 44px; }
.kn-logo img { display: block; height: 30px; width: auto; }

.kn-header :focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kn-ink); }

/* ---------- boutons ---------- */
.kn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--kn-ease), box-shadow 0.2s var(--kn-ease), transform 0.2s var(--kn-ease);
}
.kn-btn .kn-svg { width: 18px; height: 18px; }
.kn-btn--primary { background: var(--kn-ink); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16); }
.kn-btn--ghost { background: var(--kn-surface); color: var(--kn-text); border-color: var(--kn-border-strong); }
@media (hover: hover) and (pointer: fine) {
  .kn-btn--primary:hover { background: var(--kn-ink-hover); color: #fff; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24); transform: translateY(-1px); }
  .kn-btn--ghost:hover { background: var(--kn-muted); }
}
.kn-btn:active { transform: scale(0.98); }

/* ---------- éléments de premier niveau ---------- */
.kn-list { list-style: none; margin: 0; padding: 0; }

.kn-top {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px 0 14px;
  background: transparent; border: 0; border-radius: var(--kn-radius-item);
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--kn-text-2);
  cursor: pointer;
  transition: background-color 0.2s var(--kn-ease), color 0.2s var(--kn-ease);
}
.kn-chevron { width: 16px; height: 16px; transition: transform 0.25s var(--kn-ease); }
.kn-top[aria-expanded='true'] .kn-chevron { transform: rotate(180deg); }
.kn-top[aria-expanded='true'], .kn-top--active { background: var(--kn-muted); color: var(--kn-text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .kn-top:hover { background: var(--kn-muted); color: var(--kn-text); }
}

.kn-soon {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  background: var(--kn-muted); color: var(--kn-text-3);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5;
  white-space: nowrap;
}
.kn-soon--top { font-size: 10px; padding: 1px 6px; }

.kn-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- panneaux ---------- */
.kn-panel[hidden] { display: none; }
.kn-intro { margin: 0 0 14px; font-size: 14px; color: var(--kn-text-2); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kn-label {
  margin: 0 0 6px; padding: 0 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kn-text-3);
}
.kn-items, .kn-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.kn-item {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 8px 12px; border-radius: var(--kn-radius-item);
  color: var(--kn-text); text-decoration: none;
  transition: background-color 0.2s var(--kn-ease);
}
.kn-item__icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--kn-muted); color: var(--kn-text);
  transition: background-color .2s var(--kn-ease), color .2s var(--kn-ease);
}
.kn-item__icon .kn-svg { color: inherit; }
.kn-item__icon .kn-svg { width: 20px; height: 20px; }
.kn-item__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kn-item__title { font-size: 15px; font-weight: 500; line-height: 1.3; }
.kn-item__desc { font-size: 13px; color: var(--kn-text-2); line-height: 1.35; }
@media (hover: hover) and (pointer: fine) {
  a.kn-item:hover { background: var(--kn-muted); }
  a.kn-item:hover .kn-item__icon { background: var(--kn-ink); color: #fff; }
}
.kn-item--current { background: var(--kn-muted); }
.kn-item--current .kn-item__title { font-weight: 600; }
.kn-item--current .kn-item__icon { background: var(--kn-ink); color: #fff; }
.kn-item--soon { cursor: default; }
.kn-item--soon .kn-item__title, .kn-item--soon .kn-item__desc, .kn-item--soon .kn-item__icon { opacity: 0.55; }

.kn-links { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--kn-border); }
.kn-links .kn-item__icon { width: 30px; height: 30px; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1px var(--kn-border); }
.kn-links .kn-item__icon .kn-svg { width: 17px; height: 17px; }
/* Lien en bas de panneau : icône lisible sur la page courante et au survol. */
.kn-links .kn-item--current .kn-item__icon { background: var(--kn-ink); color: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .kn-links a.kn-item:hover .kn-item__icon { background: var(--kn-ink); color: #fff; box-shadow: none; }
}

/* Métros : puces compactes plutôt qu'une longue liste. */
.kn-group--compact .kn-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.kn-group--compact .kn-item { min-height: 40px; padding: 6px 12px; }
.kn-group--compact .kn-item--soon .kn-soon { display: none; }

/* ---------- actions ---------- */
.kn-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- mobile / tablette : tiroir ---------- */
.kn-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 12px;
  background: var(--kn-surface); border: 1px solid var(--kn-border); border-radius: var(--kn-radius-item);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); cursor: pointer;
}
.kn-burger span { display: block; height: 2px; border-radius: 2px; background: var(--kn-text); }

.kn-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 12px; }
.kn-drawer-title { font-family: 'Krona One', sans-serif; font-size: 15px; }
.kn-close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--kn-surface); border: 1px solid var(--kn-border); border-radius: var(--kn-radius-item);
  color: var(--kn-text); cursor: pointer;
}
.kn-close svg { width: 20px; height: 20px; }

.kn-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(17, 17, 17, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.kn-backdrop[hidden] { display: none; }
/* Le fond apparaît en fondu, au rythme du tiroir. */
.kn-backdrop { transition: opacity .3s var(--kn-ease); }
@starting-style { .kn-backdrop { opacity: 0; } }
/* Bouton menu et fermeture : retour au toucher. */
.kn-burger, .kn-close { transition: background-color .15s ease, transform .16s var(--kn-ease); }
.kn-burger:active, .kn-close:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .kn-burger:hover, .kn-close:hover { background: var(--kn-muted); } }
@media (prefers-reduced-motion: reduce) { .kn-backdrop { transition: none; } .kn-burger:active, .kn-close:active { transform: none; } }
/* Focus visible sur le pied de page sombre. */
.kc-footer :focus-visible { outline: 3px solid var(--cream, #FDF4E7); outline-offset: 2px; }

html.kn-lock, html.kn-lock body { overflow: hidden; }

@media (max-width: 1099.98px) {
  .kn-menu {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
    width: min(380px, 88vw);
    display: flex; flex-direction: column;
    padding: 12px;
    background: var(--kn-surface);
    border-radius: 20px 0 0 20px;
    box-shadow: var(--kn-shadow-lg);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s var(--kn-ease), visibility 0.3s;
  }
  /* À l'ouverture, visible immédiatement (le focus peut s'y poser) ; à la
     fermeture, visibility attend la fin du glissement. */
  .kn-open .kn-menu { transform: translateX(0); visibility: visible; transition: transform 0.3s var(--kn-ease), visibility 0s; }
  .kn-list { display: grid; gap: 4px; }
  .kn-top { width: 100%; justify-content: flex-start; font-size: 16px; min-height: 48px; }
  .kn-top .kn-chevron { margin-left: auto; }
  .kn-panel { padding: 8px 0 12px 8px; }
  .kn-groups { display: grid; gap: 12px; }
  .kn-actions {
    margin-top: auto; padding-top: 16px;
    flex-direction: column; align-items: stretch;
    position: sticky; bottom: -12px; background: var(--kn-surface); padding-bottom: 12px;
  }
  .kn-actions .kn-btn { width: 100%; min-height: 48px; }
}

/* Inscription toujours visible sur mobile et tablette, à côté du menu. */
.kn-join { min-height: 44px; padding: 0 18px; font-size: 14.5px; box-shadow: none; }
.kn-join:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .kn-join:active { transform: none; } }

@media (max-width: 420px) {
  .kn-join { padding: 0 14px; }
  .kn-header { padding: 14px 8px 0; }
  .kn-bar { padding: 6px 6px 6px 14px; min-height: 58px; border-radius: 16px; }
  .kn-logo img { height: 24px; }
}

/* ---------- desktop : barre en ligne + panneaux flottants ---------- */
@media (min-width: 1100px) {
  .kn-burger, .kn-drawer-head, .kn-backdrop, .kn-join { display: none !important; }
  .kn-menu { display: flex; align-items: center; gap: 16px; flex: 1; }
  .kn-list { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
  .kn-li--company { position: relative; }
  .kn-panel {
    position: absolute; top: calc(100% + 8px); z-index: 70;
    left: 50%; transform: translateX(-50%);
    width: min(860px, calc(100vw - 48px));
    padding: 20px;
    background: var(--kn-surface);
    border: 1px solid var(--kn-border);
    border-radius: var(--kn-radius-panel);
    box-shadow: var(--kn-shadow-lg);
    animation: kn-pop 0.18s var(--kn-ease);
  }
  .kn-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
  .kn-panel--areas { width: min(560px, calc(100vw - 48px)); }
  .kn-panel--areas .kn-groups, .kn-panel--areas .kn-links { grid-template-columns: 1fr; }
  /* Comparatifs : portails | logiciels d'agence, côte à côte, sans icônes. */
  .kn-panel--compare { width: min(640px, calc(100vw - 48px)); }
  .kn-panel--compare .kn-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kn-panel--compare .kn-links { grid-template-columns: 1fr; }
  .kn-panel--areas .kn-group--compact .kn-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kn-li--company .kn-panel { left: auto; right: 0; transform: none; width: 260px; padding: 10px; }
  .kn-li--company .kn-groups { grid-template-columns: 1fr; }
  .kn-li--company .kn-label { display: none; }
  .kn-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@keyframes kn-pop {
  from { opacity: 0; translate: 0 -4px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .kn-header *, .kn-menu { transition: none !important; animation: none !important; }
}

/* ---------- accueil : bloc « Free tools » ---------- */
.kn-tools {
  padding: 72px 0;
  font-family: 'Jost', Helvetica, Arial, sans-serif;
  color: #111111;
}
.kn-tools__inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--page-gutter, 24px); }
.kn-eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280;
}
.kn-tools__title { margin: 0 0 12px; font-family: 'Krona One', sans-serif; font-weight: 400; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.25; }
.kn-tools__intro { margin: 0 0 28px; max-width: 64ch; font-size: 18px; line-height: 1.6; color: #3d3830; }
.kn-tools__grid { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kn-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .kn-tools__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kn-tool {
  position: relative; height: 100%;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px;
  padding: 18px 48px 18px 18px;
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #111111; text-decoration: none;
  transition: box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
}
.kn-tool__icon {
  grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6;
}
.kn-tool__icon .kn-svg { width: 22px; height: 22px; }
.kn-tool__group { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; }
.kn-tool__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.kn-tool__desc { font-size: 14px; color: #4b5563; line-height: 1.4; }
.kn-tool__go { position: absolute; right: 16px; top: 50%; translate: 0 -50%; color: #6b7280; transition: translate 0.2s; }
.kn-tool__go .kn-svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .kn-tool:hover { border-color: #d1d5db; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
  .kn-tool:hover .kn-tool__go { translate: 4px -50%; color: #111111; }
}
.kn-tool:focus-visible, .kn-tools__all:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kn-ink); }
.kn-tools .kn-btn { min-height: 48px; padding: 0 24px; font-family: 'Jost', Helvetica, Arial, sans-serif; }

/* ---------- accueil : bloc Free tools, version sobre aux couleurs de la marque ---------- */
.kn-tools .kn-eyebrow { color: #8a6a2a; font-size: 12.5px; letter-spacing: 0.16em; }
.kn-tools__title { text-transform: uppercase; }
.kn-tools__intro { color: #5b5f66; }
.kn-tool { border-color: rgba(38, 35, 43, 0.08); box-shadow: none; }
.kn-tool__icon { background: #303434; color: #FDF4E7; }
.kn-tool__group { color: #8a6a2a; }
@media (hover: hover) and (pointer: fine) {
  .kn-tool:hover { border-color: #303434; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.35); }
}

/* Barre masquée quand on descend, réaffichée dès qu'on remonte (nav.js). */
/* Décalage de « top » plutôt que transform : un transform ferait du header le
   repère du tiroir mobile (position: fixed) et créerait un débordement. */
.kn-header.kn-hidden { top: -140px; }
@media (prefers-reduced-motion: reduce) { .kn-header { transition: none; } }

/* ---------- langue : drapeaux EN / FR / AF ---------- */
.kn-flag { display: block; flex: none; width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.kn-lang { position: relative; }
.kn-lang__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 12px;
  background: var(--kn-surface); border: 1px solid var(--kn-border); border-radius: 999px;
  font: 600 13px/1 'Jost', Helvetica, Arial, sans-serif; letter-spacing: .04em; color: var(--kn-text); cursor: pointer;
  transition: border-color .2s var(--kn-ease), background-color .2s var(--kn-ease);
}
@media (hover: hover) and (pointer: fine) { .kn-lang__btn:hover { border-color: var(--kn-border-strong); } }
.kn-lang__btn .kn-chevron { width: 14px; height: 14px; transition: transform .2s var(--kn-ease); }
.kn-lang__btn[aria-expanded="true"] .kn-chevron { transform: rotate(180deg); }
.kn-lang__list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.kn-lang__opt {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 10px;
  color: var(--kn-text); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
@media (hover: hover) and (pointer: fine) { a.kn-lang__opt:hover { background: var(--kn-muted); } }
.kn-lang__opt.is-current { background: var(--kn-muted); font-weight: 600; }
.kn-lang__opt.is-soon { cursor: default; }
.kn-lang__opt.is-soon .kn-flag, .kn-lang__opt.is-soon .kn-lang__label { opacity: .5; }
.kn-lang__opt .kn-soon { margin-left: auto; }
/* JS : liste en menu flottant. Sans JS : liste visible en ligne. */
.kn-js .kn-lang__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 75; min-width: 190px;
  background: var(--kn-surface); border: 1px solid var(--kn-border); border-radius: 14px; box-shadow: var(--kn-shadow-lg);
  animation: kn-pop .18s var(--kn-ease);
}
.kn-js .kn-lang__list[hidden] { display: none; }
@media (max-width: 1099.98px) {
  /* Tiroir mobile : les trois langues en ligne, sans bouton. */
  .kn-lang__btn { display: none; }
  .kn-js .kn-lang__list, .kn-lang__list {
    position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 0 4px;
    min-width: 0; background: none; border: 0; box-shadow: none; animation: none;
  }
  .kn-js .kn-lang__list[hidden] { display: grid; }
  .kn-lang__opt { justify-content: center; flex-direction: column; gap: 4px; min-height: 58px; padding: 8px 4px; border: 1px solid var(--kn-border); font-size: 12.5px; }
  .kn-lang__opt.is-current { border-color: var(--kn-ink); }
  .kn-lang__opt .kn-soon { margin: 0; }
}

/* Pied de page (fond sombre) : interrupteur à trois drapeaux. */
.kn-langbar {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  font-family: 'Jost', Helvetica, Arial, sans-serif;
}
.kn-langbar__opt {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px;
  color: inherit; text-decoration: none !important; font-size: 13px; font-weight: 600; letter-spacing: .05em; opacity: 1 !important;
  transition: background-color .2s var(--kn-ease);
}
.kn-langbar__opt .kn-flag { width: 20px; height: 14px; }
@media (hover: hover) and (pointer: fine) { a.kn-langbar__opt:hover { background: rgba(255, 255, 255, .1); } }
.kn-langbar__opt.is-current { background: #fdf4e7; color: #26232b; }
.kn-langbar__opt.is-soon { cursor: default; color: rgba(253, 244, 231, .5); }
.kn-langbar__opt.is-soon .kn-flag { opacity: .45; filter: grayscale(.4); }
.kn-langbar__opt .kn-soon { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- pied de page commun (accueil, waiting list, privacy, pages SEO) ---------- */
.kc-footer {
  background: #303434; color: #FDF4E7; margin-top: 64px;
  font-family: 'Jost', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5;
}
.kc-footer__inner {
  max-width: 1120px; margin: 0 auto; padding: 48px 20px;
  display: grid; gap: 28px; grid-template-columns: 1fr;
}
.kc-footer__logo { display: block; height: 30px; width: auto; }
.kc-footer__col { display: flex; flex-direction: column; gap: 6px; }
.kc-footer__title { font-family: 'Krona One', sans-serif; font-size: 14px; font-weight: 400; margin: 0 0 6px; color: #FDF4E7; }
.kc-footer a { color: #FDF4E7; font-weight: 300; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .kc-footer a:hover { text-decoration: underline; opacity: 1; } }
.kc-footer__brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.kc-footer a.kc-footer__cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: #FDF4E7; color: #26232b; font-weight: 600; text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .kc-footer a.kc-footer__cta:hover { background: #fff; text-decoration: none; } }
@media (min-width: 640px) { .kc-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .kc-footer__inner { grid-template-columns: 1.4fr; grid-auto-flow: column; grid-auto-columns: 1fr; } }

/* Zones de toucher de 44px (pied de page, langues, menu sur tablette). */
@media (pointer: coarse) {
  .kc-footer__col { gap: 0; }
  .kc-footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
  .kn-langbar__opt, .kn-lang__btn, .kn-lang__opt, .kn-group--compact .kn-item { min-height: 44px; }
}

/* ---------- fenêtre « accès au tableau de bord » (js/dashboard.js) ---------- */
.kc-dash-lock { overflow: hidden; }
.kc-dash {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(17, 17, 17, 0.45);
  font-family: inherit; color: var(--kn-text);
}
.kc-dash[hidden] { display: none; }
.kc-dash__card {
  width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--kn-surface); border: 1px solid var(--kn-border);
  border-radius: var(--kn-radius-panel); box-shadow: var(--kn-shadow-lg);
  padding: 24px;
  animation: kc-dash-in 0.28s var(--kn-ease);
}
@keyframes kc-dash-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.kc-dash__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.kc-dash__title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; color: var(--kn-text); }
.kc-dash__x {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -10px -10px 0 0;
  background: transparent; border: 0; border-radius: 999px; color: var(--kn-text-2); cursor: pointer;
}
.kc-dash__x svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .kc-dash__x:hover { background: var(--kn-muted); color: var(--kn-text); } }
.kc-dash__lede { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: var(--kn-text-2); }
.kc-dash__lede em { color: var(--kn-text-3); }
.kc-dash__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--kn-text); }
.kc-dash__input {
  box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--kn-text);
  background: var(--kn-surface); border: 1px solid var(--kn-border-strong); border-radius: var(--kn-radius-item);
  transition: border-color 0.2s var(--kn-ease), box-shadow 0.2s var(--kn-ease);
}
.kc-dash__input:focus { outline: none; border-color: var(--kn-ink); box-shadow: 0 0 0 3px rgba(48, 52, 52, 0.15); }
.kc-dash__input[aria-invalid='true'] { border-color: #b42318; }
.kc-dash__status { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--kn-radius-item); font-size: 14px; line-height: 1.5; background: var(--kn-muted); color: var(--kn-text-2); }
.kc-dash__status--error { background: #fef3f2; color: #b42318; }
.kc-dash__status--success { background: #ecfdf3; color: #067647; }
.kc-dash__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.kc-dash__actions .kn-btn[disabled] { opacity: 0.6; cursor: progress; }
.kc-dash :focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kn-ink); }
.kc-dash__input:focus-visible { box-shadow: 0 0 0 3px rgba(48, 52, 52, 0.15); }
@media (max-width: 480px) {
  .kc-dash { align-items: flex-end; padding: 0; }
  .kc-dash__card { max-width: none; border-radius: var(--kn-radius-panel) var(--kn-radius-panel) 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
  .kc-dash__actions .kn-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .kc-dash__card { animation: none; } }
