/* ============================================================================
   Scan Immo - Design System v2
   Charte : Cabinet d analyse immobiliere moderne
   Palette : Vert profond / Or laiton / Fond parchemine
   ============================================================================ */

/* ===== TOKENS ===== */
:root {
    --green-900: #0a2e1f;
    --green-800: #0f3d2e;
    --green-700: #1a5240;
    --green-600: #1f5f4a;
    --green-500: #2a7d5f;
    --green-400: #48a07e;
    --green-100: #e8f0ec;
    --green-50: #f0f5f2;

    --gold-700: #8c7340;
    --gold-600: #a68b52;
    --gold-500: #c8a96a;
    --gold-400: #d4bd88;
    --gold-300: #e0d1a6;
    --gold-100: #f5f0e0;
    --gold-50: #faf8f0;

    --ink: #1c1c1c;
    --ink-70: #4a4a4a;
    --ink-50: #6b6b6b;
    --ink-30: #9a9a9a;
    --ink-15: #c8c8c8;
    --ink-08: #e0e0e0;
    --ink-04: #eeeeee;
    --ink-02: #f5f5f5;

    --bg: #f7f8f6;
    --bg-card: #ffffff;
    --bg-warm: #fdfcf9;

    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    --shadow-sm: 0 1px 3px rgba(15, 61, 46, .06);
    --shadow-md: 0 4px 16px rgba(15, 61, 46, .08);
    --shadow-lg: 0 8px 32px rgba(15, 61, 46, .10);
    --shadow-xl: 0 16px 48px rgba(15, 61, 46, .12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;

    --ease: cubic-bezier(.4, 0, .2, 1);

    /* Legacy aliases pour compatibilite */
    --primary: #0f3d2e;
    --primary-dark: #0a2e1f;
    --primary-light: #1a5240;
    --secondary: #c8a96a;
    --secondary-light: #d4bd88;
    --light: #f7f8f6;
    --dark: #1c1c1c;
    --border: #e0e0e0;
    --info: #2a7d5f;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--ink-08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .92);
}

.navbar>.container,
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    width: 100%;
}

.logo a,
.logo {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--green-800);
    text-decoration: none;
    letter-spacing: -.3px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--green-800);
}

.logo a:hover {
    color: var(--green-700);
    -webkit-text-fill-color: var(--green-700);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    flex: 1;
    margin-left: 3rem;
}

.nav-menu a {
    color: var(--ink-50);
    text-decoration: none;
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .01em;
    transition: color .25s var(--ease);
    position: relative;
    padding: 4px 0;
}

.nav-menu a:hover {
    color: var(--green-800);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-400);
    border-radius: 1px;
    transition: width .3s var(--ease);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: .75rem;
    flex-shrink: 0;
    align-items: center;
}

/* ===== AVATAR + DROPDOWN ===== */
.avatar-wrapper {
    position: relative;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-800);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .88rem;
    font-family: var(--font-sans);
    cursor: pointer;
    user-select: none;
    border: none;
    padding: 0;
    transition: box-shadow .2s var(--ease);
}

.avatar:hover,
.avatar:focus-visible {
    box-shadow: 0 0 0 3px rgba(15, 61, 46, .2);
    outline: none;
}

.avatar-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: .4rem 0;
    z-index: 200;
}

.avatar-dropdown.open {
    display: block;
    animation: fadeIn .15s var(--ease);
}

.avatar-dropdown a {
    display: block;
    padding: .65rem 1.15rem;
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-70);
    text-decoration: none;
    transition: background .15s var(--ease), color .15s var(--ease);
}

.avatar-dropdown a:hover {
    background: var(--green-50);
    color: var(--green-800);
}

.avatar-dropdown__logout {
    border-top: 1px solid var(--ink-04);
    margin-top: .25rem;
    padding-top: .65rem;
    color: var(--danger) !important;
}

.avatar-dropdown__logout:hover {
    background: #fef2f2 !important;
    color: var(--danger) !important;
}

.avatar-dropdown__admin {
    border-top: 1px solid var(--ink-04);
    margin-top: .25rem;
    padding-top: .65rem;
    color: #6366f1 !important;
    font-weight: 500;
}

.avatar-dropdown__admin:hover {
    background: #eef2ff !important;
    color: #4f46e5 !important;
}

/* ===== NAVBAR PREMIUM (homepage dark) ===== */
.navbar--premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(5, 14, 10, .22);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    box-shadow: none;
    transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease),
        backdrop-filter .5s var(--ease);
}

/* Glow ambiant ultra-subtil derrière la navbar */
.navbar--premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 600px 120px at 50% 100%, rgba(72, 160, 126, .02) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    opacity: 1;
    transition: opacity .5s var(--ease);
}

.navbar--premium.navbar--scrolled::before {
    opacity: 0;
}

.navbar--premium .logo a,
.navbar--premium .logo,
.navbar--premium .nav-menu a,
.navbar--premium .nav-burger span,
.navbar--premium .avatar,
.navbar--premium .btn-primary {
    transition: color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease),
        box-shadow .35s var(--ease), -webkit-text-fill-color .35s var(--ease), text-shadow .35s var(--ease),
        opacity .35s var(--ease);
}

.navbar--premium .logo a,
.navbar--premium .logo {
    color: rgba(255, 255, 255, .95);
    -webkit-text-fill-color: rgba(255, 255, 255, .95);
    font-size: 1.5rem;
    letter-spacing: -.02em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

.navbar--premium .logo a:hover {
    color: rgba(255, 255, 255, .7);
    -webkit-text-fill-color: rgba(255, 255, 255, .7);
}

.navbar--premium .nav-menu {
    gap: 2.4rem;
}

.navbar--premium .nav-menu a {
    color: rgba(255, 255, 255, .68);
    font-size: .88rem;
    letter-spacing: .015em;
}

.navbar--premium .nav-menu a:hover {
    color: #fff;
}

.navbar--premium .nav-menu a::after {
    background: rgba(255, 255, 255, .4);
    height: 1.5px;
    opacity: .7;
}

.navbar--premium .btn-primary {
    background: rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .88rem;
    padding: .6rem 1.4rem;
    border-radius: 100px;
}

.navbar--premium .btn-primary:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
}

.navbar--premium .avatar {
    background: rgba(72, 160, 126, .2);
    border: 1px solid rgba(72, 160, 126, .28);
    color: #fff;
}

.navbar--premium .avatar:hover,
.navbar--premium .avatar:focus-visible {
    box-shadow: 0 0 0 3px rgba(72, 160, 126, .15);
    background: rgba(72, 160, 126, .3);
}

.navbar--premium .avatar-dropdown {
    background: rgba(10, 24, 18, .96);
    border: 1px solid rgba(255, 255, 255, .07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .03);
}

.navbar--premium .avatar-dropdown a {
    color: rgba(255, 255, 255, .6);
}

.navbar--premium .avatar-dropdown a:hover {
    background: rgba(72, 160, 126, .07);
    color: rgba(255, 255, 255, .9);
}

.navbar--premium .avatar-dropdown__logout {
    border-top-color: rgba(255, 255, 255, .06);
    color: #f87171 !important;
}

.navbar--premium .avatar-dropdown__logout:hover {
    background: rgba(248, 113, 113, .06) !important;
    color: #fca5a5 !important;
}

.navbar--premium .avatar-dropdown__admin {
    border-top-color: rgba(255, 255, 255, .06);
    color: #818cf8 !important;
}

.navbar--premium .avatar-dropdown__admin:hover {
    background: rgba(129, 140, 248, .06) !important;
    color: #a5b4fc !important;
}

/* ===== NAVBAR PREMIUM — SCROLLED (fond clair) ===== */
.navbar--premium.navbar--scrolled {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 4px 16px rgba(0, 0, 0, .025);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.navbar--premium.navbar--scrolled .logo a,
.navbar--premium.navbar--scrolled .logo {
    color: var(--green-800);
    -webkit-text-fill-color: var(--green-800);
    text-shadow: none;
    font-size: 1.45rem;
    letter-spacing: -.3px;
}

.navbar--premium.navbar--scrolled .logo a:hover {
    color: var(--green-700);
    -webkit-text-fill-color: var(--green-700);
}

.navbar--premium.navbar--scrolled .nav-menu {
    gap: 2rem;
}

.navbar--premium.navbar--scrolled .nav-menu a {
    color: var(--ink-50);
    font-size: .9rem;
    letter-spacing: .01em;
}

.navbar--premium.navbar--scrolled .nav-menu a:hover {
    color: var(--green-800);
}

.navbar--premium.navbar--scrolled .nav-menu a::after {
    background: var(--green-400);
    height: 2px;
    opacity: 1;
}

.navbar--premium.navbar--scrolled .btn-primary {
    background: var(--green-800);
    color: #fff;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--shadow-sm);
    border-radius: 100px;
    padding: .6rem 1.4rem;
    font-size: .9rem;
}

.navbar--premium.navbar--scrolled .btn-primary:hover {
    background: var(--green-700);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.navbar--premium.navbar--scrolled .avatar {
    background: var(--green-800);
    border: none;
}

.navbar--premium.navbar--scrolled .avatar:hover,
.navbar--premium.navbar--scrolled .avatar:focus-visible {
    box-shadow: 0 0 0 3px rgba(15, 61, 46, .2);
    background: var(--green-700);
}

.navbar--premium.navbar--scrolled .avatar-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--shadow-lg);
}

.navbar--premium.navbar--scrolled .avatar-dropdown a {
    color: var(--ink-70);
}

.navbar--premium.navbar--scrolled .avatar-dropdown a:hover {
    background: var(--green-50);
    color: var(--green-800);
}

.navbar--premium.navbar--scrolled .avatar-dropdown__logout {
    border-top-color: var(--ink-04);
    color: var(--danger) !important;
}

.navbar--premium.navbar--scrolled .avatar-dropdown__logout:hover {
    background: #fef2f2 !important;
    color: var(--danger) !important;
}

.navbar--premium.navbar--scrolled .avatar-dropdown__admin {
    border-top-color: var(--ink-04);
    color: #6366f1 !important;
}

.navbar--premium.navbar--scrolled .avatar-dropdown__admin:hover {
    background: #eef2ff !important;
    color: #4f46e5 !important;
}

.navbar--premium.navbar--scrolled .nav-burger span {
    background: var(--ink-50);
}

.navbar--premium.navbar--scrolled .nav-burger:hover {
    background: var(--ink-04);
}

.navbar--premium.navbar--scrolled .nav-menu.nav-menu--open {
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--ink-08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.navbar--premium.navbar--scrolled .nav-menu a:hover {
    background: var(--green-50);
}

/* ===== BURGER MENU ===== */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 7px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background .2s var(--ease);
}

.nav-burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ink-50);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
    transform-origin: center;
}

.nav-burger:hover {
    background: var(--ink-04);
}

.navbar--premium .nav-burger span {
    background: rgba(255, 255, 255, .7);
}

.navbar--premium .nav-burger:hover {
    background: rgba(255, 255, 255, .06);
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.nav-menu__msg {
    display: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1.6rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all .25s var(--ease);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: .01em;
    line-height: 1.4;
}

.btn-primary {
    background: var(--green-800);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--green-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--green-100);
    color: var(--green-900);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--green-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--green-700);
    color: var(--green-800);
}

.btn-outline:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-50);
    padding: .6rem 1rem;
}

.btn-ghost:hover {
    background: var(--ink-02);
    color: var(--ink);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: .9rem 2.4rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* ===== HERO ===== */
.hero {
    background: var(--green-800);
    color: #fff;
    padding: 5rem 2rem 4.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 80%, rgba(72, 160, 126, .06) 0%, transparent 100%),
        radial-gradient(ellipse 500px 300px at 80% 20%, rgba(255, 255, 255, .04) 0%, transparent 100%);
    pointer-events: none;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    background: rgba(72, 160, 126, .1);
    color: var(--green-400);
    border: 1px solid rgba(72, 160, 126, .2);
    border-radius: 99px;
    padding: .35rem 1rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
    text-align: left;
}

.hero h1 .accent {
    color: var(--green-400);
}

.hero-content>p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: left;
}

.hero-subtext {
    font-size: .82rem;
    color: rgba(255, 255, 255, .45);
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: left;
}

/* ===== HERO MOCKUP ===== */
.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-mockup {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    backdrop-filter: blur(8px);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1rem;
    background: rgba(0, 0, 0, .15);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
}

.mockup-title {
    font-size: .72rem;
    color: rgba(255, 255, 255, .5);
    margin-left: .5rem;
    font-weight: 500;
}

.mockup-body {
    padding: 1.25rem;
}

.mockup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mockup-row:last-child {
    border-bottom: none;
}

.mockup-label {
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
    font-weight: 500;
}

.mockup-value {
    font-size: .88rem;
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
}

.mockup-value--gold {
    color: var(--green-400);
    font-size: 1.05rem;
}

.mockup-score {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.score-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, .1);
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    display: block;
    height: 100%;
    background: var(--green-400);
    border-radius: 3px;
}

.score-num {
    font-size: .82rem;
    color: var(--green-400);
    font-weight: 600;
}

.mockup-tag {
    font-size: .75rem;
    padding: .2rem .65rem;
    border-radius: 99px;
    font-weight: 600;
}

.mockup-tag--low {
    background: rgba(16, 185, 129, .15);
    color: #6ee7b7;
}

/* ===== CTA BUTTONS ===== */
.cta-buttons {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: rgba(255, 255, 255, .95);
    color: var(--green-900);
    font-weight: 700;
}

.cta-buttons .btn-primary:hover {
    background: #fff;
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .35);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 2rem;
}

/* ===== FEATURES ===== */
.features {
    padding: 6rem 2rem 4.5rem;
    background: var(--bg);
    position: relative;
}

/* Hero → Features smooth transition */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(8, 29, 20, .04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.features__eyebrow {
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: .75rem;
}

.features h2,
.pricing h2,
.cta-section h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green-800);
    text-align: center;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}

.features>.container>p,
.pricing>.container>p {
    text-align: center;
    color: var(--ink-50);
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
    line-height: 1.65;
}

/* ── Hero layout : dominant gauche + side droit ── */
.feature-hero-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 1.5rem;
    align-items: stretch;
}

/* Side column : PLU + Risques empilées */
.feature-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Rangée tertiaire ── */
.feature-row-tertiary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.75rem;
}

/* ── Carte de base ── */
.feature-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, .02),
        0 2px 6px rgba(0, 0, 0, .03);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, .09);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, .03),
        0 6px 16px rgba(0, 0, 0, .05),
        0 14px 32px rgba(0, 0, 0, .04);
}

/* ================================================================
   DOMINANT — DVF (Analytical Engine)
   ================================================================ */
.feature-card--dominant {
    background: linear-gradient(175deg, #1a3329 0%, #152b22 50%, #11241c 100%);
    border: 1px solid rgba(255, 255, 255, .07);
    padding: 2.25rem 2.25rem 1.85rem 2.5rem;
    color: #fff;
    transform: scale(1.03);
    transform-origin: left center;
    z-index: 2;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, .06),
        0 4px 12px rgba(0, 0, 0, .06),
        0 16px 48px rgba(20, 40, 32, .12),
        0 40px 80px rgba(20, 40, 32, .08);
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* Glass highlight — top area */
.feature-card--dominant::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03) 0%, transparent 100%);
    pointer-events: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Left accent — refined */
.feature-card--dominant::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .04) 100%);
    border-radius: 0 2px 2px 0;
}

/* Stable anchor on hover */
.feature-card--dominant:hover {
    transform: scale(1.03) translateY(-1px);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, .07),
        0 6px 16px rgba(0, 0, 0, .08),
        0 20px 52px rgba(20, 40, 32, .14),
        0 44px 88px rgba(20, 40, 32, .1);
}

.feature-card--dominant:hover::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .06) 100%);
}

/* Top : icon + label/title inline */
.feature-card__top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .4rem;
}

.feature-card--dominant .feature-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .07);
    border-radius: 8px;
    box-shadow: none;
    flex-shrink: 0;
}

.feature-card--dominant .feature-label {
    color: rgba(255, 255, 255, .32);
    font-size: .52rem;
    letter-spacing: .14em;
    margin-bottom: .1rem;
}

.feature-card--dominant h3 {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .9);
    line-height: 1.25;
    margin-bottom: 0;
}

.feature-card--dominant>p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .32);
    opacity: 1;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* ─── DVF Data Panel — Luxury Surface ─── */
.dvf-panel {
    background: rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 1.1rem;
    position: relative;
    overflow: hidden;
}

/* Soft inner glow */
.dvf-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .015) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.dvf-panel__header {
    font-size: .48rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .2);
    padding: .6rem 1.1rem .35rem;
}

.dvf-panel__divider {
    font-size: .46rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .15);
    padding: .4rem 1.1rem .3rem;
}

.dvf-panel__footer {
    font-size: .48rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .14);
    padding: .35rem 1.1rem .5rem;
}

.dvf-data-grid {
    display: flex;
    flex-direction: column;
}

.dvf-data-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: .65rem 1.1rem;
    position: relative;
}

/* Alternating row shading */
.dvf-data-row--even {
    background: rgba(255, 255, 255, .01);
}

/* Primary row — the answer */
.dvf-data-row--primary {
    padding: 1rem 1.1rem;
}

.dvf-data-row--primary .dvf-data-row__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
    letter-spacing: .02em;
}

.dvf-data-row--primary .dvf-data-row__label {
    font-weight: 500;
    color: rgba(255, 255, 255, .3);
    font-size: .72rem;
}

.dvf-data-row__label {
    font-size: .68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .25);
    letter-spacing: .01em;
}

.dvf-data-row__value {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    text-align: right;
    min-width: 6rem;
}

.dvf-data-row__value--up {
    color: #78c9a0;
}

/* Dominant pills */
.feature-card--dominant .feature-pills {
    border-top: none;
    padding-top: .75rem;
}

.feature-card--dominant .feature-pill {
    color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .025);
    border-color: rgba(255, 255, 255, .05);
    font-size: .55rem;
}

.feature-card--dominant .feature-pill:hover {
    color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .08);
}

/* ================================================================
   PRIMARY — PLU + Risques
   ================================================================ */
.feature-card--primary {
    background: linear-gradient(180deg, #ffffff 0%, #fdfcfa 100%);
    border-color: rgba(0, 0, 0, .07);
    padding: 1.75rem 1.5rem 1.35rem 1.75rem;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, .02),
        0 3px 8px rgba(0, 0, 0, .04),
        0 8px 22px rgba(15, 61, 46, .04);
    flex: 1;
    opacity: .92;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), opacity .4s var(--ease);
}

.feature-card--primary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 2.5px;
    background: linear-gradient(180deg, var(--green-400) 0%, var(--green-700) 100%);
    border-radius: 0 3px 3px 0;
    box-shadow: 2px 0 8px rgba(15, 61, 46, .1);
}

.feature-card--primary:hover {
    transform: translateY(-3px);
    opacity: 1;
    border-color: rgba(0, 0, 0, .1);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, .04),
        0 8px 20px rgba(0, 0, 0, .06),
        0 18px 44px rgba(15, 61, 46, .06);
}

.feature-card--primary:hover::before {
    box-shadow: 3px 0 12px rgba(15, 61, 46, .16);
}

.feature-card--primary .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    background: linear-gradient(145deg, var(--green-50), var(--green-100));
    border-color: rgba(0, 0, 0, .06);
}

.feature-card--primary .feature-label {
    color: var(--green-400);
    font-size: .58rem;
}

.feature-card--primary h3 {
    font-size: 1.04rem;
    color: var(--green-800);
}

.feature-card--primary p {
    opacity: .92;
    font-size: .84rem;
    color: var(--ink-70);
}

.feature-card--primary .feature-pill {
    color: var(--ink-70);
    background: rgba(0, 0, 0, .025);
    border-color: rgba(0, 0, 0, .08);
}

.feature-card--primary .feature-pill:hover {
    background: rgba(0, 0, 0, .05);
    border-color: rgba(0, 0, 0, .12);
}

/* ================================================================
   TERTIARY — Compléments
   ================================================================ */
.feature-card--tertiary {
    padding: 1.5rem 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .02), 0 2px 6px rgba(0, 0, 0, .03);
    border-color: rgba(0, 0, 0, .06);
    opacity: .88;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), opacity .4s var(--ease);
}

.feature-card--tertiary .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.feature-card--tertiary h3 {
    font-size: .95rem;
    color: var(--ink-70);
}

.feature-card--tertiary p {
    font-size: .82rem;
    opacity: .82;
    color: var(--ink-50);
}

.feature-card--tertiary:hover {
    transform: translateY(-2.5px);
    opacity: 1;
    border-color: rgba(0, 0, 0, .09);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 10px 24px rgba(0, 0, 0, .06);
}

.feature-card--tertiary .feature-pill {
    font-size: .6rem;
    opacity: .9;
}

/* ── Icône (base) ── */
.feature-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    margin: 0 0 .85rem;
    flex-shrink: 0;
}

/* ── Micro-label source ── */
.feature-label {
    display: inline-block;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-30);
    margin-bottom: .45rem;
}

/* ── Titre ── */
.feature-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink-70);
    margin-bottom: .35rem;
    line-height: 1.22;
}

/* ── Description ── */
.feature-card p {
    font-size: .86rem;
    color: var(--ink-50);
    line-height: 1.65;
    margin-bottom: 1rem;
    flex-grow: 1;
    opacity: .85;
}

/* ── Pills de preuve ── */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding-top: .8rem;
    border-top: 1px solid rgba(0, 0, 0, .05);
    margin-top: auto;
}

.feature-pill {
    font-size: .62rem;
    font-weight: 600;
    color: var(--ink-50);
    background: rgba(0, 0, 0, .025);
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 5px;
    padding: .24rem .58rem;
    letter-spacing: .02em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: background .25s var(--ease), border-color .25s var(--ease);
}

.feature-pill:hover {
    background: rgba(0, 0, 0, .045);
    border-color: rgba(0, 0, 0, .1);
}

/* ── Legacy ── */
.feature-badge,
.feature-meta,
.feature-card__head,
.feature-grid,
.feature-grid--6,
.feature-layout {
    display: none;
}

/* ===== PRICING ===== */
.pricing {
    padding: 5rem 2rem 5.5rem;
    background: var(--bg);
}

.pricing__eyebrow {
    text-align: center;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-30);
    margin-bottom: .75rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    align-items: stretch;
    margin-top: 2.5rem;
    background: var(--ink-04);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pricing-card {
    background: var(--bg-card);
    padding: 1.75rem 1.25rem 1.5rem;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    border-radius: 0;
}

.pricing-card--unit {
    background: var(--bg);
}

.pricing-card--pro {
    background: var(--green-900);
    color: #fff;
    padding: 2rem 1.5rem 1.75rem;
}

.pricing-card h3 {
    font-family: var(--font-sans);
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink-30);
    margin-bottom: .15rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pricing-card--pro h3 {
    color: rgba(255, 255, 255, .5);
}

.pricing-card .price {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    margin: .25rem 0 .75rem;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.pricing-card--pro .price {
    color: #fff;
    font-size: 2.2rem;
}

.pricing-card .price small {
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 500;
    color: var(--ink-30);
}

.pricing-card--pro .price small {
    color: rgba(255, 255, 255, .45);
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    flex: 1;
    margin: 0 0 1.25rem 0;
}

.pricing-card li {
    padding: .3rem 0;
    color: var(--ink-50);
    font-size: .8rem;
    line-height: 1.5;
}

.pricing-card li::before {
    content: '✓';
    display: inline-block;
    width: 1.1em;
    color: var(--green-400);
    font-weight: 700;
}

.pricing-card--pro li {
    color: rgba(255, 255, 255, .75);
}

.pricing-card--pro li::before {
    color: rgba(255, 255, 255, .45);
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
    font-size: .82rem;
    padding: .6rem 1rem;
}

.pricing-card--pro .btn-primary {
    background: rgba(255, 255, 255, .95);
    color: var(--green-900);
    font-weight: 700;
}

.pricing-card--pro .btn-primary:hover {
    background: #fff;
}

/* ===== HOW IT WORKS → REASSURANCE ===== */
.how-it-works {
    padding: 2.5rem 2rem;
    background: var(--bg);
    border-top: 1px solid var(--ink-04);
}

.steps-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.step-inline {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.step-inline__num {
    width: 28px;
    height: 28px;
    background: var(--green-800);
    color: rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-inline__text {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-50);
    white-space: nowrap;
}

.step-inline__arrow {
    color: var(--ink-15, #d0d0d0);
    font-size: .85rem;
    flex-shrink: 0;
}

/* ===== CTA SECTION → ACTION MOMENT ===== */
.cta-section {
    background: var(--green-900);
    color: #fff;
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 800px 400px at 50% 100%, rgba(72, 160, 126, .06) 0%, transparent 100%);
    pointer-events: none;
}

.cta-section h2 {
    color: #fff;
    position: relative;
    font-size: 2.6rem;
    margin-bottom: 2.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, .55);
    font-size: .95rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.cta-section .btn-primary {
    background: rgba(255, 255, 255, .95);
    color: var(--green-900);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 2.5rem;
    position: relative;
}

.cta-section .btn-primary:hover {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
}

/* ===== OUTCOMES ===== */
.outcomes {
    padding: 4.5rem 2rem;
    background: var(--bg);
}

.outcomes__title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green-800);
    text-align: center;
    margin-bottom: .6rem;
    letter-spacing: -.02em;
}

.outcomes__subtitle {
    text-align: center;
    font-size: .92rem;
    color: var(--ink-30);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.outcomes__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
    max-width: 780px;
    margin: 0 auto;
}

.outcomes__item h3 {
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .35rem;
}

.outcomes__item p {
    font-size: .88rem;
    color: var(--ink-50);
    line-height: 1.6;
}

/* ===== TRUST SECTION → PROJECTION ===== */
.trust-section {
    padding: 5rem 2rem 5.5rem;
    background: var(--bg-card);
}

.trust-section__eyebrow {
    text-align: center;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-30);
    margin-bottom: .75rem;
}

.trust-section h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green-800);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -.02em;
}

.trust-roles {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.trust-role {
    flex: 1;
    padding: 0 2rem;
    text-align: center;
}

.trust-role h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: .6rem;
}

.trust-role p {
    font-size: .88rem;
    color: var(--ink-50);
    line-height: 1.65;
}

.trust-role__sep {
    width: 1px;
    height: 72px;
    background: var(--ink-08);
    flex-shrink: 0;
    margin-top: .25rem;
}

/* ===== CARDS (generic) ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all .3s var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--green-100);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: .75rem;
}

.card p {
    color: var(--ink-50);
    line-height: 1.65;
    font-size: .92rem;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ===== FORMS ===== */
form {
    max-width: 500px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 600;
    font-size: .88rem;
    color: var(--ink-70);
    letter-spacing: .01em;
}

input,
textarea,
select {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--ink-08);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg-card);
    transition: all .25s var(--ease);
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-30);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(15, 61, 46, .08);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== AUTH PAGES ===== */
.auth-body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2.25rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: .4rem;
}

.auth-header p {
    color: var(--ink-50);
    font-size: .92rem;
}

.auth-card .form {
    max-width: none;
    margin: 0;
}

.auth-card .btn-block {
    margin-top: .5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .88rem;
    color: var(--ink-50);
}

.auth-footer a {
    color: var(--green-700);
    font-weight: 600;
    transition: color .2s var(--ease);
}

.auth-footer a:hover {
    color: var(--green-800);
    text-decoration: underline;
}

/* ===== FOOTER → CLOSURE SIGNATURE ===== */
footer,
.footer-premium {
    background: #061810;
    color: rgba(255, 255, 255, .6);
    padding: 5.5rem 2rem 2.5rem;
    margin-top: 0;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-identity {
    flex-shrink: 0;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .95);
    text-decoration: none;
    letter-spacing: -.03em;
    display: block;
    margin-bottom: .5rem;
}

.footer-logo:hover {
    color: #fff;
}

.footer-baseline {
    font-size: .75rem;
    color: rgba(255, 255, 255, .25);
    letter-spacing: .02em;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: color .25s var(--ease);
    white-space: nowrap;
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, .9);
}

.footer-action {
    flex-shrink: 0;
}

.footer-cta {
    border-color: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .7);
    font-size: .82rem;
    padding: .55rem 1.2rem;
    border-radius: var(--radius-sm);
}

.footer-cta:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
}

.footer-separator {
    height: 1px;
    background: rgba(255, 255, 255, .05);
    margin: 2.5rem 0 1.75rem;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: .75rem;
    color: rgba(255, 255, 255, .3);
}

.footer-trust {
    display: flex;
    gap: 1.5rem;
}

.footer-trust span {
    font-size: .65rem;
    color: rgba(255, 255, 255, .15);
    letter-spacing: .02em;
}

/* Legacy footer compat */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-column h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-column h4 {
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}

.footer-column p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.6;
    margin-bottom: .75rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: .6rem;
}

.footer-column a {
    font-size: .88rem;
    color: rgba(255, 255, 255, .6);
    transition: color .25s var(--ease);
}

.footer-column a:hover {
    color: rgba(255, 255, 255, .95);
}

.social-links {
    display: flex;
    gap: .75rem;
    margin-top: .5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
    transition: all .25s var(--ease);
}

.social-links a:hover {
    background: rgba(72, 160, 126, .12);
    border-color: var(--green-400);
    color: rgba(255, 255, 255, .9);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .82rem;
    color: rgba(255, 255, 255, .4);
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--green-800);
}

.text-secondary {
    color: var(--gold-500);
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.py-4 {
    padding: 2rem 0;
}

.hidden {
    display: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn .5s var(--ease);
}

/* ===== PROFILE / ACCOUNT SPACE ===== */
.profile-layout {
    display: flex;
    min-height: calc(100vh - 68px);
    background: var(--bg);
}

/* --- Sidebar --- */
.profile-sidebar {
    width: 272px;
    background: var(--bg-card);
    border-right: 1px solid var(--ink-08);
    padding: 2rem 1.25rem;
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-identity {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ink-04);
    margin-bottom: 1.5rem;
}

.sidebar-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin: 0 auto .75rem;
    box-shadow: 0 4px 12px rgba(15, 61, 46, .15);
    letter-spacing: -.02em;
}

.sidebar-identity h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .2rem;
    letter-spacing: -.01em;
}

.sidebar-identity p {
    font-size: .82rem;
    color: var(--ink-30);
    margin-bottom: .75rem;
}

.sidebar-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--gold-100);
    color: var(--gold-700);
    border: 1px solid var(--gold-300);
    padding: .3rem .85rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sidebar-plan-badge--premium {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--green-900);
    border-color: transparent;
}

.sidebar-plan-badge--ultimate {
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    border-color: transparent;
}

.sidebar-plan-badge--starter {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    border-color: transparent;
}

.sidebar-plan-badge--pro {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--green-900);
    border-color: transparent;
}

.sidebar-plan-badge--expert {
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    border-color: transparent;
}

/* Sidebar nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
}

.sidebar-nav .nav-btn {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--ink-50);
    font-size: .88rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all .2s var(--ease);
    text-align: left;
    white-space: nowrap;
}

.sidebar-nav .nav-btn:hover {
    background: var(--green-50);
    color: var(--green-800);
}

.sidebar-nav .nav-btn.active {
    background: var(--green-100);
    color: var(--green-800);
    font-weight: 600;
}

.sidebar-nav .nav-btn .nav-icon {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Sidebar footer actions */
.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink-04);
    margin-top: 1rem;
}

/* --- Main area --- */
.profile-main {
    flex: 1;
    padding: 2rem 2.5rem;
    max-width: 1160px;
    min-width: 0;
}

/* Section visibility */
.profile-section {
    display: none;
    animation: fadeIn .35s var(--ease);
}

.profile-section.active {
    display: block;
}

/* Section header */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--green-800);
    letter-spacing: -.02em;
    margin-bottom: .3rem;
}

.section-header p {
    color: var(--ink-30);
    font-size: .9rem;
}

/* --- Dashboard --- */
.dash-welcome {
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.dash-welcome::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 260px;
    height: 260px;
    background: rgba(200, 169, 106, .08);
    border-radius: 50%;
    pointer-events: none;
}

.dash-welcome__text h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.dash-welcome__text p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .72);
}

.dash-welcome .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.dash-welcome__counter {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-top: .5rem;
}

.dash-welcome__counter .counter-value {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.dash-welcome__counter .counter-label {
    font-size: .88rem;
    color: rgba(255, 255, 255, .65);
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.15rem;
    transition: all .25s var(--ease);
}

.dash-stat-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--green-100);
}

.dash-stat-card__icon {
    font-size: 1.25rem;
    margin-bottom: .5rem;
}

.dash-stat-card__label {
    font-size: .78rem;
    color: var(--ink-30);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .35rem;
}

.dash-stat-card__value {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.dash-stat-card__value--gold {
    color: var(--gold-600);
}

.dash-stat-card__sub {
    font-size: .78rem;
    color: var(--ink-30);
    margin-top: .2rem;
}

.dash-stat-card__progress {
    height: 4px;
    background: var(--ink-04);
    border-radius: 2px;
    overflow: hidden;
    margin-top: .55rem;
}

.dash-stat-card__progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--green-500), var(--green-400));
    transition: width .5s var(--ease);
}

.dash-stat-card__progress-fill--gold {
    background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

.dash-stat-card__progress-fill--warn {
    background: linear-gradient(90deg, var(--warning), #fbbf24);
}

/* Dashboard two-column row */
.dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

/* Activity summary */
.dash-activity {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.dash-activity__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 1rem;
}

.dash-activity__list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.dash-activity__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid var(--ink-04);
}

.dash-activity__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dash-activity__item-label {
    font-size: .85rem;
    color: var(--ink-50);
}

.dash-activity__item-value {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
}

/* Plan reminder on dashboard */
.dash-plan {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.dash-plan__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 1rem;
}

.dash-plan__current {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    margin-bottom: .85rem;
}

.dash-plan__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dash-plan__name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
}

.dash-plan__desc {
    font-size: .8rem;
    color: var(--ink-30);
    margin-top: .1rem;
}

.dash-plan__features {
    list-style: none;
    flex: 1;
    margin-bottom: 1rem;
}

.dash-plan__features li {
    font-size: .82rem;
    color: var(--ink-50);
    padding: .3rem 0;
}

.dash-plan__upgrade {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gold-600);
    text-decoration: none;
    transition: color .2s var(--ease);
    margin-top: auto;
}

.dash-plan__upgrade:hover {
    color: var(--gold-700);
}

/* Last analysis card */
.dash-last-analysis {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.dash-last-analysis__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gold-50);
    border: 1px solid var(--gold-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dash-last-analysis__info {
    flex: 1;
    min-width: 0;
}

.dash-last-analysis__label {
    font-size: .75rem;
    color: var(--ink-30);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 500;
    margin-bottom: .2rem;
}

.dash-last-analysis__address {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-last-analysis__meta {
    font-size: .8rem;
    color: var(--ink-30);
    margin-top: .15rem;
}

.dash-last-analysis__price {
    text-align: right;
    flex-shrink: 0;
}

.dash-last-analysis__price-value {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-800);
}

.dash-last-analysis__price-label {
    font-size: .72rem;
    color: var(--ink-30);
}

.dash-last-analysis--empty {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 1.5rem;
    gap: .5rem;
}

.dash-last-analysis--empty p {
    font-size: .88rem;
    color: var(--ink-30);
    margin: 0;
}

/* Dashboard analyses panel */
.dash-analyses-panel {
    margin-bottom: 1.75rem;
}

/* Quick actions */
.dash-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dash-action-card {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    text-decoration: none;
    color: inherit;
    transition: all .25s var(--ease);
    cursor: pointer;
    font-family: var(--font-sans);
    text-align: left;
}

.dash-action-card:hover {
    border-color: var(--green-400);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.dash-action-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dash-action-card__text strong {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .2rem;
}

.dash-action-card__text p {
    font-size: .8rem;
    color: var(--ink-30);
    line-height: 1.45;
    margin: 0;
}

/* --- Usage --- */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.usage-card {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
}

.usage-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.usage-card__title {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-70);
}

.usage-card__badge {
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 99px;
    background: var(--green-50);
    color: var(--green-700);
}

.usage-card__value {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: .25rem;
}

.usage-card__sub {
    font-size: .8rem;
    color: var(--ink-30);
    margin-bottom: .85rem;
}

.usage-progress {
    height: 6px;
    background: var(--ink-04);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: .5rem;
}

.usage-progress__fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--green-400));
    transition: width .5s var(--ease);
}

.usage-progress__fill--gold {
    background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

.usage-progress__label {
    font-size: .75rem;
    color: var(--ink-30);
}

/* Analyses table */
.analyses-panel {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.analyses-panel__header {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--ink-04);
    font-size: .95rem;
    font-weight: 700;
    color: var(--green-800);
}

.analyses-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.analyses-panel thead th {
    padding: .85rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-30);
    background: var(--ink-02);
    border-bottom: 1px solid var(--ink-04);
}

.analyses-panel tbody td {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--ink-04);
    color: var(--ink-70);
}

.analyses-panel tbody tr:last-child td {
    border-bottom: none;
}

.analyses-empty {
    text-align: center;
    padding: 3rem 2rem !important;
    color: var(--ink-30) !important;
}

.analyses-empty__icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    opacity: .5;
}

.analyses-empty p {
    font-size: .9rem;
    margin-bottom: 1rem;
    color: var(--ink-30);
}

/* --- Profile form --- */
.profile-form-card {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.profile-form-card .form {
    max-width: none;
    margin: 0;
}

.profile-form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.profile-form-card .form-group small {
    display: block;
    font-size: .78rem;
    color: var(--ink-30);
    margin-top: .3rem;
}

.profile-form-card input:disabled {
    background: var(--ink-02);
    color: var(--ink-30);
    cursor: not-allowed;
}

.profile-form-card .form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: .5rem;
}

/* --- Subscription --- */
.sub-current {
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.sub-current::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -8%;
    width: 240px;
    height: 240px;
    background: rgba(200, 169, 106, .08);
    border-radius: 50%;
    pointer-events: none;
}

.sub-current__info h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.sub-current__info p {
    font-size: .88rem;
    color: rgba(255, 255, 255, .72);
}

.sub-current__price {
    text-align: right;
    position: relative;
    z-index: 1;
}

.sub-current__price .price-amount {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
}

.sub-current__price .price-period {
    font-size: .82rem;
    color: rgba(255, 255, 255, .6);
}

.sub-plans-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 1rem;
}

.sub-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.sub-plan-card {
    background: var(--bg-card);
    border: 1.5px solid var(--ink-08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all .25s var(--ease);
    display: flex;
    flex-direction: column;
}

.sub-plan-card:hover {
    border-color: var(--green-400);
    box-shadow: var(--shadow-md);
}

.sub-plan-card.featured {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 1px var(--gold-500), var(--shadow-md);
    position: relative;
}

.sub-plan-card.featured .sub-plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-500);
    color: var(--green-900);
    padding: .2rem .85rem;
    border-radius: 99px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sub-plan-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ink-04);
}

.sub-plan-card__header h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-800);
}

.sub-plan-card__price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

.sub-plan-card__price small {
    font-family: var(--font-sans);
    font-size: .75rem;
    color: var(--ink-30);
    font-weight: 500;
}

.sub-plan-card ul {
    list-style: none;
    flex: 1;
    margin-bottom: 1.25rem;
}

.sub-plan-card li {
    padding: .45rem 0;
    font-size: .88rem;
    color: var(--ink-70);
    border-bottom: 1px solid var(--ink-04);
}

.sub-plan-card li:last-child {
    border-bottom: none;
}

.sub-plan-card .btn {
    width: 100%;
}

/* --- Security --- */
.security-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
}

.security-card__header {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
}

.security-card__header .sec-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.security-card__header .sec-icon--password {
    background: var(--green-50);
}

.security-card__header .sec-icon--sessions {
    background: var(--gold-50);
}

.security-card__header .sec-icon--danger {
    background: #fef2f2;
}

.security-card__header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.security-card .form {
    max-width: none;
    margin: 0;
}

.security-card p {
    font-size: .9rem;
    color: var(--ink-50);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.security-card--danger {
    border-color: #fecaca;
}

.security-card--danger p {
    color: var(--danger);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* ===== REPORTS TAB (Profile) ===== */
.rpt-stats {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rpt-stat-pill {
    background: var(--green-50);
    color: var(--green-800);
    padding: .4rem 1rem;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 500;
}

.rpt-stat-pill strong {
    font-weight: 700;
}

.rpt-filters {
    background: var(--bg-card);
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.rpt-filters label {
    font-size: .8rem;
    color: var(--ink-30);
    font-weight: 600;
    display: block;
    margin-bottom: .3rem;
}

.rpt-filters input[type="date"] {
    padding: .4rem .7rem;
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    color: var(--ink-70);
    font-family: var(--font-sans);
}

.rpt-btn-filter {
    padding: .45rem 1.1rem !important;
    font-size: .875rem !important;
    align-self: flex-end;
}

.rpt-btn-reset {
    padding: .45rem .9rem !important;
    font-size: .875rem !important;
    align-self: flex-end;
}

.rpt-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.rpt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.rpt-table thead tr {
    background: var(--ink-02);
    border-bottom: 2px solid var(--ink-08);
}

.rpt-table th {
    text-align: left;
    padding: .7rem .9rem;
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-30);
    white-space: nowrap;
}

.rpt-table tbody tr {
    border-bottom: 1px solid var(--ink-04);
    transition: background .15s;
}

.rpt-table tbody tr:last-child {
    border-bottom: none;
}

.rpt-table tbody tr:hover {
    background: var(--green-50);
}

.rpt-table td {
    padding: .7rem .9rem;
    color: var(--ink-70);
    vertical-align: middle;
}

.rpt-sub {
    color: var(--ink-30);
    font-size: .78rem;
}

.rpt-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.rpt-badge--valid {
    background: #dcfce7;
    color: #166534;
}

/* ===========================================================
   COMPOSANT PARTAGÉ : SEARCH PILL (barre d'adresse signature)
   Utilisé sur la landing page ET la page outil
   =========================================================== */
.search-pill {
    max-width: 700px;
    margin: 0 auto 1.25rem;
    position: relative;
}

.search-pill::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(72, 160, 126, .04) 15%, rgba(72, 160, 126, .18) 50%, rgba(72, 160, 126, .04) 85%, transparent 100%);
    pointer-events: none;
    opacity: 1;
    transition: width .5s var(--ease), background .5s var(--ease);
}

.search-pill:focus-within::after {
    width: 400px;
    background: linear-gradient(90deg, transparent 0%, rgba(72, 160, 126, .08) 12%, rgba(72, 160, 126, .36) 50%, rgba(72, 160, 126, .08) 88%, transparent 100%);
}

.search-pill__inner {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border: 1.5px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .02),
        0 1px 2px rgba(0, 0, 0, .05),
        0 4px 12px rgba(0, 0, 0, .08),
        0 16px 40px rgba(0, 0, 0, .14),
        0 40px 80px rgba(0, 0, 0, .22);
    transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
    overflow: visible;
}

.search-pill__inner:focus-within {
    background: rgba(255, 255, 255, .97);
    border-color: rgba(72, 160, 126, .3);
    box-shadow:
        0 0 0 1px rgba(72, 160, 126, .08),
        0 0 0 5px rgba(72, 160, 126, .06),
        0 1px 2px rgba(0, 0, 0, .04),
        0 4px 12px rgba(0, 0, 0, .07),
        0 16px 40px rgba(0, 0, 0, .12),
        0 40px 80px rgba(0, 0, 0, .2),
        0 0 60px rgba(72, 160, 126, .04);
    transform: translateY(-2px) scale(1.008);
}

.search-pill__icon {
    position: absolute;
    left: 24px;
    display: flex;
    align-items: center;
    color: var(--green-400);
    pointer-events: none;
    z-index: 2;
    opacity: .55;
    transition: opacity .3s var(--ease), color .3s var(--ease);
}

.search-pill__inner:focus-within .search-pill__icon {
    opacity: 1;
    color: var(--green-700);
}

.search-pill__input {
    flex: 1;
    min-width: 0;
    padding: 1.35rem 1rem 1.35rem 3.4rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
    border-radius: 999px 0 0 999px;
    font-weight: 450;
    letter-spacing: .005em;
}

.search-pill__input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-pill__btn {
    flex-shrink: 0;
    padding: 1.1rem 2.6rem;
    margin: 6px 6px 6px 0;
    border: none;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--green-900) 0%, var(--green-800) 35%, var(--green-700) 70%, var(--green-600) 100%);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 1px 2px rgba(10, 46, 31, .15),
        0 4px 12px rgba(10, 46, 31, .2),
        0 8px 28px rgba(10, 46, 31, .16);
    transition: all .25s var(--ease);
}

.search-pill__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .02) 40%, transparent 60%);
    pointer-events: none;
}

.search-pill__btn:hover {
    background: linear-gradient(145deg, var(--green-800) 0%, var(--green-700) 35%, var(--green-600) 70%, var(--green-500) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 2px 4px rgba(10, 46, 31, .12),
        0 8px 24px rgba(10, 46, 31, .26),
        0 12px 40px rgba(10, 46, 31, .18);
    transform: translateY(-1px);
}

.search-pill__btn:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, .12),
        0 1px 2px rgba(10, 46, 31, .08);
}

/* Autocomplete dropdown */
.search-pill__results {
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, .07),
        0 16px 48px rgba(0, 0, 0, .15),
        0 0 0 1px rgba(0, 0, 0, .04);
    z-index: 100;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .5);
}

.search-pill__results.active {
    display: block;
}

.search-pill__result-item {
    padding: .78rem 1.25rem;
    cursor: pointer;
    font-size: .91rem;
    color: #374151;
    border-bottom: 1px solid rgba(0, 0, 0, .035);
    transition: background .15s var(--ease), color .15s var(--ease);
}

.search-pill__result-item:first-child {
    border-radius: 18px 18px 0 0;
}

.search-pill__result-item:last-child {
    border-bottom: none;
    border-radius: 0 0 18px 18px;
}

.search-pill__result-item:hover {
    background: rgba(15, 61, 46, .04);
    color: var(--green-800);
}

.search-pill__result-context {
    font-size: .78rem;
    color: #888;
    margin-top: 2px;
}

/* Micro-copy */
.search-pill__microcopy {
    font-size: .82rem;
    color: rgba(255, 255, 255, .7);
    margin: 0.4rem 0 0;
    text-align: center;
    font-style: italic;
    letter-spacing: .01em;
}

/* Responsive — search pill */
@media (max-width: 768px) {
    .search-pill__inner {
        flex-direction: column;
        border-radius: 20px;
        padding: 6px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, .95);
    }

    .search-pill::after {
        display: none;
    }

    .search-pill__input {
        border-radius: 14px;
        padding: 1rem 1rem 1rem 2.8rem;
        width: 100%;
    }

    .search-pill__btn {
        width: 100%;
        margin: 0;
        border-radius: 14px;
        padding: 1.05rem;
    }

    .search-pill__icon {
        top: 18px;
        left: 18px;
    }

    .search-pill__results {
        left: 0;
        right: 0;
        border-radius: 14px;
    }
}

.rpt-badge--expiring {
    background: #fef9c3;
    color: #854d0e;
}

.rpt-badge--expired {
    background: #fee2e2;
    color: #991b1b;
}

.rpt-btn-download {
    display: inline-block;
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    padding: .35rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}

.rpt-btn-download:hover {
    opacity: .85;
    color: #fff;
}

.rpt-empty {
    text-align: center;
    padding: 3rem 1rem !important;
    color: var(--ink-30);
}

.rpt-empty__icon {
    font-size: 3rem;
    margin-bottom: .75rem;
}

.rpt-empty p {
    font-size: .95rem;
    margin-bottom: 1.2rem;
}

.rpt-pagination {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.rpt-page-btn {
    padding: .45rem .85rem;
    border: 1px solid var(--ink-08);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    color: var(--ink-70);
    background: var(--bg-card);
    cursor: pointer;
    transition: all .15s;
    font-family: var(--font-sans);
}

.rpt-page-btn:hover:not(.disabled):not(.active) {
    background: var(--green-50);
    border-color: var(--green-400);
}

.rpt-page-btn.active {
    background: var(--green-800);
    color: #fff;
    border-color: var(--green-800);
    font-weight: 700;
}

.rpt-page-btn.disabled {
    opacity: .4;
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-inline {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 640px;
        margin: 0 auto;
    }

    .hero h1,
    .hero-content>p,
    .hero-subtext {
        text-align: center;
    }

    .hero-visual {
        justify-content: center;
        margin-top: 2rem;
    }

    .hero-mockup {
        max-width: 420px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .usage-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3.5rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content>p {
        font-size: .95rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: .5rem 0;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--ink-08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    }

    .nav-menu.nav-menu--open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: .85rem 2rem;
        font-size: .95rem;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        background: var(--green-50);
    }

    .nav-menu__msg {
        display: list-item;
    }

    .nav-burger {
        display: flex;
    }

    .navbar--premium .nav-menu {
        background: rgba(8, 22, 15, .97);
        border-bottom-color: rgba(255, 255, 255, .06);
        box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
    }

    .navbar--premium .nav-menu a:hover {
        background: rgba(72, 160, 126, .07);
    }

    .feature-hero-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-side {
        gap: 1.25rem;
    }

    .feature-row-tertiary {
        grid-template-columns: 1fr;
        gap: 1.15rem;
        margin-top: 1.15rem;
    }

    .feature-card--dominant {
        padding: 1.75rem 1.35rem 1.4rem 1.5rem;
        transform: none;
    }

    .feature-card--dominant:hover {
        transform: translateY(-1px);
    }

    .feature-card--dominant .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .feature-card--dominant h3 {
        font-size: 1.1rem;
    }

    .dvf-panel__header {
        padding: .45rem .8rem .25rem;
    }

    .dvf-data-row {
        padding: .5rem .9rem;
    }

    .dvf-data-row--primary {
        padding: .75rem .9rem;
    }

    .dvf-data-row--primary .dvf-data-row__value {
        font-size: 1.25rem;
    }

    .dvf-data-row__value {
        font-size: .95rem;
        min-width: auto;
    }

    .dvf-panel__footer {
        padding: .25rem .9rem .35rem;
    }

    .dvf-panel__divider {
        padding: .3rem .9rem .2rem;
    }

    .feature-card--primary {
        opacity: 1;
    }

    .feature-card--tertiary {
        opacity: 1;
    }

    .feature-card--primary {
        padding: 1.5rem 1.25rem 1.25rem 1.5rem;
    }

    .feature-card--primary::before {
        top: .85rem;
        bottom: .85rem;
    }

    .feature-card--primary .feature-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .feature-card--primary h3 {
        font-size: 1rem;
    }

    .feature-card--tertiary {
        padding: 1.25rem 1.1rem 1.1rem;
    }

    .feature-pills {
        gap: .35rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.pricing-card--pro {
        transform: none;
    }

    .pricing-card.pricing-card--pro:hover {
        transform: none;
    }

    .steps-inline {
        flex-direction: column;
        gap: .5rem;
    }

    .step-inline__arrow {
        transform: rotate(90deg);
    }

    .outcomes__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .trust-roles {
        flex-direction: column;
        gap: 1.5rem;
    }

    .trust-role {
        padding: 0;
    }

    .trust-role__sep {
        width: 60px;
        height: 1px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-nav {
        justify-content: center;
        gap: 1rem;
    }

    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: .75rem;
    }

    .footer-trust {
        flex-direction: column;
        gap: .5rem;
    }

    .section {
        padding: 3.5rem 1.5rem;
    }

    .features,
    .pricing,
    .trust-section,
    .outcomes {
        padding: 3.5rem 1.5rem;
    }

    .how-it-works {
        padding: 2rem 1.5rem;
    }

    .cta-section {
        padding: 5rem 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .navbar>.container,
    .navbar-content {
        flex-wrap: wrap;
    }

    /* Profile responsive */
    .profile-layout {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--ink-08);
        padding: 1.25rem;
    }

    .sidebar-identity {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .sidebar-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
        margin: 0;
        flex-shrink: 0;
    }

    .sidebar-identity h2 {
        font-size: .95rem;
    }

    .sidebar-identity p {
        margin-bottom: .35rem;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: .35rem;
        padding-bottom: .35rem;
    }

    .sidebar-nav .nav-btn {
        padding: .55rem .75rem;
        font-size: .8rem;
        flex-shrink: 0;
    }

    .sidebar-footer {
        flex-direction: row;
        padding-top: 1rem;
    }

    .sidebar-footer .btn {
        flex: 1;
    }

    .profile-main {
        padding: 1.5rem;
    }

    .dash-welcome {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .dash-stats {
        grid-template-columns: 1fr 1fr;
    }

    .dash-actions {
        grid-template-columns: 1fr;
    }

    .dash-row {
        grid-template-columns: 1fr;
    }

    .dash-last-analysis {
        flex-direction: column;
        text-align: center;
    }

    .dash-last-analysis__price {
        text-align: center;
    }

    .usage-grid {
        grid-template-columns: 1fr;
    }

    .sub-current {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .sub-current__price {
        text-align: center;
    }

    .sub-plans-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-card .form-row {
        grid-template-columns: 1fr;
    }

    .rpt-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .rpt-table {
        font-size: .8rem;
    }

    .rpt-table th,
    .rpt-table td {
        padding: .55rem .6rem;
    }

    .rpt-stats {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-mockup {
        max-width: 100%;
    }

    .btn {
        padding: .6rem 1.2rem;
        font-size: .88rem;
    }

    .logo a,
    .logo {
        font-size: 1.2rem;
    }

    .nav-buttons {
        gap: .5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons a {
        width: 100%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
        gap: .75rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
/* === FLASH MESSAGES (Scan Immo) === */
.flash-stack {
    max-width: 880px;
    margin: 1.25rem auto 0;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.flash-alert {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    font-family: inherit;
    line-height: 1.45;
    animation: flash-in .25s ease-out;
}
.flash-alert__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.flash-alert__body { flex: 1 1 auto; min-width: 0; }
.flash-alert__title {
    display: block;
    font-weight: 600;
    font-size: .98rem;
    color: #0f172a;
    margin: 0 0 .15rem;
}
.flash-alert__text {
    display: block;
    font-size: .9rem;
    color: #475569;
}
.flash-alert--success { background: #f0fdf4; border-color: #bbf7d0; }
.flash-alert--success .flash-alert__icon { background: #16a34a; }
.flash-alert--info    { background: #eff6ff; border-color: #bfdbfe; }
.flash-alert--info    .flash-alert__icon { background: #2563eb; }
.flash-alert--warning { background: #fffbeb; border-color: #fde68a; }
.flash-alert--warning .flash-alert__icon { background: #d97706; }
.flash-alert--error   { background: #fef2f2; border-color: #fecaca; }
.flash-alert--error   .flash-alert__icon { background: #dc2626; }
@keyframes flash-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .flash-stack { padding: 0 1rem; }
    .flash-alert { padding: .85rem .95rem; border-radius: 10px; }
}

