/* ═══════════════════════════════════════════════════════════════════════════
   ZNDRIP 4.0 — « La keynote »
   Le site public est une scène : noir de salle, projecteur bleu acier, titres
   argentés comme sur les diapositives de 2007. Une seule audace : le téléphone
   qu'on déverrouille en glissant. L'application reste claire, nette, rapide,
   avec le bordeaux ZNdrip (#940000) pour l'action.
   Chargée en dernier : elle corrige aussi les débordements mobiles.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --font-body: "Source Sans 3", "Myriad Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Source Sans 3", "Myriad Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --world-serif: "Source Sans 3", "Myriad Pro", system-ui, sans-serif;
  --kn-black: #000;
  --kn-stage: #18202d;         /* lumière de projecteur sur le fond de scène */
  --kn-silver-hi: #ffffff;
  --kn-silver-lo: #9aa1ab;
  --kn-text: #f5f5f7;
  --kn-dim: #a1a1a6;
  --kn-faint: #6e6e73;
  --kn-panel: #15171b;
  --kn-hair: #2a2d33;
  --kn-red: #940000;           /* bordeaux de la marque */
  --kn-red-lit: #e0313a;       /* même teinte, éclairée, pour le texte sur noir */
  --kn-ease: cubic-bezier(.2, .8, .2, 1);
}
body { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); }

/* ═══ 1. LA SCÈNE (site public + connexion) ═══════════════════════════════ */
body.kn-stage {
  --fog: #000; --paper: #000; --surface: var(--kn-panel); --ink: var(--kn-text); --ink-2: var(--kn-dim); --ink-3: var(--kn-faint);
  --line: var(--kn-hair); --line-2: #3a3e46; --pine: var(--kn-red); --pine-deep: #b30d14; --pine-wash: #2a0d10; --on-pine: #fff;
  --amber-wash: #2b2412; --brick-wash: #2c1214;
  background: var(--kn-black) !important; color: var(--kn-text); color-scheme: dark;
  font-size: 17px; -webkit-font-smoothing: antialiased;
}
.kn-stage ::selection { background: var(--kn-red); color: #fff; }
.kn-stage a { color: inherit; }
.kn-stage :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* En-tête : verre fumé, devient opaque au défilement */
.kn-stage .pub-head {
  position: sticky; top: 0; z-index: 50; max-width: none; height: 56px; margin: 0;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, .55); border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background .3s, border-color .3s;
}
.kn-stage .pub-head.is-scrolled { background: rgba(10, 10, 12, .82); border-color: #ffffff14; }
.kn-stage .pub-head .brand { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.kn-stage .pub-head .brand > svg { display: none; }
.kn-stage .pub-nav { gap: 28px; font-size: 13px; }
.kn-stage .pub-nav a { color: #d2d2d7; font-weight: 400; }
.kn-stage .pub-nav a:hover { color: #fff; }
.kn-stage .pub-cta { gap: 8px; }
.kn-stage .pub-cta .btn { min-height: 32px; padding: 0 14px; border-radius: 980px; font-size: 13px; font-weight: 600; }
.kn-stage .pub-cta .btn:not(.btn-quiet) { background: #fff; color: #000; }
.kn-stage .pub-cta .btn:not(.btn-quiet):hover { background: #e8e8ed; }
.kn-stage .pub-cta .btn-quiet { color: #d2d2d7; }
.kn-stage .pub-cta .btn-quiet:hover { background: #ffffff14; color: #fff; }
@media (max-width: 480px) {
  .kn-stage .pub-head { gap: 8px; }
  .kn-stage .pub-head .brand { font-size: 17px; flex: none; }
  .kn-stage .pub-cta { gap: 2px; min-width: 0; }
  .kn-stage .pub-cta .btn { padding: 0 11px; font-size: 13px; }
  .kn-stage .pub-cta .btn-quiet { display: inline-flex; padding: 0 8px; }
}
@media (max-width: 360px) { .kn-stage .pub-cta .btn-quiet { display: none; } }

/* Boutons de scène */
.kn-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  border-radius: 980px; background: var(--kn-red); color: #fff !important; font-size: 17px; font-weight: 600; text-decoration: none;
  box-shadow: 0 0 0 1px #ffffff10 inset, 0 10px 40px -10px #94000099; transition: transform .2s var(--kn-ease), background .2s;
}
.kn-btn:hover { background: #ad0a10; }
.kn-btn:active { transform: scale(.97); }
.kn-link { color: #fff; font-size: 17px; text-decoration: none; border-bottom: 1px solid #ffffff55; padding-bottom: 1px; }
.kn-link:hover { border-color: #fff; }
.kn-fine { color: var(--kn-faint); font-size: 14px; line-height: 1.5; }

/* Typo de diapositive : argent brossé */
.kn-title, .kn-h2, .kn-big, .kn-reveal {
  background: linear-gradient(180deg, var(--kn-silver-hi) 30%, var(--kn-silver-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.kn-h2 { font-size: clamp(34px, 7.4vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -.028em; text-align: center; max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.kn-lede { color: var(--kn-dim); font-size: clamp(21px, 4.6vw, 28px); font-weight: 400; line-height: 1.3; text-align: center; max-width: 26ch; margin: 0 auto; text-wrap: balance; }

.kn { overflow-x: clip; }
.kn > section { position: relative; padding: clamp(88px, 16vw, 168px) 22px; }

/* ——— Héros ——— */
.kn-hero { display: grid; justify-items: center; text-align: center; padding-top: clamp(40px, 9vw, 96px) !important; padding-bottom: 72px !important; isolation: isolate; }
.kn-spot {
  position: absolute; z-index: -1; left: 50%; top: -12%; width: min(1100px, 190vw); height: 1100px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, #3b4a63 0%, #1d2532 38%, #0a0d12 64%, #000 100%); opacity: .9;
}
.kn-intro { color: #d2d2d7; font-size: clamp(17px, 3.8vw, 21px); letter-spacing: .005em; }
.kn-title { margin-top: 14px; font-size: clamp(40px, 10.6vw, 92px); font-weight: 700; line-height: 1; letter-spacing: -.035em; max-width: 13ch; text-wrap: balance; }
@media (min-width: 900px) { .kn-title { max-width: 16ch; } }
.kn-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 30px; }
.kn-hero .kn-fine { margin-top: 18px; }

/* ——— Le téléphone ——— */
.kn-device { display: grid; justify-items: center; margin-top: clamp(36px, 7vw, 64px); }
.kn-phone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 300 / 586; padding: 13% 6.5% 19%;
  border-radius: 46px / 40px;
  background: linear-gradient(145deg, #3c3f45 0%, #17181b 18%, #050506 50%, #1a1b1e 82%, #44474d 100%);
  box-shadow:
    0 0 0 1.5px #8d9199,               /* jonc d'aluminium */
    0 0 0 4px #1c1d20,
    0 0 0 5px #6a6e75,
    0 60px 120px -30px #000,
    0 30px 90px -20px #3b4a6380;
}
.kn-phone::before { /* écouteur */
  content: ""; position: absolute; top: 6.4%; left: 50%; width: 17%; height: 1.3%; translate: -50% 0;
  border-radius: 9px; background: #0c0c0e; box-shadow: inset 0 1px 2px #000, 0 1px 0 #ffffff1a;
}
.kn-phone::after { /* reflet du verre */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, #ffffff1f 0%, #ffffff08 34%, transparent 35%);
}
.kn-homebtn {
  position: absolute; bottom: 5.3%; left: 50%; width: 15.5%; aspect-ratio: 1; translate: -50% 0; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid #2e3035; background: radial-gradient(circle at 50% 35%, #1c1d21, #0a0a0c);
  box-shadow: inset 0 1px 3px #000, 0 1px 0 #ffffff14;
}
.kn-homebtn::after { content: ""; position: absolute; inset: 31%; border: 1.5px solid #6c7079; border-radius: 4px; }
.kn-homebtn:active { box-shadow: inset 0 2px 6px #000; }
.kn-screen { position: relative; height: 100%; overflow: hidden; border-radius: 4px; background: #000; box-shadow: 0 0 0 1px #000; }

.kn-lock, .kn-home { position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity .55s var(--kn-ease), transform .7s var(--kn-ease); }
.kn-lock {
  align-items: center; padding: 12% 5% 6%; color: #fff;
  background:
    radial-gradient(120% 70% at 50% 110%, #5a0a0e 0%, transparent 60%),
    radial-gradient(90% 60% at 20% 0%, #29405e 0%, transparent 60%),
    linear-gradient(180deg, #0c1420, #05070a);
}
.kn-clock { font-size: clamp(46px, 13vw, 62px); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.kn-date { margin-top: 4px; font-size: 13px; color: #ffffffcc; }
.kn-notes { display: grid; gap: 6px; width: 100%; margin-top: 14%; }
.kn-note {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; text-align: left;
  background: #ffffff1c; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 11px; line-height: 1.25; color: #ffffffcc;
}
.kn-note b { display: block; color: #fff; font-size: 12px; font-weight: 600; }
.kn-note .i-sm { width: 16px; height: 16px; flex: none; }
.kn-slider {
  --p: 0; position: relative; margin-top: auto; width: 100%; height: 50px; padding: 4px; border-radius: 14px;
  background: linear-gradient(#ffffff26, #ffffff10); box-shadow: inset 0 1px 2px #0008, 0 1px 0 #ffffff1a; touch-action: pan-y;
}
.kn-slider:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.kn-knob {
  position: relative; z-index: 2; display: grid; place-items: center; width: 54px; height: 42px; border-radius: 10px; cursor: grab;
  background: linear-gradient(180deg, #fdfdfd, #c9ccd1); color: #6a6e75; box-shadow: 0 1px 3px #0009, inset 0 1px 0 #fff; touch-action: none;
}
.kn-knob:active { cursor: grabbing; }
.kn-knob .i-sm { width: 22px; height: 22px; stroke-width: 2.4; }
.kn-slide-text {
  position: absolute; inset: 0 2px 0 58px; display: grid; place-items: center; font-size: clamp(12.5px, 3.4vw, 16px); font-weight: 400; white-space: nowrap; letter-spacing: 0; pointer-events: none; user-select: none;
  opacity: calc(1 - var(--p) * 2.2);
  color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #ffffff55 0%, #ffffff55 40%, #fff 50%, #ffffff55 60%, #ffffff55 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
}
@media (prefers-reduced-motion: no-preference) { .kn-slide-text { animation: kn-shimmer 2.6s linear infinite; } }
@keyframes kn-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

.kn-home { text-align: left; justify-content: flex-start; padding: 9% 6% 6%; gap: 14px; background: linear-gradient(180deg, #f5f5f7, #ffffff); color: #1d1d1f; opacity: 0; transform: scale(1.12); pointer-events: none; }
.kn-home-top { display: flex; align-items: center; justify-content: space-between; font-size: 17px; letter-spacing: -.01em; }
.kn-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--kn-red); color: #fff; font-size: 12px; font-weight: 700; }
.kn-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; }
.kn-tile { display: grid; justify-items: center; gap: 4px; font-size: 9.5px; color: #3a3a3c; }
.kn-tile .i { width: 100%; max-width: 46px; height: auto; aspect-ratio: 1; padding: 11px; border-radius: 12px; color: #fff; stroke-width: 1.8; box-shadow: inset 0 1px 0 #ffffff55, 0 2px 4px #0002; }
.t-drive .i { background: linear-gradient(#3d8bfd, #1a5fd0); }
.t-photo .i { background: linear-gradient(#ffb340, #f0731c); }
.t-vault .i { background: linear-gradient(#c3161d, #7a0000); }
.t-time .i { background: linear-gradient(#5ac8a8, #23866c); }
.t-space .i { background: linear-gradient(#9f8cff, #5b44d9); }
.t-drop .i { background: linear-gradient(#5c6470, #2c3138); }
.kn-mini-storage { display: grid; gap: 5px; font-size: 10.5px; color: #6e6e73; }
.kn-mini-storage b { color: #1d1d1f; }
.kn-mini-storage i { display: block; height: 5px; border-radius: 3px; background: #e5e5ea; overflow: hidden; }
.kn-mini-storage em { display: block; height: 100%; border-radius: 3px; background: var(--kn-red); }
.kn-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-radius: 10px; overflow: hidden; background: #e5e5ea; }
.kn-recent li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: #fff; font-size: 10.5px; line-height: 1.2; }
.kn-recent b { display: block; font-weight: 600; color: #1d1d1f; }
.kn-recent small { color: #8e8e93; font-size: 9.5px; }
.kn-thumb { flex: none; width: 26px; height: 26px; border-radius: 6px; }
.th-a { background: linear-gradient(160deg, #8ec5e8 0 40%, #3f7a9d 40% 62%, #c6a46a 62%); }
.th-b { background: linear-gradient(#c3161d, #7a0000); }
.th-c { background: linear-gradient(200deg, #f7d9c4 0 35%, #d98c6b 35% 60%, #6b4a3a 60%); }

.kn-device.is-unlocked .kn-lock { opacity: 0; transform: translateY(-6%); pointer-events: none; }
.kn-device.is-unlocked .kn-home { opacity: 1; transform: none; pointer-events: auto; }
.kn-hint { margin-top: 22px; min-height: 1.5em; color: var(--kn-faint); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .kn-lock, .kn-home { transition: opacity .2s; transform: none !important; } }

/* ——— « Trois produits révolutionnaires » ——— */
.kn-three { display: grid; justify-items: center; text-align: center; }
.kn-trio { position: relative; width: min(360px, 88vw); height: 120px; margin: 56px 0 18px; }
.kn-orb {
  position: absolute; top: 10px; left: 50%; display: grid; place-items: center; width: 100px; height: 100px; margin-left: -50px; border-radius: 26px;
  color: #fff; box-shadow: inset 0 1px 0 #ffffff40, 0 18px 40px -12px #000;
  transition: transform 1s var(--kn-ease), opacity .8s var(--kn-ease);
}
.kn-orb .i { width: 46px; height: 46px; stroke-width: 1.5; }
.o-drive { background: linear-gradient(#3d8bfd, #1a5fd0); transform: translateX(-120%) scale(.86); }
.o-photo { background: linear-gradient(#ffb340, #f0731c); transform: scale(.86); }
.o-vault { background: linear-gradient(#5c6470, #2c3138); transform: translateX(120%) scale(.86); }
.o-one { background: linear-gradient(160deg, #c3161d, #6d0000); opacity: 0; transform: scale(.4) rotate(-40deg); box-shadow: inset 0 1px 0 #ffffff40, 0 0 80px -6px #c3161d99; }
.kn-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: #d2d2d7; font-size: clamp(19px, 4.4vw, 24px); }
.kn-repeat { margin-top: 44px; color: var(--kn-faint); font-size: clamp(19px, 4.4vw, 24px); line-height: 1.45; }
.kn-repeat span { color: #fff; }
.kn-reveal { margin-top: 44px; font-size: clamp(30px, 7.4vw, 60px); font-weight: 700; line-height: 1.06; letter-spacing: -.028em; max-width: 18ch; text-wrap: balance; }
/* La séquence (une seule fois, quand la section est à l'écran) : les trois icônes tournent et fusionnent */
@media (prefers-reduced-motion: no-preference) {
  .kn-three.is-armed .kn-names li, .kn-three.is-armed .kn-repeat, .kn-three.is-armed .kn-reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--kn-ease), transform .8s var(--kn-ease); }
  .kn-three.is-in .kn-names li { opacity: 1; transform: none; }
  .kn-three.is-in .kn-names li:nth-child(1) { transition-delay: .2s; }
  .kn-three.is-in .kn-names li:nth-child(2) { transition-delay: .7s; }
  .kn-three.is-in .kn-names li:nth-child(3) { transition-delay: 1.2s; }
  .kn-three.is-in .kn-repeat { opacity: 1; transform: none; transition-delay: 1.9s; }
  .kn-three.is-in .o-drive, .kn-three.is-in .o-photo, .kn-three.is-in .o-vault { animation: kn-merge 1.2s 2.9s var(--kn-ease) forwards; }
  .kn-three.is-in .o-one { animation: kn-born 1s 3.7s var(--kn-ease) forwards; }
  .kn-three.is-in .kn-reveal { opacity: 1; transform: none; transition-delay: 4.1s; }
}
@keyframes kn-merge { 40% { opacity: 1; } to { transform: translateX(0) scale(.5) rotate(180deg); opacity: 0; } }
@keyframes kn-born { to { opacity: 1; transform: scale(1.12) rotate(0); } }
@media (prefers-reduced-motion: reduce) {
  .o-drive, .o-photo, .o-vault { opacity: 0; }
  .o-one { opacity: 1; transform: scale(1.12); }
}

/* ——— Fiche technique ——— */
.kn-specs { background: linear-gradient(180deg, #000, #0b0d11 40%, #000); }
.kn-spec-list { display: grid; gap: 0; max-width: 980px; margin: 64px auto 0; }
@media (min-width: 760px) { .kn-spec-list { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.kn-spec-list > div { display: grid; gap: 6px; padding: 24px 0; border-top: 1px solid var(--kn-hair); }
.kn-spec-list dt { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.kn-spec-list dt .i { width: 26px; height: 26px; color: var(--kn-red-lit); stroke-width: 1.6; }
.kn-spec-list dd { margin: 0 0 0 38px; color: var(--kn-dim); font-size: 17px; line-height: 1.5; max-width: 44ch; }

/* ——— Sécurité ——— */
.kn-secure { display: grid; justify-items: center; text-align: center; gap: 22px; }
.kn-secure > p:not(.kn-fine) { max-width: 40ch; color: var(--kn-dim); font-size: clamp(17px, 3.6vw, 21px); line-height: 1.5; }
.kn-lockmark {
  display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; margin-bottom: 8px;
  background: radial-gradient(circle at 50% 30%, #2a2d33, #0d0e10 70%); box-shadow: 0 0 0 1px #ffffff14, 0 0 120px -20px #94000088;
}
.kn-lockmark .i { width: 52px; height: 52px; color: #fff; stroke-width: 1.3; }

/* ——— Tarifs ——— */
.kn-pricing { display: grid; justify-items: center; }
.kn-pricing .kn-h2 { margin-bottom: 44px; }
.kn-pricing .kn-fine { margin-top: 24px; text-align: center; }
.kn-stage .price-toggle { border: 0; border-radius: 980px; padding: 4px; background: #1d1d1f; }
.kn-stage .price-toggle button { min-height: 36px; border-radius: 980px; padding: 0 18px; color: #d2d2d7; font-weight: 600; }
.kn-stage .price-toggle [aria-pressed="true"] { background: #fff; color: #000; }
.kn-stage .price-toggle [aria-pressed="true"] .chip { background: var(--kn-red); color: #fff; }
.kn-stage .price-grid { width: 100%; max-width: 1180px; border: 0; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kn-stage .price-col { position: relative; border: 1px solid var(--kn-hair); border-radius: 20px; background: #0e0f12; padding: 26px 22px; gap: 10px; }
.kn-stage .price-col.featured { border-color: #94000099; background: radial-gradient(120% 80% at 50% 0%, #3a0a0d 0%, #0e0f12 60%); }
.kn-stage .price-col.featured::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; pointer-events: none; box-shadow: 0 0 60px -18px #c3161d; }
.kn-stage .price-col h3 { font-family: var(--font-body); color: #fff; font-size: 19px; font-weight: 600; }
.kn-stage .price-size { font-weight: 700; font-size: 44px; letter-spacing: -.03em; color: #fff; }
.kn-stage .price-amt { color: #fff; font-weight: 600; }
.kn-stage .plan-feature-list { margin: 4px 0; padding: 0 0 0 18px; color: var(--kn-dim); font-size: 14px; line-height: 1.45; display: grid; gap: 4px; }
.kn-stage .price-col .btn { border-radius: 980px; min-height: 42px; margin-top: 6px; font-weight: 600; }
.kn-stage .price-col .btn:not(.btn-ghost) { background: var(--kn-red); color: #fff; }
.kn-stage .price-col .btn-ghost { color: #fff; border-color: #ffffff40; }
.kn-stage .price-col .btn-ghost:hover { background: #ffffff10; }

/* ——— FAQ ——— */
.kn-faq .kn-h2 { margin-bottom: 40px; font-size: clamp(30px, 6vw, 48px); }
.kn-stage .faq { max-width: 760px; margin: 0 auto; }
.kn-stage .faq details { border-color: var(--kn-hair); }
.kn-stage .faq summary { padding: 22px 0; font-size: 19px; font-weight: 600; color: #fff; }
.kn-stage .faq summary::after { color: var(--kn-red-lit); font-weight: 300; font-size: 28px; }
.kn-stage .faq p { color: var(--kn-dim); font-size: 17px; line-height: 1.55; }

/* ——— Et encore une chose… ——— */
.kn-onemore { display: grid; justify-items: center; gap: 26px; text-align: center; padding-bottom: clamp(120px, 20vw, 200px) !important; }
.kn-onemore .kn-lede { color: #fff; font-style: italic; }
.kn-big { font-size: clamp(46px, 12vw, 112px); font-weight: 800; line-height: .98; letter-spacing: -.04em; text-wrap: balance; }

/* ——— Pied de page ——— */
.kn-stage .pub-foot { max-width: none; background: #0a0a0b; border-top: 1px solid #ffffff12; padding: 36px max(22px, calc((100% - 1100px) / 2)) calc(40px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--kn-faint); }
.kn-stage .pub-foot .brand { color: #fff; text-decoration: none; font-weight: 700; }
.kn-stage .pub-foot .brand > svg { display: none; }
.kn-stage .pub-foot nav { gap: 10px 22px; }
.kn-stage .pub-foot nav a { color: #d2d2d7; font-weight: 400; }
.kn-stage .pub-foot nav a:hover { color: #fff; }

/* ——— Pages publiques secondaires sur scène (tarifs, légal, partages, dépôts) ——— */
.kn-stage .band { border-color: var(--kn-hair); }
.kn-stage .band h1, .kn-stage .legal h1, .kn-stage .share-title { color: #fff; letter-spacing: -.03em; }
.kn-stage .legal h2 { color: #fff; }
.kn-stage .legal p, .kn-stage .legal li { color: #c7c7cc; }
.kn-stage .legal a { color: #ff6b70; }
.kn-stage .legal-draft { background: #2b2412; color: #f5d78e; }
.kn-stage .input, .kn-stage select.input, .kn-stage textarea.input { background: #1c1c1e; border-color: #3a3a3c; color: #fff; }
.kn-stage .input::placeholder { color: #8e8e93; }
.kn-stage .input:focus { outline-color: #fff; border-color: #fff; }

/* ——— Connexion / inscription : une carte de verre sous le projecteur ——— */
.kn-stage.auth-page { background: radial-gradient(80% 60% at 50% -10%, #2c3a52 0%, #10151d 40%, #000 75%) fixed !important; }
.kn-stage .auth-wrap { padding-top: clamp(28px, 9vh, 96px); }
.kn-stage .auth-wrap > .brand { color: #fff; font-size: 26px; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.kn-stage .auth-card {
  width: min(440px, 100%); padding: 32px 26px; border: 1px solid #ffffff1c; border-radius: 26px;
  background: linear-gradient(180deg, #1c1e23e6, #111215e6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 40px 100px -30px #000, inset 0 1px 0 #ffffff12;
}
.kn-stage .auth-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.kn-stage .auth-card .btn { border-radius: 14px; min-height: 50px; font-size: 17px; font-weight: 600; }
.kn-stage .auth-card .btn:not(.btn-ghost):not(.google-btn):not(.btn-quiet) { background: var(--kn-red); color: #fff; }
.kn-stage .auth-card .btn:not(.btn-ghost):not(.google-btn):not(.btn-quiet):hover { background: #ad0a10; }
.kn-stage .auth-card .btn-ghost { color: #fff; border-color: #ffffff33; }
.kn-stage .auth-card .input { min-height: 50px; border-radius: 12px; font-size: 17px; }
.kn-stage .auth-alt a, .kn-stage .auth-card a { color: #ff7a7f; }
.kn-stage .google-btn { background: #fff; color: #1f1f1f !important; }
.kn-stage .pw-toggle { color: #c7c7cc; }
.kn-stage .auth-foot { color: var(--kn-faint); }
.kn-stage .flash-success { background: #10261c; } .kn-stage .flash-error { background: #2c1214; } .kn-stage .flash-warn { background: #2b2412; }

/* ═══ 2. L'APPLICATION (connecté) ═════════════════════════════════════════ */
body.world-app { --pine: #940000; --pine-deep: #710000; font-size: 16px; }
.world-app .btn, .world-app .zn3-action { border-radius: 12px; font-weight: 600; }
.world-app .btn-sm { border-radius: 10px; }

/* Carte d'accueil : un morceau de scène dans l'application */
.world-app .zn3-hero {
  border: 0 !important; border-radius: 26px !important; color: #fff !important;
  background: radial-gradient(90% 120% at 85% -10%, #34445e 0%, #141a24 45%, #000 80%) !important;
  box-shadow: 0 24px 60px -28px #000c !important;
}
.world-app .zn3-hero .zn3-kicker { color: #ff7a7f !important; letter-spacing: .02em; font-size: 13px !important; font-weight: 600; }
.world-app .zn3-hero h1 { color: transparent !important; -webkit-text-fill-color: transparent; background: linear-gradient(180deg, #fff 35%, #a1a7b0); -webkit-background-clip: text; background-clip: text; letter-spacing: -.035em !important; font-weight: 700 !important; }
.world-app .zn3-hero h1 span { color: inherit !important; }
.world-app .zn3-hero > div > p:not(.zn3-kicker) { color: #c7c7cc !important; font-size: 15px !important; }
.world-app .zn3-hero .zn3-action { background: var(--kn-red) !important; color: #fff !important; border-radius: 980px !important; padding: 12px 20px; }
.world-app .zn3-hero .zn3-action-quiet { background: #ffffff14 !important; color: #fff !important; border: 1px solid #ffffff2e !important; }
.world-app .zn3-visual-cloud { color: #ffffff22 !important; }
.world-app .zn3-folder-card { border-radius: 20px !important; }

@media (max-width: 959px) {
  /* Barre du haut compacte, en verre. Le forfait et la déconnexion vivent dans le menu. */
  .world-app { --mobile-top-h: calc(62px + env(safe-area-inset-top)); }
  .world-app .mobile-app-top {
    gap: 8px; padding-bottom: 0; flex-wrap: nowrap;
    background: rgba(250, 249, 248, .78) !important; border-bottom: 1px solid #0000000f;
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
  .world-app .mobile-plan-bar, .world-app .mobile-top-logout { display: none; }
  .world-app .mobile-search { min-height: 42px; border-radius: 12px; background: #7676801f; border: 0; font-size: 16px; color: #6e6e73; }
  .world-app .mobile-search:hover { border: 0; }
  .world-app .mobile-profile { width: 34px; height: 34px; background: var(--kn-red); color: #fff; font-weight: 700; }

  /* Grand titre façon iOS ; plus de titre coupé lettre par lettre */
  .world-app .main > .topbar { flex-wrap: wrap; align-items: center; }
  .world-app .main > .topbar h1 { flex: 1 0 100%; font-size: 34px; font-weight: 700; letter-spacing: -.025em; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .world-app .main { padding-left: 16px; padding-right: 16px; padding-bottom: calc(var(--nav-h) + 110px + env(safe-area-inset-bottom)); }

  /* Barre d'onglets flottante */
  .world-app .mobile-tabs {
    inset: auto 12px calc(10px + env(safe-area-inset-bottom)); height: 66px; padding: 6px; border-radius: 24px;
    border: 1px solid #0000000d !important; background: rgba(255, 255, 255, .8) !important;
    backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
    box-shadow: 0 12px 34px -12px #0000004d;
  }
  .world-app .mobile-tabs > a { min-height: 54px; border-radius: 18px; font-size: 10.5px; gap: 2px; color: #6e6e73; }
  .world-app .mobile-tab-icon { width: auto; height: 28px; background: none !important; }
  .world-app .mobile-tabs > a[aria-current="page"] { color: var(--kn-red); background: #94000012; }
  .world-app .mobile-fab {
    width: 58px; height: 58px; border-radius: 50%; right: max(18px, env(safe-area-inset-right));
    bottom: calc(92px + env(safe-area-inset-bottom)); background: var(--kn-red) !important;
    box-shadow: 0 14px 30px -10px #940000aa, inset 0 1px 0 #ffffff33;
  }
  .world-app .mobile-drawer[open] { border-radius: 0 28px 28px 0; }
  .world-app .mobile-drawer-link { border-radius: 14px; font-size: 16px; }

  .world-app .zn3-hero { padding: 30px 22px !important; }
  .world-app .zn3-hero h1 { font-size: clamp(34px, 10vw, 44px) !important; }
}

/* Thème sombre de l'application */
:root[data-theme="dark"] .world-app .mobile-app-top { background: rgba(28, 25, 27, .78) !important; border-color: #ffffff12; }
:root[data-theme="dark"] .world-app .mobile-tabs { background: rgba(38, 33, 36, .82) !important; border-color: #ffffff14 !important; }
:root[data-theme="dark"] .world-app .mobile-tabs > a[aria-current="page"] { color: #ff7a7f; background: #ff7a7f1a; }
:root[data-theme="dark"] .world-app .mobile-search { background: #7676803d; color: #c7c7cc; }

/* ═══ 3. ADMINISTRATION ═══════════════════════════════════════════════════ */
.adm .main { min-width: 0; }
.adm .main > *, .adm .panel, .adm form, .adm .field, .adm .stack > * { min-width: 0; max-width: 100%; }
.adm input[type="file"].input, .adm input[type="file"] { width: 100%; min-width: 0; max-width: 100%; }
.adm .btn { border-radius: 10px; }
.adm .adm-tabs a { border-radius: 980px; padding: 8px 14px; font-weight: 600; }
.adm .adm-tabs a[aria-current="page"] { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
@media (max-width: 959px) {
  .adm .main { padding-left: 14px; padding-right: 14px; overflow-x: clip; }
  .adm .topbar { flex-wrap: wrap; }
  .adm .topbar h1 { flex: 1 1 auto; font-size: 30px; letter-spacing: -.02em; }
  .adm .row { grid-template-columns: 1fr !important; padding: 12px 16px; }
  .adm .row form { flex-wrap: wrap; }
  .adm .row form .input { flex: 1 1 140px; width: auto !important; }
  .adm .form-grid.two { grid-template-columns: 1fr; }
  .adm .table-wrap { -webkit-overflow-scrolling: touch; }
}
.adm-badge-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 980px; background: var(--kn-red); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }

/* Page Google Analytics */
.ga-status { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.ga-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: #8e8e93; }
.ga-status.is-on .ga-dot { background: #1fa45a; box-shadow: 0 0 0 4px #1fa45a26; }
.ga-status.is-warn .ga-dot { background: #e0a800; box-shadow: 0 0 0 4px #e0a80026; }
.ga-status b { display: block; }
.ga-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.ga-steps a { color: var(--pine); font-weight: 700; }
.ga-id { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }

/* ═══ 4. CONSENTEMENT ANALYTICS ═══════════════════════════════════════════ */
.zn-consent {
  position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; gap: 12px; max-width: 560px; margin: 0 auto; padding: 16px 16px 14px; border-radius: 20px;
  background: rgba(28, 28, 30, .9); color: #f5f5f7; border: 1px solid #ffffff1f; font-size: 14px; line-height: 1.45;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 20px 50px -16px #000;
  animation: zn-rise .4s var(--kn-ease);
}
.zn-consent a { color: #fff; }
.zn-consent div { display: flex; gap: 8px; justify-content: flex-end; }
.zn-consent button { min-height: 40px; padding: 0 18px; border-radius: 980px; border: 1px solid #ffffff33; background: transparent; color: #fff; font: 600 15px var(--font-body); cursor: pointer; }
.zn-consent button.is-primary { background: #fff; color: #000; border-color: #fff; }
.zn-consent.is-leaving { opacity: 0; transform: translateY(10px); transition: .25s; }
.world-app .zn-consent { bottom: calc(92px + env(safe-area-inset-bottom)); }
/* Site public : en haut, sous l'en-tête, pour ne jamais couvrir le téléphone ni ses boutons */
.kn-stage .zn-consent { top: 64px; bottom: auto; padding: 12px 14px; gap: 10px; font-size: 13.5px; animation-name: zn-drop; }
.kn-stage .zn-consent button { min-height: 36px; padding: 0 16px; font-size: 14px; }
@keyframes zn-drop { from { opacity: 0; transform: translateY(-12px); } }
@media (min-width: 960px) { .world-app .zn-consent { bottom: 20px; } }
@keyframes zn-rise { from { opacity: 0; transform: translateY(16px); } }

/* ═══ 5. « MON MONDE » — tableau de bord façon écran d'accueil ════════════ */
.mw { display: grid; gap: 22px; margin: 0 auto 34px; max-width: 980px; }
.mw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mw-hello { color: var(--ink-3); font-size: 15px; }
.mw-title { font-size: clamp(34px, 6vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.mw-add { display: none; }


.mw-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; padding: 22px 12px 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px -22px #0000004d; }
@media (min-width: 720px) { .mw-apps { grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 26px 18px 22px; } }
.mw-app { display: grid; justify-items: center; gap: 7px; text-decoration: none; color: var(--ink-2); font-size: 12.5px; text-align: center; -webkit-tap-highlight-color: transparent; }
.mw-icon { display: grid; place-items: center; width: min(64px, 17vw); aspect-ratio: 1; border-radius: 23%; color: #fff; box-shadow: inset 0 1px 0 #ffffff55, 0 6px 14px -6px #0000005e; transition: transform .18s var(--kn-ease); }
.mw-icon .i { width: 46%; height: 46%; stroke-width: 1.7; }
.mw-app:active .mw-icon { transform: scale(.9); }
@media (hover: hover) { .mw-app:hover .mw-icon { transform: translateY(-2px); } }
.mw-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-drive .mw-icon, .t-drive-bg { background: linear-gradient(#3d8bfd, #1a5fd0); }
.t-photo .mw-icon { background: linear-gradient(#ffb340, #f0731c); }
.t-vault .mw-icon { background: linear-gradient(#c3161d, #7a0000); }
.t-time .mw-icon { background: linear-gradient(#5ac8a8, #23866c); }
.t-space .mw-icon { background: linear-gradient(#9f8cff, #5b44d9); }
.t-drop .mw-icon { background: linear-gradient(#5c6470, #2c3138); }
.t-share .mw-icon { background: linear-gradient(#4fd1e8, #1c8fb5); }
.t-tools .mw-icon { background: linear-gradient(#ff7aa8, #d63f78); }

.mw-storage { display: grid; gap: 10px; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mw-storage-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-3); }
.mw-storage-line b { color: var(--ink); font-size: 19px; font-weight: 700; }
.mw-storage-pct { font-weight: 600; color: var(--ink-2); }
.mw-bar { display: block; height: 8px; border-radius: 99px; background: #e5e5ea; overflow: hidden; }
.mw-bar em { display: block; height: 100%; min-width: 4px; border-radius: 99px; background: linear-gradient(90deg, #c3161d, #940000); }
.mw-storage-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.mw-storage-foot span { display: inline-flex; align-items: center; gap: 2px; color: #940000; font-weight: 600; }
.mw-storage-foot .i-sm { width: 15px; height: 15px; }

.mw-section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 4px -8px; }
.mw-section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.mw-section-head a { color: #940000; font-weight: 600; font-size: 15px; text-decoration: none; }
.mw-list { display: grid; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.mw-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 11px 16px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.mw-row + .mw-row { box-shadow: inset 74px 1px 0 -73px var(--line); border-top: 1px solid var(--line); }
@supports (margin-left: 1px) { .mw-row + .mw-row { border-top: 0; background-image: linear-gradient(var(--line), var(--line)); background-size: calc(100% - 74px) 1px; background-position: right top; background-repeat: no-repeat; box-shadow: none; } }
.mw-row:hover { background-color: var(--fog); }
.mw-row-text { min-width: 0; display: grid; gap: 2px; }
.mw-row-text b { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-row-text small { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-row > .i-sm { color: #c7c7cc; }
.mw-thumb { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; overflow: hidden; color: #fff; }
.mw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.th-img { background: linear-gradient(#ffb340, #f0731c); } .th-vid { background: linear-gradient(#9f8cff, #5b44d9); } .th-doc { background: linear-gradient(#3d8bfd, #1a5fd0); }
.mw-empty { display: grid; justify-items: center; gap: 12px; padding: 30px 20px; text-align: center; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.mw-empty .mw-icon { width: 60px; }
.mw-empty p { color: var(--ink-3); max-width: 30ch; } .mw-empty b { display: block; color: var(--ink); font-size: 17px; }
:root[data-theme="dark"] .mw-bar { background: #3a3a3c; }
:root[data-theme="dark"] .mw-storage-foot span, :root[data-theme="dark"] .mw-section-head a { color: #ff7a7f; }

/* ═══ 6. OFFRE DE BIENVENUE + correctifs boutons ═════════════════════════ */
.plan-welcome { display: grid; gap: 2px; justify-items: start; margin: 4px 0 2px; padding: 10px 12px; border-radius: 14px; background: #94000010; border: 1px dashed #94000059; color: var(--ink); font-size: 15px; line-height: 1.3; }
.plan-welcome[hidden] { display: none; }
.plan-welcome b { color: #940000; font-size: 18px; font-weight: 700; }
.plan-welcome small { color: var(--ink-3); font-size: 13px; }
.plan-welcome-tag { display: inline-block; margin-bottom: 2px; padding: 2px 9px; border-radius: 980px; background: #940000; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; }
.kn-stage .plan-welcome { background: #c3161d1f; border-color: #e0313a66; color: #fff; }
.kn-stage .plan-welcome b { color: #ff7a7f; }
.kn-stage .plan-welcome small { color: var(--kn-dim); }
:root[data-theme="dark"] .plan-welcome b { color: #ff7a7f; }

/* Les boutons « discrets » (Mensuel/Annuel, Tout désélectionner…) étaient forcés en rouge par la couche 3.0 */
.world-app .btn.btn-quiet { background: transparent !important; color: var(--ink-2) !important; border-color: transparent !important; }
.world-app .btn.btn-quiet:hover { background: #0000000d !important; color: var(--ink) !important; }
.world-app .btn.btn-quiet[aria-pressed="true"] { background: #940000 !important; color: #fff !important; border-color: #940000 !important; }
.world-app .seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: #7676801f; }
.world-app .seg .btn { border-radius: 9px; }
.world-app .seg-save { margin-left: 6px; padding: 1px 7px; border-radius: 980px; background: #f8e9b8; color: #7a5a00; font-size: 12px; font-weight: 700; }
:root[data-theme="dark"] .world-app .btn.btn-quiet:hover { background: #ffffff14 !important; }
