/* =========================================================
   Prima Santé — design tokens & base
   ========================================================= */
:root {
    --primary: #1762ff;
    --primary-dark: #0b3fb8;
    --primary-soft: #e8f0ff;
    --accent: #16d39a;
    --accent-dark: #0fa078;
    --ink: #0e1a36;
    --ink-soft: #3b4a6b;
    --muted: #6b7896;
    --bg: #ffffff;
    --bg-alt: #f5f8ff;
    --bg-soft: #f9fbff;
    --line: #e6ecf7;
    --shadow-sm: 0 1px 2px rgba(14, 26, 54, 0.06);
    --shadow-md: 0 6px 24px rgba(14, 26, 54, 0.08);
    --shadow-lg: 0 24px 64px rgba(14, 26, 54, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --grad: linear-gradient(135deg, #1762ff 0%, #16d39a 100%);
    --grad-soft: linear-gradient(135deg, #e8f0ff 0%, #e3fbf2 100%);
    --container: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.btn--primary {
    background: var(--grad);
    color: white;
    box-shadow: 0 8px 20px rgba(23, 98, 255, 0.28);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(23, 98, 255, 0.36);
}

.btn--ghost {
    background: white;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--lg {
    padding: 16px 28px;
    font-size: 16px;
}

.btn--full { width: 100%; }

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
    background: var(--ink);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}
.topbar__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 38px;
    flex-wrap: wrap;
}
.topbar svg { vertical-align: -2px; margin-right: 4px; }
.topbar__sep { opacity: 0.4; }
.topbar a { color: white; font-weight: 600; }
.topbar a:hover { color: var(--accent); }

/* =========================================================
   Header
   ========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header__inner {
    display: flex;
    align-items: center;
    height: 76px;
    gap: 32px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.logo__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--grad);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(23, 98, 255, 0.3);
}
.logo__accent { color: var(--primary); margin-left: 2px; }
.logo--light { color: white; }
.logo--light .logo__accent { color: var(--accent); }

.nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}
.nav a {
    font-weight: 500;
    color: var(--ink-soft);
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
}
.nav a:hover { color: var(--primary); }

.header__cta { margin-left: auto; }
.nav + .header__cta { margin-left: 0; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 0;
    background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(at 15% 10%, rgba(23, 98, 255, 0.10), transparent 50%),
        radial-gradient(at 85% 30%, rgba(22, 211, 154, 0.10), transparent 50%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-bottom: 80px;
}
.hero__content h1 {
    font-size: clamp(40px, 5.2vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 18px 0 22px;
}
.hero__lead {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 540px;
    margin-bottom: 32px;
}
.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.hero__bullets {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
}
.check {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 6px;
    vertical-align: -3px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(22, 211, 154, 0.2);
}

/* Hero visual */
.hero__visual {
    position: relative;
    height: 520px;
}
.hero__photo {
    position: absolute;
    inset: 20px;
    border-radius: 32px;
    background: white;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__photo-blob {
    position: absolute;
    inset: -40px;
    background: var(--grad-soft);
    filter: blur(40px);
    opacity: 0.7;
}
.hero__photo-inner {
    position: relative;
    width: 80%;
    max-width: 360px;
}

.card-stat {
    position: absolute;
    background: white;
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
    min-width: 220px;
}
.card-stat--1 { top: 40px; left: -32px; }
.card-stat--2 { bottom: 60px; right: -24px; }
.card-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.card-stat__icon--green {
    background: rgba(22, 211, 154, 0.12);
    color: var(--accent);
}
.card-stat__value { font-weight: 800; font-size: 22px; line-height: 1; }
.card-stat__label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Hero trust */
.hero__trust {
    border-top: 1px solid var(--line);
    background: white;
    padding: 20px 0;
}
.hero__trust-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.trust-logos {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}
.trust-logos span {
    color: var(--ink-soft);
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.55;
    font-style: italic;
}

/* =========================================================
   Stats band
   ========================================================= */
.stats {
    background: var(--ink);
    color: white;
    padding: 56px 0;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.stats__item { text-align: center; }
.stats__num {
    font-size: 36px;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.stats__label { color: rgba(255,255,255,0.7); font-size: 14px; }

/* =========================================================
   Sections (shared)
   ========================================================= */
.section {
    padding: 110px 0;
}
.section--alt { background: var(--bg-alt); }

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section__head h2 {
    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.section__head p {
    font-size: 17px;
    color: var(--ink-soft);
}

/* =========================================================
   Garanties cards
   ========================================================= */
.garanties {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.g-card {
    position: relative;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.g-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.g-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.g-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}
.g-card p { color: var(--ink-soft); font-size: 15px; }

.g-card--featured {
    background: var(--grad);
    color: white;
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(23,98,255,0.25);
}
.g-card--featured p { color: rgba(255,255,255,0.92); }
.g-card--featured .g-card__icon {
    background: rgba(255,255,255,0.18);
    color: white;
}
.g-card__tag {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255,255,255,0.18);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.price {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price__head h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.price__sub { color: var(--muted); font-size: 14px; }
.price__amount {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.price__from { color: var(--muted); font-size: 13px; flex-basis: 100%; }
.price__big {
    font-size: 48px;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
    line-height: 1;
}
.price__per { color: var(--muted); font-size: 15px; }
.price__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 15px;
    flex: 1;
}
.price__list li::first-letter { color: var(--accent); font-weight: 700; }

.price--featured {
    border-color: transparent;
    box-shadow: 0 20px 50px rgba(23,98,255,0.18);
    transform: translateY(-12px);
    background:
        linear-gradient(white, white) padding-box,
        var(--grad) border-box;
    border: 2px solid transparent;
}
.price--featured:hover { transform: translateY(-16px); }
.price__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(23,98,255,0.3);
}

/* =========================================================
   Engagements
   ========================================================= */
.engagements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.engagements__text h2 {
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 12px 0 18px;
}
.lead { font-size: 17px; color: var(--ink-soft); margin-bottom: 28px; }

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    color: var(--ink-soft);
    font-size: 15.5px;
}

.big-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.big-card hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.big-card__row {
    display: flex;
    gap: 20px;
    align-items: center;
}
.big-card__row strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}
.big-card__row p { color: var(--ink-soft); font-size: 14.5px; }
.ring {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: inset 0 0 0 4px rgba(23,98,255,0.15);
}
.ring--green {
    background: rgba(22,211,154,0.12);
    color: var(--accent);
    box-shadow: inset 0 0 0 4px rgba(22,211,154,0.15);
}
.ring--purple {
    background: #f0e7ff;
    color: #7d3cff;
    box-shadow: inset 0 0 0 4px rgba(125,60,255,0.15);
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.t-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.t-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.t-card__stars { color: #ffb547; font-size: 18px; letter-spacing: 2px; }
.t-card p { font-size: 16px; color: var(--ink); line-height: 1.55; flex: 1; }
.t-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.t-card__author strong { display: block; font-weight: 700; }
.t-card__author span { font-size: 13px; color: var(--muted); }
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.avatar--1 { background: linear-gradient(135deg, #ffd5d5, #ffb1b1); color: #b6184a; }
.avatar--2 { background: linear-gradient(135deg, #d4f3ff, #a3dfff); color: #0b6ea3; }
.avatar--3 { background: linear-gradient(135deg, #e3fbf2, #b0eed8); color: #0d7d5f; }

/* =========================================================
   CTA / Devis
   ========================================================= */
.cta {
    padding: 110px 0;
    background:
        radial-gradient(at 20% 0%, rgba(23,98,255,0.10), transparent 50%),
        radial-gradient(at 80% 100%, rgba(22,211,154,0.10), transparent 50%),
        var(--bg-alt);
}
.cta__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
.cta__text h2 {
    font-size: clamp(34px, 3.6vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}
.cta__text p { font-size: 17px; color: var(--ink-soft); margin-bottom: 28px; }
.cta__bullets {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
}

.cta__form {
    background: white;
    padding: 36px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cta__form h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}
.field input, .field select {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--ink);
    font-family: inherit;
    background: var(--bg-soft);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23,98,255,0.12);
    background: white;
}
.legal { font-size: 12px; color: var(--muted); text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.75);
    padding-top: 72px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}
.footer__brand p { margin: 16px 0 24px; max-width: 280px; }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s;
}
.socials a:hover { background: var(--primary); }

.footer__col h4 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.footer__col a {
    display: block;
    padding: 5px 0;
    color: rgba(255,255,255,0.7);
    font-size: 14.5px;
    transition: color 0.2s;
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    font-size: 13px;
}
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(255,255,255,0.55);
}
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer__legal a:hover { color: white; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .hero__inner,
    .engagements,
    .cta__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__visual { height: 420px; max-width: 480px; margin: 0 auto; width: 100%; }
    .nav { display: none; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .garanties, .pricing, .testimonials { grid-template-columns: 1fr; }
    .price--featured { transform: none; }
    .price--featured:hover { transform: translateY(-4px); }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .section { padding: 72px 0; }
    .cta { padding: 72px 0; }
}

@media (max-width: 560px) {
    .topbar__sep:nth-of-type(2),
    .topbar__inner span:nth-of-type(3) { display: none; }
    .header__inner { height: 64px; }
    .header__cta .btn { padding: 10px 16px; font-size: 14px; }
    .hero { padding-top: 40px; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
    .stats__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .card-stat--1 { left: 0; }
    .card-stat--2 { right: 0; }
    .field-row { grid-template-columns: 1fr; }
}

/* =========================================================
   AUTH PAGES (login)
   ========================================================= */
.auth-body {
    background: var(--bg-alt);
    min-height: 100vh;
}
.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Brand panel (left) */
.auth__brand {
    position: relative;
    background: var(--ink);
    color: white;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.auth__brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(at 20% 20%, rgba(23, 98, 255, 0.45), transparent 55%),
        radial-gradient(at 80% 80%, rgba(22, 211, 154, 0.35), transparent 55%);
    pointer-events: none;
}
.auth__brand > * { position: relative; z-index: 1; }

.grad-light {
    background: linear-gradient(135deg, #7ab1ff 0%, #5af1c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth__pitch h1 {
    font-size: clamp(32px, 3.4vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}
.auth__pitch p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    max-width: 460px;
}
.auth__bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

.auth__quote {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
}
.auth__quote p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.55;
    margin: 12px 0 16px;
}
.auth__quote .t-card__author {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Form panel (right) */
.auth__main {
    padding: 32px 64px;
    display: flex;
    flex-direction: column;
    background: white;
}
.auth__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.auth__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: color 0.2s;
}
.auth__back:hover { color: var(--primary); }

.logo--mini .logo__icon { width: 32px; height: 32px; border-radius: 10px; }
.logo--mini .logo__text { display: none; }

.auth__panel {
    flex: 1;
    max-width: 440px;
    width: 100%;
    margin: auto;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.auth__panel h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.auth__sub {
    color: var(--ink-soft);
    margin-top: -8px;
    font-size: 15px;
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}
.field__label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.field__label-row label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.2s;
}
.link:hover { color: var(--primary-dark); }

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}
.checkbox input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line);
    border-radius: 5px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
}
.checkbox input:checked {
    background: var(--primary);
    border-color: var(--primary);
}
.checkbox input:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth__error {
    font-size: 13.5px;
    color: #b91c4a;
    background: #ffe9ee;
    border: 1px solid #ffcfd8;
    border-radius: 10px;
    padding: 10px 14px;
}

.auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    margin: 4px 0;
}
.auth__divider::before,
.auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth__demo {
    margin-top: 8px;
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--ink-soft);
}
.auth__demo strong { color: var(--ink); font-size: 13px; }
.auth__demo code {
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12.5px;
    font-family: 'Inter', monospace;
    color: var(--primary);
}

.auth__legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 12.5px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.auth__lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.auth__lock svg { color: var(--accent); }

@media (max-width: 980px) {
    .auth { grid-template-columns: 1fr; }
    .auth__brand { padding: 40px 32px; min-height: auto; }
    .auth__brand::before { opacity: 0.6; }
    .auth__quote { display: none; }
    .auth__main { padding: 24px 32px 40px; }
}
@media (max-width: 560px) {
    .auth__brand { padding: 32px 24px; }
    .auth__main { padding: 16px 20px 32px; }
    .auth__panel h2 { font-size: 26px; }
    .auth__legal { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* =========================================================
   APP / DASHBOARD (espace adhérent)
   ========================================================= */
.app-body { background: var(--bg-alt); }

.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.app__sidebar {
    background: white;
    border-right: 1px solid var(--line);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.app__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}
.app__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: background 0.15s, color 0.15s;
}
.app__nav a:hover {
    background: var(--bg-alt);
    color: var(--ink);
}
.app__nav a.active {
    background: var(--grad);
    color: white;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(23, 98, 255, 0.25);
}
.app__nav a.active svg { color: white; }
.app__nav-badge {
    margin-left: auto;
    background: #ffcf3d;
    color: #6a4500;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
}
.app__nav a.active .app__nav-badge { background: rgba(255,255,255,0.25); color: white; }

.app__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-soft);
    border-radius: 14px;
    border: 1px solid var(--line);
}
.app__user-info {
    flex: 1;
    min-width: 0;
}
.app__user-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app__user-info span {
    font-size: 12px;
    color: var(--muted);
}
.app__logout {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    flex-shrink: 0;
    transition: all 0.15s;
}
.app__logout:hover {
    color: #b91c4a;
    border-color: #ffcfd8;
    background: #ffe9ee;
}

/* Main */
.app__main {
    padding: 32px 40px 64px;
    max-width: 1280px;
    width: 100%;
}

.app__topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.app__topbar h1 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-top: 6px;
}
.app__topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn__dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d6d;
    border: 2px solid white;
}
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--white {
    background: white;
    color: var(--primary);
}
.btn--white:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Welcome banner */
.welcome {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.welcome__text h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 12px 0 8px;
    line-height: 1.25;
    letter-spacing: -0.015em;
}
.welcome__text p {
    color: var(--ink-soft);
    margin-bottom: 20px;
    max-width: 480px;
}
.welcome__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.welcome__visual {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stat cards */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}
.ds {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ds:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ds__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ds__icon--green { background: rgba(22,211,154,0.12); color: var(--accent); }
.ds__icon--orange { background: #fff1d6; color: #d97a00; }
.ds__icon--purple { background: #f0e7ff; color: #7d3cff; }
.ds__icon--blue { background: var(--primary-soft); color: var(--primary); }
.ds__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds__label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.ds__value {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.ds__delta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
.ds__delta--up { color: var(--accent-dark); }

/* Two-column dashboard grid */
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}
.dash-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.panel__head h3 {
    font-size: 17px;
    font-weight: 700;
}
.panel--accent {
    background: var(--grad);
    color: white;
    border-color: transparent;
}
.panel--accent h3 { color: white; margin-bottom: 8px; }
.panel--accent p { color: rgba(255,255,255,0.9); margin-bottom: 16px; font-size: 14.5px; }

/* Data table */
.data-table-wrap { overflow-x: auto; margin: 0 -8px; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th {
    text-align: left;
    padding: 10px 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line);
}
.data-table td {
    padding: 16px 8px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--bg-soft); }

.cell-soin {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cell-soin strong {
    display: block;
    font-weight: 600;
    font-size: 14px;
}
.cell-soin span {
    font-size: 12.5px;
    color: var(--muted);
}
.dot-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dot-icon--blue { background: var(--primary-soft); color: var(--primary); }
.dot-icon--green { background: rgba(22,211,154,0.14); color: var(--accent-dark); }
.dot-icon--purple { background: #f0e7ff; color: #7d3cff; }

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-status--ok { background: rgba(22,211,154,0.14); color: var(--accent-dark); }
.badge-status--ok::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.badge-status--pending { background: #fff1d6; color: #b06400; }
.badge-status--pending::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffaa1f;
}

/* Tiers payant card */
.card-tp {
    background: var(--grad);
    border-radius: 16px;
    padding: 22px;
    color: white;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(23, 98, 255, 0.25);
}
.card-tp::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.card-tp__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.card-tp__brand {
    font-weight: 800;
    font-size: 16px;
}
.card-tp__chip {
    width: 32px;
    height: 24px;
    background: linear-gradient(135deg, #ffd068, #f5b423);
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.card-tp__name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}
.card-tp__row {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.card-tp__row > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.card-tp__row span {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}
.card-tp__row strong {
    font-size: 14px;
    font-weight: 700;
}
.card-tp__valid {
    margin-top: 16px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
}

/* Quick links */
.quick-links {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.quick-links li + li { border-top: 1px solid var(--line); }
.quick-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    color: var(--ink);
    font-weight: 500;
    font-size: 14.5px;
    transition: color 0.15s;
}
.quick-links a:hover { color: var(--primary); }
.ql-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ql-arrow {
    margin-left: auto;
    color: var(--muted);
    font-weight: 600;
    transition: transform 0.15s;
}
.quick-links a:hover .ql-arrow { transform: translateX(4px); color: var(--primary); }

/* Dashboard responsive */
@media (max-width: 1100px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
    .app { grid-template-columns: 1fr; }
    .app__sidebar {
        position: relative;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 16px 20px;
        gap: 16px;
        overflow-x: auto;
    }
    .app__sidebar > .logo { flex-shrink: 0; }
    .app__nav {
        flex-direction: row;
        flex: 1;
        gap: 6px;
        overflow-x: auto;
        white-space: nowrap;
    }
    .app__nav a { flex-shrink: 0; padding: 8px 12px; font-size: 13.5px; }
    .app__nav a span,
    .app__nav-badge { display: none; }
    .app__user { flex-shrink: 0; padding: 8px 12px; }
    .app__user-info { display: none; }
    .app__main { padding: 24px 20px 48px; }
    .welcome { grid-template-columns: 1fr; }
    .welcome__visual { display: none; }
}
@media (max-width: 560px) {
    .dash-stats { grid-template-columns: 1fr; }
    .app__topbar h1 { font-size: 26px; }
}
