/* ===========================================================
   SEND WORK — pages publiques : accueil, connexion, inscription.
   Charte : brand/ (bleu #2f6feb, violet #7c3aed, bleu nuit #0f172a,
   gris ardoise #64748b, Poppins).
   =========================================================== */

:root {
    --blue: #2f6feb; --blue-dark: #1f5bd6; --violet: #7c3aed;
    --ink: #0f172a; --ink-2: #1e293b; --slate: #64748b; --slate-2: #94a3b8;
    --line: #e2e8f0; --soft: #f1f5f9; --bg: #ffffff;
    --grad: linear-gradient(135deg, #2f6feb, #7c3aed);
    --ok: #16a34a; --err: #dc2626; --warn: #b45309;
    --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --r: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
svg.i { display: inline-block; vertical-align: -3px; flex-shrink: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { color: var(--blue); }
.on-dark .brand, .brand.light { color: #fff; }
.on-dark .brand span, .brand.light span { color: #6ea0ff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--font);
       padding: 14px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
       transition: transform .15s, box-shadow .15s, background .15s; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(47, 111, 235, .32); }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.alert.ok   { background: #ecfdf5; color: #065f46; }
.alert.err  { background: #fef2f2; color: #991b1b; }
.alert.warn { background: #fffbeb; color: #92400e; }
.alert.info { background: #eff6ff; color: #1e40af; }

/* ============================================================ connexion */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 52px 54px 40px;
             display: flex; flex-direction: column; }
.auth-side::before { content: ""; position: absolute; width: 620px; height: 620px; right: -260px; top: -220px; border-radius: 50%;
                     background: radial-gradient(circle, rgba(124, 58, 237, .35), transparent 65%); pointer-events: none; }
.auth-side::after { content: ""; position: absolute; width: 520px; height: 520px; left: -220px; bottom: -240px; border-radius: 50%;
                    background: radial-gradient(circle, rgba(47, 111, 235, .30), transparent 65%); pointer-events: none; }
.auth-side > * { position: relative; }
.auth-side .pitch { margin: auto 0; max-width: 470px; }
.auth-side h2 { font-size: 34px; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 30px; font-weight: 700; }
.auth-side h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
                   filter: brightness(1.35); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.points .dot { width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .09); display: grid; place-items: center;
               color: #7fb0ff; font-weight: 700; font-size: 14px; }
.points b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.points span { color: #cbd5e1; font-size: 14.5px; line-height: 1.55; }
.auth-side .foot { color: var(--slate-2); font-size: 12.5px; }
.ai-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
           background: rgba(124, 58, 237, .22); color: #d8c8ff; border: 1px solid rgba(167, 139, 250, .35); margin-bottom: 22px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 432px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }
.auth-form h1 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 700; }
.auth-form .sub { color: var(--slate); font-size: 15px; line-height: 1.6; margin: 0 0 26px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.field input[type=text], .field input[type=email], .field input[type=password] {
    width: 100%; height: 52px; padding: 0 16px; border: 1px solid #dbe2ea; border-radius: 10px; font: 15px var(--font); color: var(--ink);
    background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 235, .14); }
.field .hint { color: var(--slate); font-size: 12.5px; line-height: 1.55; margin-top: 7px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); margin: 4px 0 22px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); }
.switch { text-align: center; color: var(--slate); font-size: 14.5px; margin-top: 22px; }
.switch a { font-weight: 600; }

.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.goal { border: 1px solid #dbe2ea; border-radius: 12px; padding: 14px 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.goal input { position: absolute; opacity: 0; pointer-events: none; }
.goal b { display: block; font-size: 14px; margin-bottom: 5px; }
.goal span { color: var(--slate); font-size: 12.5px; line-height: 1.5; }
.goal:has(input:checked) { border: 2px solid var(--blue); background: #eff5ff; padding: 13px 12px; }
.goal:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(47, 111, 235, .18); }
.legend { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }

@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth-side { padding: 26px 22px; min-height: 0; }
    .auth-side .pitch, .auth-side .foot { display: none; }
    .auth-main { padding: 32px 20px 48px; align-items: flex-start; }
    .goals { grid-template-columns: 1fr; }
    .row2 { grid-template-columns: 1fr; gap: 0; }
    .auth-form h1 { font-size: 27px; }
}

/* ============================================================== accueil */

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.nav { position: sticky; top: 0; z-index: 20; background: rgba(15, 23, 42, .86); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.nav .links { display: flex; gap: 24px; margin-left: auto; }
.nav .links a { color: #cbd5e1; font-size: 14.5px; }
.nav .links a:hover { color: #fff; text-decoration: none; }
.nav .cta { display: flex; gap: 10px; align-items: center; }
.nav .cta .login { color: #fff; font-size: 14.5px; font-weight: 500; padding: 0 6px; }

.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; padding: 84px 0 110px; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%;
                background: radial-gradient(circle, rgba(124, 58, 237, .38), transparent 62%); }
.hero::after { content: ""; position: absolute; width: 760px; height: 760px; left: -330px; bottom: -420px; border-radius: 50%;
               background: radial-gradient(circle, rgba(47, 111, 235, .34), transparent 62%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 56px; line-height: 1.07; letter-spacing: -.03em; margin: 0 0 22px; font-weight: 700; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #6ea0ff, #b794ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #cbd5e1; font-size: 18px; line-height: 1.65; margin: 0 0 32px; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .note { color: var(--slate-2); font-size: 13px; margin-top: 18px; }

/* maquette de l application dans le bandeau */
.mock { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-body { padding: 16px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.mock-row:last-child { margin-bottom: 0; }
.mock-row .logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.mock-row .t { flex: 1; min-width: 0; }
.mock-row b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row small { color: var(--slate); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.hi { background: #dcfce7; color: #15803d; } .pill.mid { background: #e0ebff; color: var(--blue); } .pill.ai { background: #ede9fe; color: #6d28d9; }
.mock-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f5f3ff; color: #5b21b6; font-size: 13px; }

section.block { padding: 96px 0; }
section.alt { background: #f8fafc; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.block h2 { font-size: 40px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 700; max-width: 760px; }
.block .intro { color: var(--slate); font-size: 17px; line-height: 1.7; max-width: 680px; margin: 0 0 46px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15, 23, 42, .08); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: #eef4ff; color: var(--blue); }
.card .ico.ai { background: #f3efff; color: var(--violet); }
.card h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; letter-spacing: -.01em; }
.card p { color: var(--slate); font-size: 15px; line-height: 1.65; margin: 0; }

.ai-band { background: var(--grad); color: #fff; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.ai-band h2 { color: #fff; margin: 0 0 12px; font-size: 34px; }
.ai-band p { color: rgba(255, 255, 255, .88); line-height: 1.7; margin: 0; }
.ai-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-item { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 18px; }
.ai-item b { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.ai-item span { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.55; }

.ext { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.ext::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: -360px; border-radius: 50%;
               background: radial-gradient(circle, rgba(47, 111, 235, .28), transparent 62%); }
.ext .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.ext h2 { color: #fff; }
.ext .intro { color: #cbd5e1; margin-bottom: 30px; }
.ext .kicker { color: #b794ff; }
.ext ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.ext li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: #e2e8f0; font-size: 15.5px; line-height: 1.55; }
.ext li .dot { width: 28px; height: 28px; border-radius: 8px; background: rgba(110, 160, 255, .16); color: #8fb8ff; display: grid; place-items: center; }
.browsers { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: var(--slate-2); font-size: 13.5px; align-items: center; }
.browsers span { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #e2e8f0; }

/* maquette navigateur + panneau de l extension */
.browser { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); color: var(--ink); }
.browser .url { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--slate); }
.browser .url .addr { flex: 1; background: #fff; border-radius: 999px; padding: 6px 14px; }
.browser .url img { width: 20px; height: 20px; }
.browser .page { position: relative; padding: 18px; min-height: 330px; background: #fafbfc; }
.listing { display: grid; gap: 10px; max-width: 64%; }
.listing div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.listing b { font-size: 13.5px; }
.listing small { display: block; color: var(--slate); margin-top: 3px; }
.panel { position: absolute; right: 16px; bottom: 16px; width: 44%; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 23, 42, .22); overflow: hidden; font-size: 12.5px; }
.panel .ph { background: var(--grad); color: #fff; padding: 9px 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel .ph img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.panel .pb { padding: 12px; }
.panel .pbtn { display: block; text-align: center; border-radius: 8px; padding: 8px; margin-top: 7px; border: 1px solid var(--line); font-weight: 600; }
.panel .pbtn.p { background: var(--blue); color: #fff; border-color: var(--blue); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
                background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--slate); line-height: 1.65; font-size: 15px; }

.final { text-align: center; padding: 100px 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: auto 0 -300px; margin: auto; width: 900px; height: 600px; border-radius: 50%;
                 background: radial-gradient(circle, rgba(124, 58, 237, .35), transparent 62%); }
.final .wrap { position: relative; }
.final h2 { font-size: 42px; letter-spacing: -.025em; margin: 0 0 14px; }
.final p { color: #cbd5e1; font-size: 17px; margin: 0 0 30px; }

footer.site { background: #0b1120; color: var(--slate-2); font-size: 13.5px; padding: 30px 0; }
footer.site .wrap { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 960px) {
    .hero .wrap, .ext .wrap, .ai-band { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: 40px; }
    .cards, .cards.two, .steps, .ai-list { grid-template-columns: minmax(0, 1fr); }
    .block h2 { font-size: 30px; }
    .nav .links { display: none; }
    .nav .cta { margin-left: auto; }
    .ai-band { padding: 28px; }
    section.block { padding: 64px 0; }
}
@media (max-width: 520px) {
    .nav .cta .login { display: none; }
    .hero { padding: 56px 0 72px; }
    .hero h1 { font-size: 34px; }
    .panel { position: static; width: auto; margin-top: 14px; }
    .listing { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.brand b { font-weight: 700; }

/* Une grille ne doit jamais s elargir au-dela de l ecran a cause d un texte insecable. */
.hero .wrap > *, .ext .wrap > *, .ai-band > *, .cards > *, .steps > *, .ai-list > * { min-width: 0; }
.mock-row .pill { flex-shrink: 0; }
@media (max-width: 520px) { .hero .actions .btn { width: 100%; } .nav .wrap { gap: 12px; } .brand { font-size: 18px; } }
@media (max-width: 900px) { .auth .auth-side .pitch { display: none !important; } }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: 0 24px 60px rgba(47, 111, 235, .18); }
.price-card .badge-top { position: absolute; top: -13px; left: 26px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.price-card h3 { margin: 0 0 4px; font-size: 20px; }
.price-card .pitch { color: var(--slate); font-size: 14.5px; margin: 0 0 18px; }
.price-card .amount { font-size: 38px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; }
.price-card .amount small { font-size: 15px; font-weight: 500; color: var(--slate); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; font-size: 14.5px; }
.price-card li { display: flex; gap: 9px; align-items: flex-start; }
.price-card li svg { color: var(--ok); margin-top: 2px; }
.btn-outline { border: 1px solid #cbd5e1; color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 960px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
.price-card ul { align-content: start; }
section[id] { scroll-margin-top: 70px; }
