:root {
    --green: #12A150;
    --green-dark: #0B7A3B;
    --green-soft: #E3F6EA;
    --yellow: #FFC400;
    --yellow-dark: #8A6700;
    --yellow-soft: #FFF5CC;
    --red: #E5383B;
    --red-dark: #B42326;
    --red-soft: #FDE4E5;
    --pink: #FF4D8D;
    --pink-dark: #C2185B;
    --pink-soft: #FFE3EE;
    --black: #0B0B0B;

    --primary: var(--green);
    --primary-dark: var(--green-dark);
    --primary-soft: var(--green-soft);
    --accent: var(--yellow);

    --text: #111111;
    --muted: #5F6461;
    --border: #E6E8E4;
    --bg: #FAFAF7;
    --surface: #FFFFFF;

    --danger: var(--red);
    --danger-soft: var(--red-soft);
    --success: var(--green-dark);
    --success-soft: var(--green-soft);
    --info-soft: var(--yellow-soft);

    --radius: 10px;
    --shadow: 0 1px 3px rgba(11, 11, 11, .06), 0 1px 2px rgba(11, 11, 11, .04);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-title: 'Sora', 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
code { font-family: ui-monospace, monospace; font-size: .88em; background: var(--bg); border: 1px solid var(--border); padding: .05rem .35rem; border-radius: .35rem; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.main { padding: 2rem 1.25rem 4rem; min-height: calc(100vh - 300px); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: -.25rem; }



.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }

.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.topnav { display: flex; align-items: center; gap: 1.4rem; }
.topnav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.topnav a.active, .topnav a:hover { color: var(--black); text-decoration: none; }
.topnav a.active { box-shadow: inset 0 -2px 0 var(--yellow); }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-word { font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; color: var(--black); letter-spacing: -.03em; }
.brand-word span {
    background: linear-gradient(90deg, var(--green) 0%, #D9A300 55%, var(--red) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-light .brand-word { color: #070606; }
.brand-light .brand-word span { background: linear-gradient(90deg, #3DDC84 0%, var(--yellow) 55%, #FF6B6E 100%); -webkit-background-clip: text; background-clip: text; }

/* Footer clair */
.footer { background: var(--surface); color: var(--muted); border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 2.5rem 1.25rem 1.5rem; }
.footer-brand p { margin-top: .8rem; max-width: 32ch; font-size: .92rem; }
.footer h4 { color: var(--black); font-size: .95rem; margin-bottom: .8rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .92rem; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--black); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.15rem; border-radius: var(--radius); border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
    background: none; color: inherit; font-family: var(--font); transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-dark { background: var(--black); color: #fff !important; }
.btn-dark:hover { background: #2A2A2A; }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--black); }
.btn-secondary:hover { border-color: var(--black); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--black); background: var(--bg); }
.btn-link { padding: 0; color: var(--green-dark); font-weight: 600; }
.btn-google { background: var(--surface); border-color: var(--border); color: var(--black); }
.btn-google:hover { border-color: var(--black); }
.btn-sm { padding: .42rem .85rem; font-size: .86rem; }
.btn-block { width: 100%; }
.inline-form { display: inline; margin: 0; }

.alert { padding: .85rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid transparent; }
.alert p { margin: .25rem 0 0; }
.alert-success { background: var(--green-soft); color: var(--green-dark); border-color: #BFE8CF; }
.alert-error { background: var(--red-soft); color: var(--red-dark); border-color: #F6C1C2; }
.alert-info { background: var(--yellow-soft); color: var(--yellow-dark); border-color: #FFE38A; }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.25rem;
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card-header h2 { margin: 0; }

.badge {
    display: inline-block; padding: .18rem .6rem; border-radius: 999px;
    font-size: .74rem; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--border);
}
.badge-success { background: var(--green-soft); color: var(--green-dark); border-color: transparent; }
.badge-warning { background: var(--yellow-soft); color: var(--yellow-dark); border-color: transparent; }
.badge-danger { background: var(--red-soft); color: var(--red-dark); border-color: transparent; }
.badge-pink { background: var(--pink-soft); color: var(--pink-dark); border-color: transparent; }

.form { display: flex; flex-direction: column; gap: .35rem; }
.form label { font-weight: 600; font-size: .9rem; margin-top: .6rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=tel], .form select {
    width: 100%; padding: .68rem .8rem; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 1rem; background: var(--surface); color: var(--text); font-family: var(--font);
}
.form input:focus, .form select:focus { outline: 3px solid var(--yellow-soft); border-color: var(--black); }
.form .invalid { border-color: var(--red); }
.form button[type=submit] { margin-top: 1rem; }
.field-error { color: var(--red-dark); font-size: .85rem; margin: 0; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.checkbox input { margin-top: .3rem; accent-color: var(--green); }
.input-group { display: flex; gap: .5rem; }
.input-group select { max-width: 45%; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.input-prefix span { padding: 0 .6rem; color: var(--muted); }
.input-prefix input { border: none !important; }
.form-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1rem; }
.code-input { font-size: 1.6rem !important; letter-spacing: .4rem; text-align: center; font-weight: 700; }

.auth-card {
    max-width: 440px; margin: 1rem auto; background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; box-shadow: var(--shadow); border-top: 4px solid var(--black);
}
.auth-footer { text-align: center; margin-top: 1.25rem; color: var(--muted); }
.separator { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1.25rem 0 .5rem; }
.separator::before, .separator::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.verify-actions { display: flex; justify-content: space-between; margin-top: 1rem; }

.hero { padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.4rem; max-width: 720px; }
.hero-actions { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.features, .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.page { max-width: 760px; }
.steps li { margin-bottom: .4rem; }

.page-hero { text-align: center; max-width: 720px; margin: 1rem auto 2.5rem; }
.page-hero .lead { margin: .8rem auto 0; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--pink-dark); background: var(--pink-soft); padding: .25rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; margin-bottom: 1.25rem; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.price-card.featured { border: 2px solid var(--black); box-shadow: 0 18px 40px -22px rgba(11, 11, 11, .35); }
.price-card .checklist { flex: 1; }
.price { font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--black); margin: 0; }
.faq { max-width: 760px; margin: 3rem auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .7rem; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

.step-card { text-align: center; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--black); color: var(--yellow); font-family: var(--font-title); font-weight: 700; margin-bottom: .9rem;
}
.dev-grid { margin-top: 2rem; align-items: start; }
.code { background: var(--black); color: #E8E8E3; border-radius: 14px; padding: 1.25rem 1.4rem; font-family: ui-monospace, monospace; font-size: .82rem; line-height: 1.7; overflow-x: auto; }
.code .k { color: var(--yellow); }
.code .c { color: #7C807B; }
.cta-band { background: var(--black); color: #fff; border-radius: 18px; text-align: center; padding: 2.5rem 1.5rem; margin-top: 2.5rem; }
.cta-band p { color: #C9CCC7; }

.shell { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; }
.sidenav { display: flex; flex-direction: column; gap: .25rem; position: sticky; top: 5.5rem; }
.sidenav a { padding: .55rem .8rem; border-radius: var(--radius); color: var(--muted); font-weight: 500; }
.sidenav a:hover { background: var(--surface); color: var(--black); text-decoration: none; }
.sidenav a.active { background: var(--black); color: #fff; }
.page-header { margin-bottom: 1.5rem; }
.page-header-row { display: flex; justify-content: space-between; align-items: center; }
.identity { display: flex; gap: 1rem; align-items: center; }

.user-chip { display: flex; align-items: center; gap: .6rem; }
.avatar {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 50%; background: var(--black); color: var(--yellow); font-weight: 700; font-size: .85rem;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }
.user-name { font-weight: 600; }

.stat { display: flex; flex-direction: column; gap: .25rem; border-top: 4px solid var(--green); }
.grid-3 .stat:nth-child(2) { border-top-color: var(--yellow); }
.grid-3 .stat:nth-child(3) { border-top-color: var(--red); }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-value { font-family: var(--font-title); font-size: 1.8rem; font-weight: 700; }
.stat-text { font-weight: 600; }

.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.list-item .muted { margin-left: .5rem; font-size: .9rem; }
.empty-state { text-align: center; padding: 1.5rem 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .4rem 0 .4rem 1.8rem; position: relative; color: var(--muted); }
.checklist li::before { content: "○"; position: absolute; left: 0; }
.checklist li.done { color: var(--text); }
.checklist li.done::before { content: "✓"; color: var(--green); font-weight: 700; }

.details { display: grid; grid-template-columns: 180px 1fr; gap: .6rem 1rem; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

.error-card { text-align: center; }
.error-status { font-family: var(--font-title); font-size: 3.2rem; font-weight: 800; color: var(--red); margin: 0; }
.field-errors { text-align: left; color: var(--red-dark); }
.trace { font-size: .8rem; color: var(--muted); margin-top: 1rem; }

@media (max-width: 860px) {
    .features, .grid-3, .grid-2, .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .shell { grid-template-columns: 1fr; }
    .sidenav { flex-direction: row; overflow-x: auto; position: static; }
    .hero h1 { font-size: 1.8rem; }
    .details { grid-template-columns: 1fr; }
    .user-name { display: none; }
    .topbar-inner { height: auto; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }
    .topnav { gap: 1rem; overflow-x: auto; width: 100%; padding-bottom: .2rem; }
    .topnav a { white-space: nowrap; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .brand-word { font-size: 1.2rem; }
}