/* LIVEmanager — pages publiques et connexion (refonte 06/12/2026, style « sobre pro », thème sombre). Aucune ressource externe. */
:root {
  color-scheme: dark;
  --ink: #e8edf5; --ink-soft: #b4c0d3; --muted: #8492a8; --line: #233049; --bg: #0b1120; --paper: #121a2b; --paper-2: #18233a;
  --accent: #5b8cff; --accent-2: #4a7bf0; --accent-soft: rgba(91, 140, 255, .14); --live: #f04444; --ok: #34d399; --warn: #fbbf24;
  --radius: 14px; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: #8fb0ff; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 .6rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.4rem; }
.wrap.narrow { max-width: 760px; }

.btn-l, .btn-s { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 600; transition: background 120ms, box-shadow 120ms; }
.btn-l { padding: .8rem 1.25rem; }
.btn-s { padding: .45rem .9rem; font-size: .92rem; }
.btn-l:hover, .btn-s:hover { background: var(--accent-2); box-shadow: 0 6px 20px rgba(91, 140, 255, .35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #33425f; }
.btn-ghost:hover { background: var(--paper-2); box-shadow: none; }

/* En-tête */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(11, 17, 32, .82); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo img { display: block; height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn-s) { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:not(.btn-s):hover { color: var(--ink); }

/* Accroche */
.hero { padding: 4.5rem 0 4rem; background: radial-gradient(900px 480px at 85% -10%, rgba(91, 140, 255, .28) 0, transparent 60%), radial-gradient(600px 360px at 0% 110%, rgba(240, 68, 68, .14) 0, transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; padding: .3rem .75rem; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); font-weight: 550; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(240, 68, 68, .25); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -0.04em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; margin: 0 0 1.6rem; }
.cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.proof { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; list-style: none; padding: 0; margin: 1.6rem 0 0; color: var(--muted); font-size: .9rem; }
.proof li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Aperçu du produit (dessiné en CSS, aucune donnée réelle) */
.mock { background: var(--paper); border: 1px solid #2b3a58; border-radius: 16px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(91, 140, 255, .08), 0 0 60px rgba(91, 140, 255, .12); overflow: hidden; transform: perspective(1400px) rotateY(-4deg); }
.mock-bar { display: flex; align-items: center; gap: .35rem; padding: .6rem .85rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #33425f; }
.mock-bar b { margin-left: .6rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.mock-body { padding: 1rem; display: grid; gap: .8rem; }
.mock-live { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: 10px; background: linear-gradient(90deg, rgba(240, 68, 68, .2), transparent); border: 1px solid rgba(240, 68, 68, .45); font-size: .82rem; font-weight: 650; }
.mock-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.mock-live em { margin-left: auto; font-style: normal; color: #fff; background: var(--accent); padding: .15rem .55rem; border-radius: 6px; font-size: .75rem; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.mock-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .65rem; }
.mock-kpis small { display: block; color: var(--muted); font-size: .7rem; }
.mock-kpis b { color: #fff; display: block; font-size: 1.1rem; letter-spacing: -0.03em; }
.mock-kpis s { text-decoration: none; font-size: .7rem; color: var(--muted); }
.mock-kpis s.up { color: var(--ok); }
.mock-chart { display: flex; align-items: flex-end; gap: 5px; height: 92px; padding: .5rem .6rem 0; border: 1px solid var(--line); border-radius: 10px; }
.mock-chart span { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .9; }
.mock-chart span:last-child { opacity: .5; }
.mock-todo { display: grid; gap: .35rem; }
.mock-todo p { margin: 0; display: flex; align-items: center; gap: .55rem; font-size: .8rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; }
.mock-todo b { min-width: 1.6rem; text-align: center; padding: .1rem 0; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.mock-todo b.w { background: rgba(251, 191, 36, .15); color: var(--warn); }
.mock-todo b.r { background: rgba(240, 68, 68, .15); color: #f87171; }

/* Sections */
.band { padding: 4.5rem 0; }
.band-alt { background: #0e1627; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 42rem; margin: 0 0 2.2rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.features article { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: box-shadow 150ms, transform 150ms; }
.features article:hover { box-shadow: var(--shadow); border-color: #33425f; transform: translateY(-2px); }
.features h3 { font-size: 1.05rem; margin-top: .8rem; }
.features p { margin: 0; color: var(--muted); font-size: .95rem; }
.ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; }
.steps { list-style: none; padding: 0; margin: 2rem 0 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: .8rem; }
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.roles div { padding: 1.1rem 1.3rem; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 10px 10px 0; }
.roles h3 { font-size: 1rem; margin-bottom: .25rem; }
.roles p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Démo */
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: .6rem; border-radius: 50%; background: rgba(52, 211, 153, .15); color: var(--ok); font-size: .8rem; font-weight: 700; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1.6rem; }
.demo-form, .login-form { display: grid; gap: .9rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
label small { font-weight: 400; color: var(--muted); }
input, textarea { width: 100%; font: inherit; font-size: .98rem; padding: .7rem .8rem; border: 1px solid #33425f; border-radius: 10px; background: #0f1728; color: var(--ink); transition: border-color 120ms, box-shadow 120ms; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 140, 255, .2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin: 0; font-size: .8rem; color: var(--muted); }
.ok { padding: 1rem 1.1rem; border-radius: 10px; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); color: #a7f3d0; }
.ok strong { display: block; }
.err { margin: 0 0 .9rem; padding: .7rem .9rem; border-radius: 10px; background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .4); color: #fecaca; font-size: .92rem; }
.note { padding: .7rem .9rem; border-radius: 10px; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; font-size: .9rem; }
.legal h1 { color: #fff; font-size: 2rem; }
.legal h2 { font-size: 1.15rem; margin-top: 1.8rem; }
.legal p { color: var(--ink-soft); }

/* Pied de page */
.site-foot { border-top: 1px solid var(--line); padding: 1.6rem 0; color: var(--muted); font-size: .88rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.site-foot span { display: inline-flex; align-items: center; gap: .5rem; }
.site-foot nav { display: flex; gap: 1.2rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: #fff; }

/* Connexion */
.login-body { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.login-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem 3rem; color: #e2e8f0; background: radial-gradient(700px 400px at 0% 0%, #2847a8 0, transparent 60%), linear-gradient(160deg, #13286a, #0b1739); overflow: hidden; }
.login-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); }
.login-side .logo-w { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.login-side .logo-w span { font-weight: 500; color: #cbd5e1; }
.login-side h2 { color: #fff; font-size: 2rem; max-width: 26rem; margin-top: 2rem; }
.login-side ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.login-side li { display: flex; gap: .6rem; color: #cbd5e1; }
.login-side li::before { content: "✓"; color: #86efac; font-weight: 700; }
.login-side small { color: #94a3b8; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.login-box { width: 100%; max-width: 400px; }
.login-box .brand { margin-bottom: 1.8rem; }
.login-box .brand img { height: 34px; width: auto; display: block; }
.login-box .brand .soc-logo { max-height: 56px; max-width: 220px; }
.login-box .brand strong { font-size: 1.4rem; letter-spacing: -0.03em; }
.login-box h1 { color: #fff; font-size: 1.7rem; margin-bottom: .3rem; }
.login-box .hello { color: var(--muted); margin: 0 0 1.6rem; }
.login-box .already { padding: .7rem .9rem; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(91, 140, 255, .3); font-size: .9rem; margin: 0 0 1.2rem; }
.pw-row { display: flex; justify-content: space-between; align-items: baseline; }
.pw-row a { font-size: .82rem; font-weight: 500; text-decoration: none; }
.login-form .btn-l { width: 100%; margin-top: .3rem; }
.login-help { margin: 1.4rem 0 0; font-size: .85rem; color: var(--muted); }
.login-shared { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .9rem; }
.login-shared summary { cursor: pointer; color: var(--muted); }
.login-shared form { margin-top: 1rem; display: grid; gap: .8rem; }
.role-choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.role-choices legend { font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .4rem; }
.role-choice { display: inline-flex; flex-direction: row; align-items: center; gap: .4rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 9px; font-weight: 500; cursor: pointer; }
.role-choice input { width: auto; }
.login-back { display: inline-block; margin-top: 1.6rem; font-size: .85rem; color: var(--muted); text-decoration: none; }

@media (max-width: 900px) {
  .hero-grid, .demo-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .mock { transform: none; }
  .features, .steps, .roles { grid-template-columns: 1fr 1fr; }
  .login-body { grid-template-columns: 1fr; }
  .login-side { display: none; }
}
@media (max-width: 620px) {
  .site-nav a:not(.btn-s) { display: none; }
  .features, .steps, .roles, .row2, .mock-kpis { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
  .band { padding: 3rem 0; }
}

/* Thème sombre : finitions */
.login-main { background: radial-gradient(700px 500px at 100% 0%, rgba(91, 140, 255, .12) 0, transparent 60%); }
.login-box { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.8rem; box-shadow: var(--shadow); }
.login-side { border-right: 1px solid var(--line); }
.role-choice { background: #0f1728; border-color: #33425f; }

/* --- Animations de la page d'accueil (site.js ajoute .anim ; rien si « mouvement réduit ») ------------------- */
.mock-toast { position: absolute; bottom: 10.6rem; right: 1.6rem; z-index: 2; display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border-radius: 10px; background: #0f1728; border: 1px solid rgba(52, 211, 153, .45); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); font-size: .78rem; color: var(--ink-soft); opacity: 0; pointer-events: none; }
.mock-toast i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(52, 211, 153, .18); color: var(--ok); font-style: normal; font-weight: 800; }
.mock-toast b { color: #fff; }
.mock-toast em { font-style: normal; font-weight: 700; color: var(--ok); }
.mock { position: relative; }
.mock-chart span { transition: height 600ms cubic-bezier(.2, .8, .2, 1); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mock-in { from { opacity: 0; transform: perspective(1400px) rotateY(-14deg) translateY(30px) scale(.96); } to { opacity: 1; transform: perspective(1400px) rotateY(-4deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(240, 68, 68, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(240, 68, 68, 0); } }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px) scale(.96); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes bump { 0% { color: #fff; } 30% { color: var(--ok); transform: scale(1.06); } 100% { color: #fff; transform: none; } }
@keyframes glow { 0%, 100% { background-position: 85% 0%, 0% 100%; } 50% { background-position: 70% 10%, 12% 90%; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.anim .hero { background-size: 140% 140%, 140% 140%, auto; animation: glow 14s ease-in-out infinite; }
.anim .hero-grid > div:first-child > * { animation: fade-up 700ms cubic-bezier(.2, .8, .2, 1) both; }
.anim .hero-grid > div:first-child > :nth-child(2) { animation-delay: 90ms; }
.anim .hero-grid > div:first-child > :nth-child(3) { animation-delay: 180ms; }
.anim .hero-grid > div:first-child > :nth-child(4) { animation-delay: 270ms; }
.anim .hero-grid > div:first-child > :nth-child(5) { animation-delay: 360ms; }
.anim .mock { animation: mock-in 1s 200ms cubic-bezier(.2, .8, .2, 1) both, float 6s 1.4s ease-in-out infinite; }
.anim .mock-chart span { transform-origin: bottom; animation: grow 700ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(700ms + var(--i) * 45ms); }
.anim .mock-live i, .anim .eyebrow .dot { animation: pulse-ring 1.6s ease-out infinite; }
.anim .mock-todo p { animation: slide-in 500ms cubic-bezier(.2, .8, .2, 1) both; }
.anim .mock-todo p:nth-child(1) { animation-delay: 1.3s; }
.anim .mock-todo p:nth-child(2) { animation-delay: 1.42s; }
.anim .mock-todo p:nth-child(3) { animation-delay: 1.54s; }
.anim .mock-toast.show { animation: toast 3s ease both; }
.anim .mock-kpis b.bump { transform-origin: left center; animation: bump 900ms ease; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms cubic-bezier(.2, .8, .2, 1), transform 650ms cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.btn-l, .btn-s { transition: background 120ms, box-shadow 160ms, transform 160ms; }
.btn-l:hover, .btn-s:hover { transform: translateY(-1px); }
.features article .ico { transition: transform 200ms, background 200ms; }
.features article:hover .ico { transform: scale(1.08) rotate(-4deg); background: rgba(91, 140, 255, .25); }
.steps li, .roles div { transition: transform 160ms, border-color 160ms; }
.steps li:hover { transform: translateY(-2px); border-color: #33425f; }
@media (max-width: 900px) { .anim .mock { animation: fade-up 800ms 200ms both; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
