/* MobixMDM — site public (accueil + connexion). Couleurs de la marque inchangées (#0a84ff / #0066cc). */
:root {
  --ink: #0b1220; --text: #0f172a; --muted: #536173; --faint: #8a97a8;
  --brand: #0a84ff; --brand-deep: #0066cc; --brand-soft: #e8f2ff;
  --night: #0b1a33; --night-2: #10264a; --night-line: rgba(148, 178, 222, .18); --night-text: #c4d2e6;
  --surface: #f5f8fc; --line: #e3e9f1; --card: #fff;
  --ok: #10b981; --warn: #f59e0b; --crit: #ef4444;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ok { color: var(--ok); }
[hidden] { display: none !important; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; text-decoration: none !important; line-height: 1.3; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(10, 132, 255, .28); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #c7d2e0; background: var(--surface); }
.btn-onDark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-onDark:hover { background: rgba(255, 255, 255, .14); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: progress; }
.linkbtn { background: none; border: 0; color: var(--brand-deep); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }

/* Sélecteur de langue (drapeaux) */
.lang-fp { position: relative; }
.fp-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; cursor: pointer; color: var(--faint); }
.fp-flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; display: inline-block; line-height: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.fp-flag svg { width: 22px; height: 15px; display: block; }
.fp-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; min-width: 150px; z-index: 90; }
.fp-menu.open { display: block; }
.fp-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 13px; border: 0; background: #fff; cursor: pointer; font-size: 14px; text-align: left; color: var(--text); }
.fp-menu button:hover { background: var(--surface); }

/* Marque */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.3px; text-decoration: none !important; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

/* ───────────────────────── Accueil ───────────────────────── */
.topnav { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topnav .row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.topnav nav { display: flex; gap: 26px; }
.topnav nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.topnav nav a:hover { color: var(--text); text-decoration: none; }
.topnav .cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px; cursor: pointer; }
.menu-btn .ic { width: 22px; height: 22px; }
#mobileMenu { display: none; border-top: 1px solid var(--line); padding: 10px 24px 18px; background: #fff; }
#mobileMenu a { display: block; padding: 10px 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
#mobileMenu .btn { width: 100%; margin-top: 12px; }
@media (max-width: 960px) {
  .topnav nav, .topnav .cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
  #mobileMenu.open { display: block; }
}
@media (max-width: 520px) { .topnav .cta .btn-primary { display: none; } }

section { padding: 88px 0; }
.sec-h { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.sec-h h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.8px; color: var(--ink); font-weight: 700; }
.sec-h p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.tint { background: var(--surface); }

/* Hero */
.hero { padding: 64px 0 72px; background: linear-gradient(180deg, #f3f8ff 0%, #fff 70%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #cfe2fb; background: #fff; border-radius: 999px; font-size: 13.5px; color: var(--brand-deep); font-weight: 500; }
.hero .badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { margin: 20px 0 18px; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -1.6px; color: var(--ink); font-weight: 700; }
.hero .lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 590px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero .notes { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); list-style: none; }
.hero .notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero .notes .ic { width: 16px; height: 16px; color: var(--ok); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Panneau « parc en direct » */
.live { background: var(--night); color: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(11, 26, 51, .45); border: 1px solid #1d3560; }
.live-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--night-text); margin-bottom: 14px; }
.live-top b { color: #fff; font-weight: 600; font-size: 14px; }
.live-top .on { display: inline-flex; align-items: center; gap: 7px; }
.live-top .on i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.live-dep { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.live-dep .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--night-text); }
.live-dep .row b { color: #fff; font-size: 14.5px; font-weight: 600; }
.live-track { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 6px; margin-top: 10px; overflow: hidden; }
.live-track span { display: block; height: 100%; width: 38%; background: linear-gradient(90deg, var(--brand), #4fb0ff); border-radius: 6px; transition: width 1.2s ease; }
.live-list { list-style: none; display: grid; gap: 6px; }
.live-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--night-line); }
.live-list .dv { width: 30px; height: 30px; border-radius: 8px; background: rgba(10, 132, 255, .16); color: #7cc0ff; display: grid; place-items: center; }
.live-list .dv .ic { width: 16px; height: 16px; }
.live-list b { display: block; font-size: 13.5px; font-weight: 600; color: #fff; }
.live-list small { font-family: var(--mono); font-size: 11.5px; color: var(--night-text); }
.st { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st.g { color: #6ee7b7; background: rgba(16, 185, 129, .14); }
.st.b { color: #93c5fd; background: rgba(10, 132, 255, .16); }
.st.a { color: #fcd34d; background: rgba(245, 158, 11, .15); }
.st.n { color: #a5b4c8; background: rgba(148, 163, 184, .14); }
.live-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.live-foot div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--night-line); font-size: 12.5px; color: var(--night-text); }
.live-foot b { display: block; color: #fff; font-size: 15px; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: -1px; }
.stats div { padding: 22px 24px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 30px; letter-spacing: -.8px; color: var(--ink); font-weight: 700; }
.stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 26px 28px 0 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--mono); color: var(--brand-deep); font-size: 13px; font-weight: 600; }
.step h3 { margin: 8px 0 8px; font-size: 19px; color: var(--ink); }
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .step { padding-bottom: 22px; } }

/* Explorateur de fonctionnalités */
.fx { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.fx-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; }
.fx-tab { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; text-align: left; color: var(--muted); font-weight: 500; font-size: 15px; }
.fx-tab span { flex: 1; }
.fx-tab b { font-size: 12px; font-weight: 600; color: var(--faint); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.fx-tab:hover { background: var(--surface); color: var(--text); }
.fx-tab.on { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.fx-tab.on .ic { color: var(--brand); }
.fx-tab.on b { background: var(--brand-soft); color: var(--brand-deep); }
.fx-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; min-height: 420px; box-shadow: var(--shadow); }
.fx-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.fx-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; flex-shrink: 0; }
.fx-ic .ic { width: 22px; height: 22px; }
.fx-head h3 { font-size: 22px; color: var(--ink); letter-spacing: -.3px; }
.fx-head p { color: var(--muted); margin-top: 4px; }
.fx-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.fx-list li { display: flex; gap: 11px; }
.fx-list .ic { margin-top: 3px; }
.fx-list b { display: block; color: var(--ink); font-weight: 600; }
.fx-list span { color: var(--muted); font-size: 14.5px; }
.fx-total { text-align: center; color: var(--muted); margin-top: 22px; font-size: 14.5px; }
@media (max-width: 900px) {
  .fx { grid-template-columns: 1fr; }
  .fx-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .fx-tab { white-space: nowrap; }
  .fx-list { grid-template-columns: 1fr; }
  .fx-panel { padding: 22px; }
}

/* Usages */
.uc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.uc article { background: #fff; padding: 26px; }
.uc .ic { width: 24px; height: 24px; color: var(--brand); }
.uc h3 { margin: 14px 0 6px; font-size: 18px; color: var(--ink); }
.uc p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .uc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .uc { grid-template-columns: 1fr; } }

/* Sécurité (bande sombre) */
.dark { background: var(--night); color: #fff; }
.dark .sec-h h2 { color: #fff; }
.dark .sec-h p { color: var(--night-text); }
.sec3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.sec3 article { border: 1px solid var(--night-line); border-radius: 14px; padding: 24px; background: var(--night-2); }
.sec3 .ic { width: 26px; height: 26px; color: #6db6ff; }
.sec3 h3 { margin: 14px 0 6px; font-size: 18px; }
.sec3 p { color: var(--night-text); font-size: 15px; }
.secp { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; max-width: 980px; margin: 0 auto; }
.secp li { display: flex; gap: 10px; color: #dce6f4; }
.secp .ic { color: var(--ok); margin-top: 3px; }
@media (max-width: 860px) { .sec3, .secp { grid-template-columns: 1fr; } }

/* Galerie */
.gal-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 22px; }
.gal-tab { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 14px; }
.gal-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.browser { max-width: 1040px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .35); background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dbe5; }
.browser-bar .url { margin-left: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 3px 12px; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--surface); }

/* Tarifs */
.cy { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 30px; }
.cy-sw { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: #fff; }
.cy-btn { border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.cy-btn.on { background: var(--ink); color: #fff; }
.cy-save { font-size: 13px; font-weight: 600; color: #047857; background: #d1fae5; border-radius: 999px; padding: 4px 10px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.pc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px 22px; display: flex; flex-direction: column; }
.pc.pop { border: 2px solid var(--brand); box-shadow: 0 20px 40px -20px rgba(10, 132, 255, .45); }
.pc-badge { position: absolute; top: -12px; left: 22px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pc h3 { font-size: 20px; color: var(--ink); }
.pc-for { color: var(--muted); font-size: 14px; min-height: 44px; margin-top: 4px; }
.pc-price { margin-top: 16px; display: flex; align-items: baseline; gap: 4px; }
.pc-price b { font-size: 38px; letter-spacing: -1.2px; color: var(--ink); font-weight: 700; line-height: 1; }
.pc-price span { color: var(--muted); }
.pc-sub { color: var(--faint); font-size: 13px; margin-top: 6px; min-height: 20px; }
.pc-cap { display: flex; align-items: center; gap: 8px; margin: 18px 0; padding: 10px 12px; background: var(--surface); border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.pc-cap .ic { width: 16px; height: 16px; color: var(--brand); }
.pc-tier { display: block; margin: 18px 0; }
.pc-tier span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.pc-tier select { width: 100%; height: 42px; border: 1px solid #c7d2e0; border-radius: 10px; padding: 0 10px; background: #fff; font-weight: 600; }
.pc-cta { width: 100%; margin-top: auto; }
.pc-quote { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
.incl { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; background: #fff; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.incl h3 { font-size: 17px; color: var(--ink); }
.incl ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 18px; }
.incl li { display: flex; gap: 8px; font-size: 14.5px; }
.incl .ic { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }
.pnote { max-width: 860px; margin: 18px auto 0; text-align: center; color: var(--faint); font-size: 13.5px; }
.pdemo { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.pdemo b { color: var(--ink); }
.pdemo span { color: var(--muted); }
@media (max-width: 1060px) { .pgrid { grid-template-columns: 1fr 1fr; } .incl ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } .incl { grid-template-columns: 1fr; } .incl ul { grid-template-columns: 1fr; } }

/* Comparatif */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp thead th { font-size: 13.5px; color: var(--muted); font-weight: 600; background: var(--surface); }
.cmp thead th.me { color: var(--brand-deep); }
.cmp td.me { background: #f5faff; font-weight: 600; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .y { color: #047857; } .cmp .n { color: var(--faint); } .cmp .m { color: #b45309; }
.cmp .y .ic, .cmp .n .ic, .cmp .m .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; font-weight: 600; font-size: 17px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--faint); margin-top: 3px; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq p { padding: 0 4px 20px; color: var(--muted); max-width: 760px; }

/* Appel final */
.final { text-align: center; }
.final h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -1px; line-height: 1.1; }
.final p { color: var(--night-text); font-size: 18px; margin: 14px auto 28px; max-width: 560px; }
.final .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Pied de page */
footer.site { padding: 56px 0 30px; border-top: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.fgrid p { color: var(--muted); font-size: 14.5px; margin-top: 12px; max-width: 330px; }
.fgrid h4 { font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.fgrid ul { list-style: none; display: grid; gap: 8px; }
.fgrid a, .fgrid .linkbtn { color: var(--muted); font-size: 14.5px; font-weight: 400; text-decoration: none; }
.fgrid a:hover, .fgrid .linkbtn:hover { color: var(--text); }
.fgrid .brand { color: var(--ink); font-size: 19px; font-weight: 700; }
.fbot .fp-menu { top: auto; bottom: calc(100% + 6px); }
.fbot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr 1fr; } }

/* Fenêtres modales */
.mx-modal { position: fixed; inset: 0; z-index: 200; background: rgba(11, 18, 32, .55); display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.mx-modal.open { display: flex; }
.mx-box { width: 100%; max-width: 470px; background: #fff; border-radius: 18px; padding: 30px; position: relative; box-shadow: 0 40px 90px -30px rgba(11, 18, 32, .6); }
.mx-box h2 { font-size: 23px; color: var(--ink); letter-spacing: -.4px; padding-right: 28px; }
.mx-box .sub { color: var(--muted); margin: 6px 0 20px; }
.mx-x { position: absolute; top: 18px; right: 18px; background: none; border: 0; cursor: pointer; color: var(--faint); padding: 4px; border-radius: 8px; }
.mx-x:hover { color: var(--text); background: var(--surface); }
.mx-sum { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--brand-soft); color: var(--brand-deep); border-radius: 10px; font-weight: 600; margin-bottom: 18px; }
.fld { margin-bottom: 13px; }
.fld label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.fld input, .fld select, .fld textarea { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c7d2e0; border-radius: 10px; background: #fff; }
.fld textarea { height: 90px; padding: 10px 12px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 132, 255, .18); }
.fld2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chk { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 16px; }
.chk input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); }
.mx-box .btn { width: 100%; }
.m-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.m-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 10px; padding: 14px; }
.m-after { font-size: 13px; color: var(--faint); margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; margin: 16px 0 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sso { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-weight: 600; margin-bottom: 8px; text-decoration: none !important; cursor: pointer; }
.sso:hover { background: var(--surface); }
@media (max-width: 520px) { .fld2 { grid-template-columns: 1fr; } .mx-box { padding: 24px 20px; } }

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

/* ───────────────────────── Connexion ───────────────────────── */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { background: var(--night); color: #fff; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side .brand { color: #fff; }
.auth-side h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -1px; max-width: 520px; }
.auth-side .p { color: var(--night-text); font-size: 17px; margin: 16px 0 28px; max-width: 500px; }
.auth-side ul { list-style: none; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; color: #dce6f4; }
.auth-side li .ic { color: var(--ok); margin-top: 3px; }
.auth-side .live { max-width: 520px; margin-top: 34px; }
.auth-side small { color: var(--night-text); font-size: 13px; }
.auth-main { display: flex; flex-direction: column; padding: 28px 40px; background: #fff; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-top .back { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.auth-form { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; }
.auth-form h2 { font-size: 30px; letter-spacing: -.7px; color: var(--ink); }
.auth-form .hint { color: var(--muted); margin: 6px 0 26px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert .ic { margin-top: 2px; }
.alert.error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--faint); padding: 6px; border-radius: 8px; }
.pw-toggle:hover { color: var(--text); }
.remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.remember input { width: 16px; height: 16px; accent-color: var(--brand); }
.auth-form .btn-primary { width: 100%; height: 48px; }
.classic-hidden { display: none; }
.alt-login { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13.5px; color: var(--muted); margin-top: 8px; cursor: pointer; }
.auth-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); text-align: center; }
.secure { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 12.5px; color: var(--faint); margin-top: 14px; }
.secure .ic { width: 13px; height: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-left-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@media (max-width: 940px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 20px; } }
