/* Keynox — bleu marine et or adouci, mode clair et sombre */
:root {
  --ground: #F3F2EE; --card: #FFFFFF; --line: #DDDBD4; --line2: #E7E4DD; --text: #14213D; --muted: #4A5468;
  --navy: #1F3A68; --navy-deep: #14213D; --gold: #B8995A; --gold-soft: #F2ECE0; --gold-ink: #6E5526;
  --soft: #E9E7E1; --field: #FFFFFF; --btn: #1F3A68; --btn-text: #FFFFFF; --link: #1F3A68; --primary-card: #1F3A68;
  --danger: #A3361A; --danger-soft: #F6DED6; --danger-text: #7A1A14; --ok-soft: #DFF3E8; --ok-text: #0F4E32;
  --warn-soft: #FBF0D9; --warn-text: #5B3D00; --info-soft: #E7EBF3; --info-text: #1F3A68;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Ubuntu, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ground: #0D1529; --card: #16213D; --line: #24345A; --line2: #22314F; --text: #F1F3F8; --muted: #A9B3C9;
  --gold-soft: #2E2716; --gold-ink: #CDB88C; --soft: #16213D; --field: #1B2848; --btn: #B8995A; --btn-text: #14213D;
  --link: #CDB88C; --primary-card: #22407A; --danger: #FF9C85; --danger-soft: #3A1F22; --danger-text: #FFC9C2;
  --ok-soft: #16352A; --ok-text: #BDEBD3; --warn-soft: #3A2F14; --warn-text: #F2D9A0; --info-soft: #1B2848; --info-text: #D6DDEB;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0D1529; --card: #16213D; --line: #24345A; --line2: #22314F; --text: #F1F3F8; --muted: #A9B3C9;
    --gold-soft: #2E2716; --gold-ink: #CDB88C; --soft: #16213D; --field: #1B2848; --btn: #B8995A; --btn-text: #14213D;
    --link: #CDB88C; --primary-card: #22407A; --danger: #FF9C85; --danger-soft: #3A1F22; --danger-text: #FFC9C2;
    --ok-soft: #16352A; --ok-text: #BDEBD3; --warn-soft: #3A2F14; --warn-text: #F2D9A0; --info-soft: #1B2848; --info-text: #D6DDEB;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.dark { background: var(--navy-deep); color: #fff; }
:root[data-theme="dark"] body.dark { background: #070D1C; }

.wrap {
  max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
}
h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h2.section { margin: 10px 0 -4px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
p { margin: 0; }
a { color: var(--link); font-weight: 700; }
body.dark a { color: var(--gold); }
.lead { font-size: 15px; line-height: 22px; color: var(--muted); }
body.dark .lead { color: #C3CBDB; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .right { align-self: flex-end; }
.tight { margin-top: -8px; } .mt { margin-top: 16px; } .mt-s { margin-top: 6px; }
.mono { font-family: var(--mono); }
.spacer { flex: 1 1 auto; min-height: 6px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grow { flex: 1 1 auto; display: flex; flex-direction: column; }
.grow-x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hidden { display: none !important; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ic { flex-shrink: 0; }

/* Barre du haut, logo, langue et thème */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.toplabel { font-size: 15px; font-weight: 700; color: var(--muted); margin-right: auto; }
.step { font-size: 13px; font-weight: 700; color: var(--muted); }
body.dark .step { color: #C3CBDB; }
.logo-img { display: block; border-radius: 22%; }
.controls { display: flex; gap: 8px; align-items: center; }
.rbtn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); color: var(--text) !important;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; flex-shrink: 0;
}
.ic-sun { display: none; } .ic-moon { display: inline-flex; }
:root[data-theme="dark"] .ic-sun { display: inline-flex; } :root[data-theme="dark"] .ic-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ic-sun { display: inline-flex; } :root:not([data-theme="light"]) .ic-moon { display: none; } }
.iconbtn {
  width: 44px; height: 44px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text) !important;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.dark .iconbtn { background: #26375C; border-color: #26375C; color: #fff !important; }
.lockbtn {
  height: 44px; padding: 0 14px; border-radius: 14px; background: var(--navy-deep); color: #fff !important; border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px;
}
.lockbtn .ic { color: var(--gold); }
.hello { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.hello-sub { font-size: 15px; }

/* Connexion */
.welcome { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-top: 6px; }
.welcome h1 { font-size: 32px; }
.chips { display: flex; justify-content: space-between; gap: 8px; width: 100%; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.chip .ic, .chip .star { color: var(--gold); }
.login-form { gap: 12px; }
.joincard { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--gold-soft); }
.jointext { font-size: 14px; }
.joincard .joinbtn { min-height: 46px; font-size: 16px; border-radius: 14px; }
.small-btn { width: auto; min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.contactbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--text) !important; font-size: 16px; text-decoration: none;
}
.contactbtn .ic { color: var(--gold); }

/* Messages */
.flash { padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; background: var(--info-soft); color: var(--info-text); }
.flash.ok { background: var(--ok-soft); color: var(--ok-text); }
.flash.error { background: var(--danger-soft); color: var(--danger-text); }
.flash.warn, .flash.gold { background: var(--warn-soft); color: var(--warn-text); }
body.dark .flash { background: #26375C; color: #fff; }
body.dark .flash.error { background: #4A2A26; color: #FFC9C2; }
body.dark .flash.ok { background: #16352A; color: #BDEBD3; }
.note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 13px; line-height: 18px; color: var(--muted); }
.note.plain { background: none; padding: 0; }
.note.plain.center { justify-content: center; }
.note.dark { background: #26375C; color: #DCE3EF; }
.note.dark .ic { color: var(--gold); }
.signature { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); }

/* Champs */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--field); font: inherit; font-size: 16px; color: var(--text);
}
textarea { height: auto; padding: 12px 16px; line-height: 22px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; font-weight: 700; font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: none; border: 2px solid var(--navy); }
:root[data-theme="dark"] input:focus, :root[data-theme="dark"] select:focus, :root[data-theme="dark"] textarea:focus { border-color: var(--gold); }
.hint { font-size: 12px; color: var(--muted); }
.meter { display: flex; gap: 4px; margin-top: 4px; }
.meter span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.meter[data-level="1"] span:nth-child(-n+1) { background: var(--danger); }
.meter[data-level="2"] span:nth-child(-n+2) { background: #C9821B; }
.meter[data-level="3"] span:nth-child(-n+3), .meter[data-level="4"] span { background: #2F7A55; }
.meter.valid span { background: #2F7A55; }
.rules { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.rules li::before { content: "○ "; }
.rules li.ok { color: #2F7A55; font-weight: 700; }
.rules li.ok::before { content: "✓ "; }
:root[data-theme="dark"] .rules li.ok { color: #6FD3A0; }
.inputwrap { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 5px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--field); }
.inputwrap:focus-within { border: 2px solid var(--navy); }
.inputwrap input { border: none; height: 46px; background: transparent; }
.inputwrap input:focus { border: none; }
.codebox { height: 64px !important; text-align: center; font-size: 30px !important; font-weight: 800; letter-spacing: 12px; font-family: var(--mono); }
.compact { gap: 10px; }

/* Boutons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; flex-shrink: 0;
  padding: 0 20px; border: none; border-radius: 16px; background: var(--btn); color: var(--btn-text) !important;
  font: inherit; font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn:active { transform: scale(0.99); }
.btn.amber { background: var(--gold); color: #14213D !important; }
.btn.danger { background: var(--danger); color: #fff !important; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.linkbtn { background: none; border: none; padding: 8px; font: inherit; font-size: 15px; font-weight: 700; color: var(--link); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link { font-size: 15px; } .danger { color: var(--danger) !important; }
.mini { width: 42px; height: 40px; border: none; border-radius: 10px; background: var(--ground); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.mini.light { background: var(--ground); }
.mini.done { background: var(--ok-soft); color: var(--ok-text); }

/* Accueil */
.tile {
  min-height: 150px; padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  color: var(--text) !important; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.tile.primary { background: var(--primary-card); border-color: var(--primary-card); color: #fff !important; }
.tile-ic { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.tile-ic.gold { background: var(--gold); color: #14213D; }
.tile-ic.soft { background: var(--gold-soft); color: var(--gold-ink); }
.tile-txt { display: flex; flex-direction: column; gap: 4px; }
.tile-txt strong { font-size: 21px; line-height: 26px; font-weight: 800; }
.tile-txt span { font-size: 14px; color: var(--muted); }
.tile.primary .tile-txt span { color: #D6DDEB; }
.softlink { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 16px; padding: 18px 22px; border-radius: 24px; background: var(--info-soft); color: var(--text) !important; text-decoration: none; }
.softlink .ic { color: var(--text); }
.softlink .grow-x { display: block; }
.softlink .grow-x br { display: none; }
.softlink .grow-x strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.softlink .grow-x .muted { display: block; margin-top: 2px; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--text); }

/* Code du coffre : tout tient sur l'écran, bouton compris */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.codehero { margin-top: -6px; }
.codehero h1 { font-size: 24px; }
.lockcircle { width: 56px; height: 56px; border-radius: 28px; background: #26375C; color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.bubble { width: 92px; height: 92px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.bubble.gold { background: var(--gold-soft); color: var(--gold-ink); }
.bubble.red { background: #4A2A26; color: #F5B7A0; }
.pinform { flex: 1 1 auto; display: flex; flex-direction: column; }
.pin { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dots { display: flex; justify-content: center; gap: 16px; width: 100%; max-width: 300px; padding: 16px 22px; border-radius: 14px; background: #26375C; }
body.dark .flash { padding: 9px 12px; font-size: 13px; }
.dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #8C97B0; }
.dots span.on { background: var(--gold); border-color: var(--gold); }
.dots.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pin-hint { min-height: 18px; font-size: 13px; color: #C3CBDB; text-align: center; }
.keys { margin-top: 6px; width: 100%; display: grid; grid-template-columns: repeat(3, 74px); gap: 10px 46px; justify-content: center; justify-items: center; align-items: center; }
.key {
  width: 74px; height: 74px; border-radius: 50%; border: none; background: #26375C;
  font: inherit; font-size: 28px; font-weight: 500; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation; user-select: none;
}
.key:active { background: #3A4D78; }
.key.del { background: transparent; }
.key.text { background: transparent; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; color: var(--gold) !important; }
.pin-go { margin-top: 14px; }
:root[data-theme="dark"] .dots, :root[data-theme="dark"] .key, :root[data-theme="dark"] .lockcircle { background: #16213D; }
@media (prefers-reduced-motion: reduce) { .dots.shake { animation: none; } }

/* Liste des mots de passe */
.titlerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.addbtn { width: 50px; height: 50px; border-radius: 16px; background: var(--btn); color: var(--btn-text) !important; display: inline-flex; align-items: center; justify-content: center; }
.card { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); color: var(--muted); }
.search input { border: none; height: 44px; padding: 0; background: transparent; }
.search input:focus { border: none; }
.list { display: flex; flex-direction: column; gap: 10px; }
.entry { padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.entry.open { border: 2px solid var(--gold); }
.entry-head[data-expand] { cursor: pointer; min-height: 44px; }
.entry-actions { display: none; gap: 8px; align-items: center; }
.entry.open .entry-actions { display: flex; }
.entry.open .chev { display: none; }
.entry-body { display: none; flex-direction: column; gap: 10px; }
.entry.open .entry-body { display: flex; }
.entry .chev { margin-left: auto; color: var(--muted); display: inline-flex; }
.entry:not(.open) .avatar { background: var(--info-soft); color: var(--info-text); }
.entry-head { display: flex; align-items: center; gap: 10px; }
.entry-head form { margin: 0; }
.entry-head .entry-txt { flex: 1; }
.mini.del { color: var(--danger); }
.avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); flex-shrink: 0; font-weight: 800; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
.avatar.big { width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 22px; }
.entry-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.entry-txt strong { font-size: 16px; font-weight: 800; }
.entry-txt span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secretrow { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 4px 4px 4px 14px; border-radius: 12px; background: var(--ground); }
.secret { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.notebox { color: var(--muted); overflow-wrap: anywhere; }
.editform { padding-top: 4px; }
.empty { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; padding: 40px 0; color: var(--muted); }

/* Profil */
.me { display: flex; align-items: center; gap: 14px; }
.group { border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.group > a, .group > form { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; color: var(--text) !important; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line2); }
.group > :last-child { border-bottom: none; }
.group > a span { flex: 1; }
.group > a .ic:first-child { color: var(--gold); }
.rate span:first-of-type { flex: 1; }
.stars { display: inline-flex; gap: 2px; }
.stars button { border: none; background: none; font-size: 24px; color: #C5CCDA; cursor: pointer; padding: 2px; line-height: 1; }
.stars button.on { color: var(--gold); }

/* Écrans moins hauts : on resserre l'écran du code pour garder « Ouvrir » visible */
@media (max-height: 760px) {
  body.dark .wrap { gap: 10px; }
  .codehero .lockcircle { width: 44px; height: 44px; }
  .key { width: 66px; height: 66px; font-size: 26px; }
  .keys { grid-template-columns: repeat(3, 66px); gap: 8px 44px; }
}
/* Petits écrans (ex. iPhone SE) */
@media (max-height: 700px) {
  .key { width: 60px; height: 60px; font-size: 24px; }
  .keys { grid-template-columns: repeat(3, 60px); }
  .codehero .lockcircle { display: none; }
  .tile { min-height: 128px; padding: 18px; }
}

/* ================= Mise en page ================= */
.brandpanel, .sidenav { display: none; }
.tiles { display: flex; flex-direction: column; gap: 14px; }

/* Téléphone : la page de connexion tient sur un écran */
@media (max-width: 959px) {
  .shell-auth .wrap { gap: 10px; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .welcome { margin-top: 0; }
  .welcome h1 { font-size: 28px; }
  .chips { margin-top: 8px; }
  .login-form { gap: 10px; }
  .login-form input[type=email], .login-form .inputwrap { height: 48px; }
  .login-form .inputwrap input { height: 44px; }
  .login-form .btn { min-height: 50px; }
  .flash { padding: 9px 12px; font-size: 13px; }
  .joincard { padding: 12px 14px; gap: 8px; }
  .joincard .joinbtn { min-height: 44px; }
  .contactbtn { min-height: 44px; font-size: 15px; }
}

/* Ordinateur */
@media (min-width: 960px) {
  .shell-auth .shell { display: grid; grid-template-columns: minmax(380px, 45%) 1fr; min-height: 100vh; }
  .brandpanel {
    display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 64px 72px;
    background: #14213D; color: #fff; min-height: 100vh; position: sticky; top: 0;
  }
  :root[data-theme="dark"] .brandpanel { background: #111C35; }
  .brandpanel h2 { margin: 6px 0 0; font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; max-width: 560px; }
  .brandpanel p { font-size: 18px; line-height: 28px; color: #C3CCE0; max-width: 520px; }
  .brandpanel ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; font-weight: 600; }
  .brandpanel li { display: flex; align-items: center; gap: 12px; }
  .brandpanel li .ic { color: var(--gold); }
  .shell-auth .wrap { width: 100%; max-width: 460px; min-height: 100vh; justify-content: center; padding: 48px 32px; }
  .shell-auth .topbar .logo-img { display: none; }
  .shell-auth .spacer { flex: 0 0 18px; }

  .shell-app .shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
  .sidenav {
    display: flex; flex-direction: column; gap: 6px; padding: 28px 18px; background: #14213D; color: #C3CCE0;
    position: sticky; top: 0; height: 100vh;
  }
  :root[data-theme="dark"] .sidenav { background: #111C35; }
  .sidebrand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; color: #fff !important; text-decoration: none; font-size: 22px; font-weight: 800; }
  .sidenav nav, .sidefoot { display: flex; flex-direction: column; gap: 6px; }
  .sidefoot { margin-top: auto; }
  .sidenav nav a, .sidefoot a {
    display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 14px;
    color: #C3CCE0 !important; text-decoration: none; font-size: 16px; font-weight: 650;
  }
  .sidenav nav a:hover, .sidefoot a:hover { background: #1F3A68; color: #fff !important; }
  .sidenav nav a.active { background: #22407A; color: #fff !important; }
  .sidenav .ic { color: var(--gold); }
  .sidemail { padding: 10px 14px 0; font-size: 13px; color: #8C97B0; overflow-wrap: anywhere; }
  .lbl-light { display: none; }
  :root[data-theme="dark"] .lbl-light { display: inline; } :root[data-theme="dark"] .lbl-dark { display: none; }
  .shell-app .wrap { max-width: 820px; width: 100%; padding: 40px 48px; }
  .shell-app .topbar .controls { display: none; }
  .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .tile { min-height: 190px; }
  .shell-none .wrap { justify-content: center; }
}
@media (min-width: 960px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lbl-light { display: inline; } :root:not([data-theme="light"]) .lbl-dark { display: none; }
}

/* ================= Page de présentation et pages légales ================= */
.lp { min-height: 100vh; display: flex; flex-direction: column; }
.lp-head { display: flex; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 20px 14px; max-width: 1200px; width: 100%; margin: 0 auto; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text) !important; font-size: 20px; font-weight: 800; margin-right: auto; }
.lp-brand.light { color: #fff !important; margin: 0; }
.lp-nav { display: none; gap: 22px; margin-right: 10px; }
.lp-nav a { color: var(--muted) !important; text-decoration: none; font-weight: 700; font-size: 15px; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 16px; background: var(--btn); color: var(--btn-text) !important; text-decoration: none; font-size: 15px; font-weight: 800; border: 1px solid transparent; }
.lp-btn.ghost { background: var(--card); color: var(--text) !important; border-color: var(--line); }
.lp-btn.big { min-height: 56px; font-size: 17px; }
.lp-hide-m { display: none; }
.lp-hero { max-width: 1200px; width: 100%; margin: 0 auto; padding: 16px 22px 10px; display: flex; flex-direction: column; gap: 26px; }
.lp-hero h1 { font-size: 34px; line-height: 1.12; letter-spacing: -0.02em; }
.lp-hero-txt { display: flex; flex-direction: column; gap: 16px; }
.lp-lead { font-size: 16px; line-height: 24px; color: var(--muted); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-ctas { display: flex; flex-direction: column; gap: 10px; }
.lp-phone { align-self: center; width: 240px; height: 470px; border-radius: 40px; background: #0D1529; padding: 10px; box-shadow: 0 30px 60px rgba(20, 33, 61, 0.25); }
.lp-screen { height: 100%; border-radius: 32px; background: var(--ground); padding: 22px 14px; display: flex; flex-direction: column; gap: 10px; }
.lp-s-name { font-size: 20px; }
.lp-s-card { border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.lp-s-card.primary { background: var(--primary-card); border-color: var(--primary-card); color: #fff; }
.lp-s-ic { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.lp-s-ic.gold { background: var(--gold); color: #14213D; }
.lp-s-ic.soft { background: var(--gold-soft); color: var(--gold-ink); }
.lp-s-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 12px; }
.lp-s-row .avatar { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
.lp-feats { max-width: 1200px; width: 100%; margin: 0 auto; padding: 22px; display: grid; gap: 12px; }
.lp-feat { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.lp-feat b { font-size: 18px; } .lp-feat p { color: var(--muted); font-size: 15px; line-height: 22px; }
.lp-ic { width: 48px; height: 48px; border-radius: 24px; background: var(--gold-soft); color: var(--gold-ink); display: inline-flex; align-items: center; justify-content: center; }
.lp-two { max-width: 1200px; width: 100%; margin: 0 auto; padding: 8px 22px 32px; display: grid; gap: 22px; }
.lp-two h2, .lp-legal h1 { font-size: 26px; font-weight: 800; margin: 0 0 14px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lp-steps li { display: flex; gap: 14px; align-items: flex-start; }
.lp-steps li > span { flex: none; width: 36px; height: 36px; border-radius: 18px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
:root[data-theme="dark"] .lp-steps li > span { background: var(--gold); color: #14213D; }
.lp-steps p { color: var(--muted); font-size: 14px; line-height: 21px; margin-top: 2px; }
.lp-side { display: flex; flex-direction: column; gap: 14px; }
.lp-box { padding: 20px; border-radius: 22px; display: flex; gap: 14px; align-items: flex-start; }
.lp-box p { color: var(--muted); font-size: 15px; line-height: 22px; margin: 4px 0 12px; }
.lp-box.info { background: var(--info-soft); }
.lp-box.info .ic { color: var(--info-text); }
.lp-box.gold { background: var(--gold-soft); }
.lp-legal { max-width: 760px; width: 100%; margin: 0 auto; padding: 16px 22px 40px; line-height: 1.6; }
.lp-legal h2 { font-size: 18px; margin: 26px 0 8px; }
.lp-legal p, .lp-legal li { color: var(--muted); }
.lp-legal li { margin: 6px 0; }
.lp-legal strong { color: var(--text); }
.lp-foot { margin-top: auto; background: #14213D; color: #C3CCE0; padding: 26px 22px max(26px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 14px; }
.lp-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.lp-foot a { color: #C3CCE0 !important; text-decoration: none; font-weight: 600; }
.lp-foot p { font-size: 12px; color: #8C97B0; }
.lp-head .controls .rbtn { width: 40px; height: 40px; }
@media (min-width: 900px) {
  .lp-head { padding: 20px 48px; }
  .lp-nav, .lp-hide-m { display: inline-flex; }
  .lp-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; padding: 60px 48px 50px; gap: 40px; }
  .lp-hero h1 { font-size: 54px; line-height: 1.06; letter-spacing: -0.03em; }
  .lp-lead { font-size: 19px; line-height: 29px; max-width: 560px; }
  .lp-ctas { flex-direction: row; }
  .lp-phone { width: 270px; height: 530px; }
  .lp-feats { grid-template-columns: repeat(3, 1fr); padding: 0 48px 50px; gap: 18px; }
  .lp-two { grid-template-columns: 1fr 1fr; padding: 0 48px 60px; gap: 40px; }
  .lp-two h2 { font-size: 32px; }
}

/* ================= Double authentification, export ================= */
.badge { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; flex: none !important; }
.badge.ok { background: var(--ok-soft); color: var(--ok-text); }
.badge.off { background: var(--danger-soft); color: var(--danger-text); }
.bubble.okb { background: var(--ok-soft); color: var(--ok-text); }
.qrbox { align-self: center; width: 200px; height: 200px; padding: 12px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); }
.qrbox svg { width: 100%; height: 100%; display: block; }
.codesgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.codesgrid span { padding: 10px 0; text-align: center; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-family: var(--mono); font-size: 15px; font-weight: 700; }
.row2 { display: flex; gap: 10px; }
.row2 .btn { min-height: 44px; font-size: 15px; }
.btn.light { background: var(--card); color: var(--text) !important; border: 1px solid var(--line); }
.checkline { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.checkline input { width: 20px; height: 20px; accent-color: var(--navy); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--muted); }
.checks .ic { color: #2F7A55; margin-top: 1px; }
.small-code { height: 52px !important; font-size: 20px !important; letter-spacing: 4px !important; }

/* ================= Liste déroulante au style de Keynox ================= */
.fsel { position: relative; }
.fsel-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.fsel-btn { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.fsel-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel-btn svg { flex: none; color: var(--muted); transition: transform 0.15s; }
.fsel.open .fsel-btn { border: 2px solid var(--navy); padding: 0 15px; }
:root[data-theme="dark"] .fsel.open .fsel-btn { border-color: var(--gold); }
.fsel.open .fsel-btn svg { transform: rotate(180deg); }
.fsel-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(20, 33, 61, 0.18); outline: none; }
.fsel-list li { padding: 12px 12px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.fsel-list li.active { background: var(--ground); }
.fsel-list li[aria-selected="true"] { font-weight: 800; color: var(--navy); }
:root[data-theme="dark"] .fsel-list li[aria-selected="true"] { color: var(--gold); }
.fsel-list li[aria-selected="true"]::after { content: "  ✓"; }

/* ================= Étapes de l'inscription ================= */
.progress { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress li { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.progress li span { height: 4px; border-radius: 2px; background: var(--line); }
.progress li.done span, .progress li.current span { background: var(--navy); }
.progress li.current { color: var(--text); }
body.dark .progress li span, :root[data-theme="dark"] .progress li span { background: #34456B; }
body.dark .progress li.done span, body.dark .progress li.current span, :root[data-theme="dark"] .progress li.done span, :root[data-theme="dark"] .progress li.current span { background: var(--gold); }
body.dark .progress li { color: #9AA6C0; } body.dark .progress li.current { color: #FFFFFF; }
