/* =============================================================
   Klat — site web
   Jetons et composants communs aux pages publiques (index, salles)
   et à l'espace salle (espace/*, qui ajoute espace.css).
   ============================================================= */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F6F6;
  --fill: #F3F3F3;
  --fill-hover: #E9E9E9;
  --line: #E6E6E6;
  --line-2: #C7C7C7;

  --ink: #111111;
  --ink-2: #333333;
  --ink-3: #6B6B6B;
  --tab-off: #6E6E73;
  --placeholder: #8E8E93;

  --accent: #276EF1;
  --accent-2: #1E54C0;
  --accent-tint: #E3EDFF;
  --accent-ink: #1546A8;
  --accent-ring: rgba(39, 110, 241, .16);

  --night: #0B0B0C;
  --open: #3BA55C;
  --ok-bg: #DDF5E4;
  --ok-ink: #14693A;
  --warn-bg: #FFF0C7;
  --warn-ink: #7A4E00;
  --danger-bg: #FFE1DC;
  --danger: #A3220F;

  /* Placeholder « photo de mur » */
  --wall: linear-gradient(160deg, #4A2A20 0%, #261610 70%, #14100E 100%);

  /* Couleurs de prises */
  --hold-rose: #FFBCF2;
  --hold-bleu: #9DD3FF;
  --hold-lime: #C7EA46;
  --hold-jaune: #FFC83A;
  --hold-rouge: #E84A26;
  --hold-vert: #7BC453;
  --hold-orange: #FF8F3C;
  --hold-violet: #A35BC8;
  --hold-retrait: #FF7A7A;

  --font: "Inter", -apple-system, system-ui, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid rgba(39, 110, 241, .45); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

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

/* ── Mise en page ───────────────────────────────────────────── */

.k-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 28px; }
.k-wrap--narrow { max-width: 820px; }
.k-section { padding-block: 96px; }
.k-soft { background: var(--bg-soft); }
.k-stack { display: flex; flex-direction: column; gap: 12px; }
.k-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--split-min, 440px)), 1fr)); gap: 56px; align-items: center; }
.k-split--start { align-items: start; }
.k-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.k-btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 520px) {
  .k-wrap { padding-inline: 16px; }
  .k-section { padding-block: 72px; }
}

/* ── Typographie ────────────────────────────────────────────── */

.k-logo { font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1; color: var(--ink); white-space: nowrap; }
.k-logo:hover { color: var(--ink); }
.k-logo span { color: var(--accent); }

.k-eyebrow { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.k-h1 { margin: 0; font-weight: 700; font-size: clamp(44px, 6.2vw, 76px); letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.k-h1--salles { font-size: clamp(42px, 5.8vw, 72px); line-height: 1.03; }
.k-h2 { margin: 0; font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.k-h2--md { font-size: clamp(30px, 3.6vw, 42px); }
.k-h2--sm { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.k-lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 480px; text-wrap: pretty; }
.k-text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.k-note { margin: 0; font-size: 14px; color: var(--ink-3); }

/* ── Boutons ────────────────────────────────────────────────── */

.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 12px; border: none; font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap; transition: background .15s ease; }
.k-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.k-btn--full { width: 100%; }
.k-btn--primary, .k-btn--primary:hover { background: var(--ink); color: #FFFFFF; }
.k-btn--primary:hover { background: var(--ink-2); }
.k-btn--secondary, .k-btn--secondary:hover { background: var(--fill); color: var(--ink); }
.k-btn--secondary:hover { background: var(--fill-hover); }
.k-btn--outline, .k-btn--outline:hover { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.k-btn--outline:hover { background: #FAFAFA; }
.k-btn--danger, .k-btn--danger:hover { background: var(--danger); color: #FFFFFF; }
.k-btn:disabled { opacity: .35; cursor: default; }
.k-btn--primary:disabled { background: var(--ink); }
.k-btn--secondary:disabled { background: var(--fill); }

.k-textlink { background: none; border: none; padding: 0; font-family: var(--font); font-weight: 700; font-size: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── Champs ─────────────────────────────────────────────────── */

.k-label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.k-field { height: 50px; width: 100%; padding: 0 14px; border: none; border-radius: 12px; background: var(--fill); color: var(--ink); font-family: var(--font); font-size: 15px; outline: none; }
textarea.k-field { height: 120px; padding: 14px; resize: vertical; line-height: 1.45; }
.k-field::placeholder { color: var(--placeholder); }
.k-field:focus { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px var(--accent-ring); }
.k-fields { display: flex; flex-direction: column; gap: 14px; }
.k-fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }

/* ── Petits éléments ────────────────────────────────────────── */

.k-badge { height: 24px; padding: 0 9px; border-radius: 7px; background: var(--accent-tint); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.k-badge--ink { background: var(--ink); color: #FFFFFF; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; }
.k-badge--ok { background: var(--ok-bg); color: var(--ok-ink); }
.k-badge--warn { background: var(--warn-bg); color: var(--warn-ink); }
.k-badge--sm { height: 22px; padding: 0 8px; border-radius: 6px; }

.k-grade { height: 22px; min-width: 28px; padding: 0 8px; border-radius: 6px; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.k-grade--4 { background: #E3EDFF; color: #1546A8; }
.k-grade--5 { background: #DDF5E4; color: #14693A; }
.k-grade--6 { background: #FFF0C7; color: #7A4E00; }
.k-grade--7 { background: #FFE1DC; color: #A3220F; }
.k-grade--8 { background: #111111; color: #FFFFFF; }

.k-avatar { position: relative; overflow: hidden; width: 30px; height: 30px; border-radius: 50%; background: var(--c, #D7F5DD); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
/* Logo ou photo de profil, par-dessus l'initiale (Klat.photo). */
.k-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-avatars { display: flex; }
.k-avatars .k-avatar { width: 24px; height: 24px; font-size: 10.5px; border: 2px solid #FFFFFF; }
.k-avatars .k-avatar + .k-avatar { margin-left: -8px; }

.k-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--open)); flex-shrink: 0; }
.k-swatch { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }

/* Photo de mur et prises */
.k-wall { position: relative; overflow: hidden; background: var(--wall); }
.k-hold { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--h, var(--s)); border-radius: 50%; border: var(--b, 2.5px) solid var(--c); }
.k-hold--ghost { --c: rgba(255, 255, 255, .35); --b: 2px; }
.k-hold--added { --c: #FFFFFF; --b: 2px; border-style: dashed; }

/* ── En-tête ────────────────────────────────────────────────── */

.k-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.k-head { height: var(--header-h); display: flex; align-items: center; gap: 20px; }

/* Sélecteur d'espace : grimpeurs ou salles & ouvreurs */
.k-space { position: relative; display: flex; }
.k-space-btn { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 6px; margin-left: -6px; border: none; background: transparent; border-radius: 12px; cursor: pointer; font-family: var(--font); color: var(--ink); }
.k-space-btn:hover { background: var(--bg-soft); }
.k-space-tag { height: 26px; padding: 0 6px 0 10px; border-radius: 8px; background: var(--fill); font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; transition: background .15s ease; }
.k-space-tag svg { transition: transform .15s ease; }
.k-space-btn:hover .k-space-tag, .k-space-btn[aria-expanded="true"] .k-space-tag { background: var(--line); color: var(--ink); }
.k-space-btn[aria-expanded="true"] .k-space-tag svg { transform: rotate(180deg); }
.k-space-menu { position: absolute; top: 50px; left: -6px; z-index: 30; width: 300px; max-width: calc(100vw - 20px); background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(17, 17, 17, .14); padding: 6px; }
.k-space-title { padding: 8px 12px 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.k-space-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.k-space-item:hover { background: var(--fill); color: var(--ink); }
.k-space-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--fill); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.k-space-item[aria-current="page"] .k-space-icon { background: var(--ink); color: #FFFFFF; }
.k-space-text { flex: 1; min-width: 0; }
.k-space-text strong { display: block; font-weight: 700; font-size: 14.5px; }
.k-space-text small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.k-nav { display: flex; gap: 24px; flex: 1; justify-content: flex-end; font-weight: 500; font-size: 14px; }
.k-head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.k-login { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: none; background: transparent; border-radius: 10px; font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.k-login:hover { background: var(--fill); }
.k-account { position: relative; display: flex; }
.k-account .k-login { padding: 0 8px 0 4px; }

.k-menu { position: absolute; right: 0; top: 48px; z-index: 30; min-width: 220px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(17, 17, 17, .12); padding: 6px; }
.k-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.k-menu-head strong { display: block; font-weight: 700; font-size: 14px; }
.k-menu-head span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.k-menu-item { width: 100%; text-align: left; height: 40px; padding: 0 12px; border: none; background: transparent; border-radius: 8px; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; display: flex; align-items: center; }
.k-menu-item:hover { background: var(--fill); color: var(--ink); }
a.k-menu-item { font-weight: 600; }

@media (max-width: 980px) { .k-nav--wide { display: none; } }
@media (max-width: 820px) { .k-nav { display: none; } }
@media (max-width: 620px) { .k-cta { display: none; } }
@media (max-width: 520px) {
  .k-head { gap: 10px; }
  .k-hide-sm { display: none; }
  .k-login--icon { width: 40px; padding: 0; }
}

/* ── Héros ──────────────────────────────────────────────────── */

.k-hero { padding-top: 80px; padding-bottom: 96px; }
.k-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.k-hero-visual { display: flex; justify-content: center; }

@media (max-width: 520px) { .k-hero { padding-top: 48px; padding-bottom: 72px; } }

/* Téléphone (page grimpeurs) : cadre autour d'une capture de l'app en
   sombre. La hauteur suit l'image ; les couleurs de l'écran reprennent
   celles de la capture (fond #121214, barre d'onglets #101012). */
.k-phone { position: relative; width: min(330px, 100%); border-radius: 54px; background: #000; padding: 11px; box-shadow: inset 0 0 0 2px #3A3A3F, inset 0 0 0 4px #0A0A0B, 0 30px 60px rgba(17, 17, 17, .18), 0 6px 16px rgba(17, 17, 17, .08); }
.k-phone::before, .k-phone::after { content: ""; position: absolute; width: 3px; background: #2C2C30; }
.k-phone::before { right: -3px; top: 150px; height: 74px; border-radius: 0 2px 2px 0; }
.k-phone::after { left: -3px; top: 122px; height: 46px; border-radius: 2px 0 0 2px; box-shadow: 0 60px 0 #2C2C30; }
.k-phone-screen { position: relative; border-radius: 43px; overflow: hidden; background: #101012; color: #FFFFFF; padding-bottom: 22px; }
.k-phone-screen::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 108px; height: 4px; margin-left: -54px; border-radius: 99px; background: rgba(255, 255, 255, .55); }
.k-phone-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; padding: 0 26px; background: #121214; font-weight: 600; font-size: 13px; }
.k-phone-island { width: 86px; height: 24px; border-radius: 99px; background: #000; }
.k-phone-indicators { justify-self: end; display: flex; align-items: center; gap: 5px; }
.k-phone-battery { position: relative; width: 22px; height: 11px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 3.5px; }
.k-phone-battery::after { content: ""; position: absolute; inset: 1px; right: 4px; border-radius: 1.5px; background: #FFFFFF; }
.k-phone-shot { display: block; width: 100%; height: auto; }

/* Carte « ouverture publiée » (page salles) */
.k-release { border: 1px solid var(--line); border-radius: 18px; background: var(--bg); box-shadow: 0 24px 48px rgba(17, 17, 17, .08); overflow: hidden; }
.k-release-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.k-release-head .k-avatar { width: 42px; height: 42px; font-size: 16px; }
.k-release-gym { flex: 1; min-width: 0; }
.k-release-gym strong { display: block; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.k-release-gym > span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.k-release-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.k-release-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.k-release .k-wall { height: 190px; border-radius: 12px; }
.k-release-count { display: flex; align-items: flex-end; gap: 12px; }
.k-release-count > strong { font-weight: 700; font-size: 52px; letter-spacing: -0.03em; line-height: .9; }
.k-release-count > span { padding-bottom: 3px; }
.k-release-count b { display: block; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.k-release-count small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.k-release-by { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

/* ── Cartes de fonctionnalités (page grimpeurs) ─────────────── */

.k-feature { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }
.k-feature-visual { height: 260px; border-bottom: 1px solid var(--line); }
.k-feature-visual.k-wall { border-bottom: none; }
.k-feature-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.k-feature-body h3 { margin: 0; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.k-feature-body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); }

.k-viewfinder { position: absolute; inset: 26px 34px 66px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 18px; }
.k-scan-result { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.k-scan-result .k-swatch { width: 14px; height: 14px; }
.k-scan-result strong { flex: 1; font-weight: 700; font-size: 14px; }

.k-route-name span { color: var(--ink-3); font-weight: 500; }

.k-log { padding: 8px 20px; display: flex; flex-direction: column; justify-content: center; }
.k-log-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.k-log-row:last-child { border-bottom: none; }
.k-log-row .k-route-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.k-log-status { width: 74px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

.k-bars { padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.k-bars-head { display: flex; align-items: baseline; justify-content: space-between; }
.k-bars-head span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.k-bars-head strong { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.k-bars-head small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.k-bar { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.k-bar > span:first-child { width: 30px; flex-shrink: 0; }
.k-bar > span:last-child { width: 22px; text-align: right; flex-shrink: 0; }
.k-bar-track { flex: 1; height: 10px; border-radius: 99px; background: rgba(17, 17, 17, .08); overflow: hidden; }
.k-bar-track span { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 99px; }

/* Bandeau « Ta salle n'y est pas ? » */
.k-callout { border-radius: 20px; background: var(--bg-soft); padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }
.k-callout .k-stack { max-width: 620px; }
@media (max-width: 520px) { .k-callout { padding: 28px 22px; } }

/* ── Page salles ────────────────────────────────────────────── */

.k-adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.k-adv { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.k-adv-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--fill); display: flex; align-items: center; justify-content: center; }
.k-adv h3 { margin: 4px 0 0; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.k-adv p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }

.k-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.k-steps li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.k-steps-n { width: 28px; height: 28px; border-radius: 50%; background: var(--fill); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.k-steps-body { display: flex; flex-direction: column; gap: 3px; padding-top: 3px; }
.k-steps-body strong { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.k-steps-body span { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }

.k-night { border-radius: 22px; background: var(--night); padding: 16px; display: flex; flex-direction: column; gap: 14px; color: #FFFFFF; }
.k-night-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 0; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.k-night-head .k-badge { background: var(--accent); color: #FFFFFF; }
.k-night .k-wall { height: 380px; border-radius: 14px; }
.k-night-chip { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 11px 6px 8px; border-radius: 99px; background: rgba(11, 11, 12, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; }
.k-night-chip .k-swatch { width: 12px; height: 12px; box-shadow: none; }
.k-night p { margin: 0; padding: 0 6px 4px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .7); }

.k-install { margin: 0; padding: 4px 22px; list-style: none; display: flex; flex-direction: column; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.k-install li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.k-install li:last-child { border-bottom: none; }
.k-install-n { font-weight: 700; font-size: 15px; color: var(--ink-3); width: 24px; flex-shrink: 0; padding-top: 1px; }
.k-install .k-steps-body { padding-top: 0; }

/* Contrôle segmenté (mensuel / annuel, filtres) */
.k-seg { display: flex; flex-wrap: wrap; padding: 3px; gap: 2px; border-radius: 99px; background: var(--fill); }
.k-seg button { height: 36px; padding: 0 16px; border: none; border-radius: 99px; background: transparent; color: var(--ink); font-family: var(--font); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.k-seg button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }

.k-pricing-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.k-pricing-head .k-stack { max-width: 620px; }
.k-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: stretch; }
.k-plan { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 18px; background: var(--bg); border: 1.5px solid var(--ink); }
.k-plan--alt { background: var(--bg-soft); border: 1px solid var(--line); }
.k-plan-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.k-plan-price { display: flex; flex-direction: column; gap: 8px; }
.k-plan-amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.k-plan-amount strong { font-weight: 700; font-size: 56px; letter-spacing: -0.035em; line-height: 1; }
.k-plan-amount span { font-weight: 500; font-size: 15px; color: var(--ink-3); }
.k-plan-price > span { font-size: 14px; color: var(--ink-3); }
.k-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; flex: 1; }
.k-checks li { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.k-plan--alt .k-checks li { border-top-color: var(--line-2); }
.k-plan--alt .k-btn--outline { box-shadow: inset 0 0 0 1px var(--line-2); }
.k-pricing { display: flex; flex-direction: column; gap: 36px; }

.k-contact-mail { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-top: 10px; color: var(--accent); overflow-wrap: anywhere; }
.k-done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: center; padding: 32px; border-radius: 18px; background: var(--bg-soft); }
.k-done-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.k-done strong { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.k-done > span:last-child { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ── FAQ ────────────────────────────────────────────────────── */

.k-faq-list { border-top: 1px solid var(--line-2); }
.k-faq { border-bottom: 1px solid var(--line-2); }
.k-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary svg { transition: transform .2s ease; }
.k-faq[open] summary svg { transform: rotate(180deg); }
.k-faq p { margin: 0; padding: 0 40px 22px 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

/* ── Pied de page ───────────────────────────────────────────── */

.k-footer { background: var(--ink); color: #FFFFFF; }
.k-footer-in { padding-block: 56px 44px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.k-footer .k-logo { font-size: 44px; letter-spacing: -0.03em; color: #FFFFFF; }
.k-footer .k-logo span { color: #7FB2FF; }
.k-footer-tag { font-size: 14px; color: #A1A1A6; }
.k-footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.k-footer-links a { color: #FFFFFF; }
.k-footer-links a:hover { color: #7FB2FF; }
.k-footer-links span { color: #A1A1A6; }

/* ── Fenêtres (dialog natif) ────────────────────────────────── */

.k-dialog { width: calc(100% - 40px); max-width: 420px; max-height: calc(100vh - 40px); padding: 0; border: none; border-radius: 20px; background: #FFFFFF; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); overflow: auto; }
.k-dialog::backdrop { background: rgba(0, 0, 0, .4); }
.k-dialog--wide { max-width: 500px; }
.k-dialog--md { max-width: 480px; }
.k-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--fill); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.k-close:hover { background: var(--fill-hover); }

/* Connexion / inscription */
.k-auth { padding: 26px 26px 22px; }
.k-auth-logo { text-align: center; }
.k-auth-head { padding-top: 24px; }
.k-auth-head span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.k-auth-head h2 { margin: 0; font-weight: 700; font-size: 30px; letter-spacing: -0.025em; line-height: 1.08; }
.k-socials { padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.k-social { width: 100%; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font); font-weight: 600; font-size: 15px; cursor: pointer; }
.k-social--apple { background: var(--ink); color: #FFFFFF; border: none; }
.k-social--apple:hover { background: var(--ink-2); }
.k-social--google { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); }
.k-social--google:hover { background: #FAFAFA; }
.k-or { display: flex; align-items: center; gap: 12px; padding: 20px 0 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.k-or::before, .k-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.k-auth form { padding-top: 12px; }
/* Sans boutons Apple et Google (page salles), le formulaire suit le titre. */
.k-auth-head + form { padding-top: 22px; }
.k-auth-note { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.k-auth-note strong { color: var(--ink); overflow-wrap: anywhere; }
.k-auth-error { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.k-pwd-head { display: flex; align-items: baseline; justify-content: space-between; }
.k-pwd-head .k-textlink { font-size: 12.5px; font-weight: 600; }
.k-auth-submit { padding-top: 20px; }
.k-auth-hint { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.k-auth-switch { text-align: center; padding: 18px 0 8px; font-size: 13.5px; color: var(--ink-3); }
.k-auth-legal { text-align: center; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }

