/* ============================================================
   SmartFeed Formula – HomePage Landing Page Styles
   File: wwwroot/css/homepage.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset pour la landing page ── */
.sf-lp * {
    box-sizing: border-box;
}

.sf-lp a {
    text-decoration: none;
    color: inherit;
}

.sf-lp button {
    cursor: pointer;
    font-family: inherit;
}

.sf-lp img {
    display: block;
    max-width: 100%;
}

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --sf-primary: hsl(195, 80%, 22%); /* #0d6b7e */
    --sf-secondary: hsl(187, 78%, 30%);
    --sf-bg: hsl(210, 20%, 98%);
    --sf-fg: hsl(200, 50%, 10%);
    --sf-card: #ffffff;
    --sf-muted: hsl(45, 30%, 95%);
    --sf-muted-fg: hsl(200, 15%, 40%);
    --sf-border: hsl(200, 20%, 88%);
    --sf-teal: #2dd4bf;
    --sf-cyan: #22d3ee;
    --sf-font: 'Inter', sans-serif;
}

/* ============================================================
   BODY override for landing page only
   ============================================================ */
body:has(.sf-lp) {
    background: var(--sf-bg);
    margin: 0;
    padding: 0;
}

/* Wrapper global */
.sf-lp {
    font-family: var(--sf-font);
    color: var(--sf-fg);
    background: var(--sf-bg);
    overflow-x: hidden;
}

/* ============================================================
   NAV
   ============================================================ */
.sf-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sf-border);
}

.sf-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sf-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.sf-nav-logo-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--sf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .sf-nav-logo-box img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

.sf-nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sf-nav-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--sf-primary);
    letter-spacing: -0.025em;
}

.sf-nav-brand-sub {
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sf-muted-fg);
}

.sf-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .sf-nav-links button {
        background: none;
        border: none;
        font-size: 14px;
        font-weight: 500;
        color: var(--sf-muted-fg);
        padding: 4px 0;
        transition: color 0.15s;
        font-family: var(--sf-font);
    }

        .sf-nav-links button:hover {
            color: var(--sf-primary);
        }

.sf-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Language switcher */
.sf-lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0,0,0,0.05);
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    padding: 3px 6px;
}

.sf-lang-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sf-muted-fg);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--sf-font);
}

    .sf-lang-btn:hover {
        background: rgba(0,0,0,0.06);
        color: var(--sf-fg);
    }

    .sf-lang-btn.sf-lang-active {
        background: var(--sf-primary);
        color: white;
    }

.sf-lang-sep {
    color: var(--sf-border);
    font-size: 11px;
    user-select: none;
}

.sf-btn-signin {
    font-size: 14px;
    font-weight: 500;
    color: var(--sf-fg);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

    .sf-btn-signin:hover {
        background: var(--sf-muted);
    }

.sf-btn-create {
    background: var(--sf-primary);
    color: white !important;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

    .sf-btn-create:hover,
    .sf-btn-create:visited,
    .sf-btn-create:active,
    .sf-btn-create:focus {
        background: hsl(195,80%,18%);
        color: white !important;
        text-decoration: none;
    }

/* ============================================================
   HERO
   ============================================================ */
.sf-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sf-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .sf-hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.sf-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.62) 50%, rgba(0,0,0,0.25) 100% );
}

.sf-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.sf-hero-inner {
    max-width: 48rem;
    text-align: center;
}

.sf-hero-badge {
    justify-content: center;
}

.sf-hero-btns {
    justify-content: center;
}

.sf-hero-pills {
    justify-content: center;
}

.sf-hero-sub {
    margin-left: auto;
    margin-right: auto;
}

.sf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 9999px;
    padding: 6px 16px;
    margin-bottom: 1.75rem;
}

    .sf-hero-badge svg {
        width: 14px;
        height: 14px;
        color: #fbbf24;
        flex-shrink: 0;
    }

    .sf-hero-badge span {
        font-size: 12px;
        font-weight: 500;
        color: rgba(255,255,255,0.9);
        letter-spacing: 0.025em;
    }

.sf-hero-title {
    font-size: clamp(36px, 5.5vw, 62px);
    font-weight: 800;
    color: white;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
}

.sf-hero-title-gradient {
    background: linear-gradient(to right, #5eead4, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sf-hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    max-width: 38rem;
    margin: 0 0 2.25rem;
    font-weight: 400;
}

.sf-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.sf-btn-hero-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--sf-primary);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.22);
    transition: all 0.15s;
    font-family: var(--sf-font);
    cursor: pointer;
}

    .sf-btn-hero-white:hover {
        background: rgba(255,255,255,0.92);
        color: var(--sf-primary);
    }

    .sf-btn-hero-white svg {
        width: 16px;
        height: 16px;
    }

.sf-btn-hero-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 28px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    transition: background 0.15s;
    font-family: var(--sf-font);
    cursor: pointer;
}

    .sf-btn-hero-outline:hover {
        background: rgba(255,255,255,0.1);
    }

.sf-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-pill {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.88);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 9999px;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.sf-section {
    padding: 5rem 2rem;
}

.sf-section-inner {
    max-width: 80rem;
    margin: 0 auto;
}

.sf-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.sf-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sf-secondary);
    margin-bottom: 12px;
}

.sf-section-title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--sf-fg);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 14px;
}

.sf-section-sub {
    font-size: 15px;
    color: var(--sf-muted-fg);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   FEATURES
   ============================================================ */
.sf-features-bg {
    background: var(--sf-bg);
}

.sf-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sf-feat-card {
    background: var(--sf-card);
    border-radius: 1rem;
    border: 1px solid var(--sf-border);
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

    .sf-feat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 30px rgba(0,0,0,0.09);
        border-color: hsl(195,80%,22%,0.2);
    }

.sf-feat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

    .sf-feat-icon svg {
        width: 22px;
        height: 22px;
        color: white;
    }

.sf-feat-icon-teal {
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

.sf-feat-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.sf-feat-icon-green {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.sf-feat-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sf-fg);
    margin: 0 0 10px;
}

.sf-feat-card p {
    font-size: 14px;
    color: var(--sf-muted-fg);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   SPECIES
   ============================================================ */
.sf-species-bg {
    background: var(--sf-muted);
}

.sf-species-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.sf-species-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: default;
}

    .sf-species-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.5s ease;
        display: block;
    }

    .sf-species-card:hover img {
        transform: scale(1.05);
    }

.sf-species-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 50%, transparent 100% );
}

.sf-species-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}

    .sf-species-label h3 {
        font-size: 19px;
        font-weight: 700;
        color: white;
        margin: 0 0 3px;
    }

    .sf-species-label p {
        font-size: 13px;
        color: rgba(255,255,255,0.72);
        margin: 0;
        font-style: italic;
    }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.sf-how-bg {
    background: var(--sf-card);
}

.sf-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

    /* Connecting line between steps */
    .sf-how-grid::before {
        content: '';
        display: block;
        position: absolute;
        top: 32px;
        left: calc(16.66% + 16px);
        right: calc(16.66% + 16px);
        height: 1px;
        background: linear-gradient(to right, var(--sf-border), hsl(187,78%,30%,0.3), var(--sf-border));
        pointer-events: none;
    }

.sf-how-step {
    text-align: center;
}

.sf-how-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: hsl(195,80%,22%,0.08);
    border: 2px solid hsl(195,80%,22%,0.18);
    margin: 0 auto 1.25rem;
}

    .sf-how-icon svg {
        width: 26px;
        height: 26px;
        color: var(--sf-primary);
    }

.sf-how-num {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sf-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-how-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--sf-fg);
    margin: 0 0 10px;
}

.sf-how-step p {
    font-size: 14px;
    color: var(--sf-muted-fg);
    line-height: 1.7;
    max-width: 22rem;
    margin: 0 auto;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.sf-stats-band {
    position: relative;
    padding: 5rem 2rem;
    overflow: hidden;
}

.sf-stats-band-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .sf-stats-band-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.sf-stats-band-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: hsl(195, 80%, 22%, 0.92);
}

.sf-stats-band-inner {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    margin: 0 auto;
}

.sf-stats-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0 0 10px;
}

.sf-stats-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.68);
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 3rem;
    line-height: 1.65;
}

.sf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

.sf-stat-item {
    text-align: center;
}

.sf-stat-num {
    font-size: 52px;
    font-weight: 800;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sf-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.68);
    margin-top: 8px;
}

/* ============================================================
   SAVINGS SIMULATOR
   ============================================================ */
.sf-sim-bg {
    background: var(--sf-bg);
}

.sf-sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Left panel */
.sf-sim-left {
    background: var(--sf-card);
    border-radius: 1rem;
    border: 1px solid var(--sf-border);
    padding: 2rem;
}

    .sf-sim-left label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: var(--sf-fg);
        margin-bottom: 12px;
    }

.sf-sim-species-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.75rem;
}

.sf-sim-species-btn {
    padding: 7px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--sf-border);
    font-size: 13px;
    font-weight: 500;
    background: hsl(45,30%,95%,0.5);
    color: var(--sf-muted-fg);
    transition: all 0.15s;
    font-family: var(--sf-font);
}

    .sf-sim-species-btn:hover {
        border-color: hsl(195,80%,22%,0.4);
        color: var(--sf-fg);
    }

    .sf-sim-species-btn.active {
        background: var(--sf-primary);
        color: white;
        border-color: var(--sf-primary);
    }

.sf-sim-slider-row {
    margin-bottom: 1.75rem;
}

.sf-sim-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .sf-sim-slider-header span:first-child {
        font-size: 14px;
        font-weight: 600;
        color: var(--sf-fg);
    }

.sf-sim-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--sf-primary);
}

.sf-sim-left input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: hsl(195,80%,22%,0.18);
    outline: none;
    cursor: pointer;
}

    .sf-sim-left input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: white;
        border: 2px solid var(--sf-primary);
        box-shadow: 0 1px 4px rgba(0,0,0,0.15);
        cursor: pointer;
    }

    .sf-sim-left input[type=range]::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: white;
        border: 2px solid var(--sf-primary);
        cursor: pointer;
    }

.sf-sim-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--sf-muted-fg);
    margin-top: 5px;
}

.sf-sim-note {
    font-size: 12px;
    color: var(--sf-muted-fg);
    background: hsl(45,30%,95%,0.6);
    border-radius: 10px;
    padding: 12px;
    line-height: 1.6;
    margin: 0;
}

/* Right panel */
.sf-sim-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sf-sim-savings-card {
    position: relative;
    border-radius: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--sf-primary), var(--sf-secondary));
    overflow: hidden;
}

    .sf-sim-savings-card::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 130px;
        height: 130px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
        pointer-events: none;
    }

    .sf-sim-savings-card::after {
        content: '';
        position: absolute;
        bottom: -32px;
        left: -32px;
        width: 96px;
        height: 96px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
        pointer-events: none;
    }

.sf-sim-savings-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

    .sf-sim-savings-label svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.sf-sim-savings-amount {
    font-size: clamp(42px, 5.5vw, 58px);
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.sf-sim-savings-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.sf-sim-pct-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
}

.sf-sim-per-month {
    font-size: 13px;
    color: rgba(255,255,255,0.68);
}

.sf-sim-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sf-sim-compare-card {
    background: var(--sf-card);
    border-radius: 1rem;
    border: 1px solid var(--sf-border);
    padding: 18px 20px;
}

.sf-sim-compare-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sf-sim-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .sf-sim-icon-box svg {
        width: 13px;
        height: 13px;
    }

    .sf-sim-icon-box.red {
        background: rgba(239,68,68,0.1);
        color: #ef4444;
    }

    .sf-sim-icon-box.green {
        background: rgba(16,185,129,0.1);
        color: #10b981;
    }

.sf-sim-compare-icon span {
    font-size: 12px;
    color: var(--sf-muted-fg);
}

.sf-sim-compare-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--sf-fg);
    margin: 2px 0;
}

    .sf-sim-compare-val.green {
        color: #059669;
    }

.sf-sim-compare-sub {
    font-size: 12px;
    color: var(--sf-muted-fg);
}

.sf-sim-annual {
    background: linear-gradient(to right, #fffbeb, #fff7ed);
    border: 1px solid #fde68a;
    border-radius: 1rem;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sf-sim-annual-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(245,158,11,0.12);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .sf-sim-annual-icon svg {
        width: 18px;
        height: 18px;
    }

.sf-sim-annual-label {
    font-size: 12px;
    color: #92400e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sf-sim-annual-val {
    font-size: 22px;
    font-weight: 800;
    color: #b45309;
    margin-top: 2px;
}

.sf-sim-visual {
    background: var(--sf-card);
    border-radius: 1rem;
    border: 1px solid var(--sf-border);
    padding: 18px 20px;
}

    .sf-sim-visual h5 {
        font-size: 13px;
        font-weight: 600;
        color: var(--sf-fg);
        margin: 0 0 14px;
    }

.sf-sim-bar-row {
    margin-bottom: 12px;
}

    .sf-sim-bar-row:last-child {
        margin-bottom: 0;
    }

.sf-sim-bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--sf-muted-fg);
    margin-bottom: 5px;
}

    .sf-sim-bar-meta .val {
        font-weight: 500;
        color: var(--sf-fg);
    }

        .sf-sim-bar-meta .val.green {
            color: #059669;
        }

.sf-sim-bar-track {
    height: 14px;
    background: var(--sf-muted);
    border-radius: 9999px;
    overflow: hidden;
}

.sf-sim-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s ease;
}

    .sf-sim-bar-fill.red {
        background: #f87171;
    }

    .sf-sim-bar-fill.teal {
        background: linear-gradient(to right, #2dd4bf, #06b6d4);
    }

/* ============================================================
   HOMEPAGE DEMO (real solver)
   ============================================================ */
.sf-demo-bg {
    background: hsl(45,30%,95%,0.5);
}

.sf-demo-poweredby {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: hsl(195,80%,22%,0.1);
    color: var(--sf-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.sf-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.sf-demo-left {
    background: var(--sf-card);
    border-radius: 1.25rem;
    border: 1px solid var(--sf-border);
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.sf-demo-nutrient-preview h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--sf-fg);
    margin: 0 0 0.75rem;
}

.sf-demo-nutrient-table {
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    overflow: hidden;
}

.sf-demo-nutrient-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 32px;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--sf-fg);
    border-top: 1px solid var(--sf-border);
}

    .sf-demo-nutrient-row:first-child {
        border-top: none;
    }

.sf-demo-nutrient-head {
    background: hsl(45,30%,95%,0.6);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sf-muted-fg);
}

.sf-demo-nutrient-name {
    font-weight: 600;
}

.sf-demo-nutrient-teaser {
    margin: 0;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--sf-muted-fg);
    background: hsl(45,30%,95%,0.4);
    border-top: 1px solid var(--sf-border);
}

    .sf-demo-nutrient-teaser a {
        color: var(--sf-primary);
        font-weight: 700;
        text-decoration: underline;
    }

.sf-demo-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sf-demo-field {
    margin-bottom: 1.5rem;
}

    .sf-demo-field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--sf-fg);
        margin-bottom: 8px;
    }

.sf-demo-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--sf-border);
    background: white;
    font-size: 14px;
    font-family: var(--sf-font);
    color: var(--sf-fg);
    transition: border-color 0.15s;
}

    .sf-demo-select:focus {
        outline: none;
        border-color: var(--sf-primary);
    }

    .sf-demo-select:disabled {
        background: hsl(45,30%,95%,0.6);
        color: var(--sf-muted-fg);
    }

.sf-demo-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.sf-demo-price-card {
    border: 1.5px solid var(--sf-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: hsl(45,30%,95%,0.35);
    transition: border-color 0.15s;
}

    .sf-demo-price-card:hover {
        border-color: hsl(195,80%,22%,0.35);
    }

.sf-demo-price-card-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--sf-fg);
    margin-bottom: 6px;
    line-height: 1.3;
    min-height: 2.6em;
}

.sf-demo-price-card-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 1.5px solid var(--sf-border);
    border-radius: 8px;
    padding: 4px 8px;
}

.sf-demo-dollar {
    font-size: 13px;
    font-weight: 700;
    color: var(--sf-primary);
}

.sf-demo-price-card-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--sf-font);
    color: var(--sf-fg);
}

.sf-demo-price-card-unit {
    font-size: 11px;
    color: var(--sf-muted-fg);
    flex-shrink: 0;
}

.sf-demo-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--sf-primary);
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    margin-top: 1.5rem;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 10px 20px -8px hsl(195,80%,22%,0.5);
}

    .sf-demo-cta:hover:not(:disabled) {
        background: hsl(195,80%,18%);
        transform: translateY(-1px);
    }

    .sf-demo-cta:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
    }

.sf-demo-cta-spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: sf-demo-spin 0.7s linear infinite;
}

@keyframes sf-demo-spin {
    to {
        transform: rotate(360deg);
    }
}

.sf-demo-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: hsl(0,80%,95%);
    color: #b91c1c;
    font-size: 13px;
}

.sf-demo-stages-locked {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--sf-muted-fg);
}

    .sf-demo-stages-locked a {
        color: var(--sf-primary);
        font-weight: 700;
        text-decoration: underline;
        margin-left: 4px;
    }

.sf-demo-right {
    background: var(--sf-card);
    border-radius: 1.25rem;
    border: 1px solid var(--sf-border);
    padding: 2rem;
    min-height: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.sf-demo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
    text-align: center;
    color: var(--sf-muted-fg);
    font-size: 14px;
    gap: 1rem;
}

.sf-demo-placeholder-icon {
    font-size: 42px;
    opacity: 0.6;
}

.sf-demo-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: hsl(150,60%,94%);
    color: hsl(150,60%,28%);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.sf-demo-result-cost-label {
    font-size: 13px;
    color: var(--sf-muted-fg);
    margin-bottom: 4px;
}

.sf-demo-result-cost {
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 800;
    color: var(--sf-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

    .sf-demo-result-cost span {
        font-size: 16px;
        font-weight: 500;
        color: var(--sf-muted-fg);
        margin-left: 4px;
    }

.sf-demo-result-top3 h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--sf-fg);
    margin: 0 0 0.75rem;
}

.sf-demo-bar-row {
    margin-bottom: 0.75rem;
}

.sf-demo-bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--sf-muted-fg);
    margin-bottom: 5px;
}

.sf-demo-bar-pct-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 9999px;
    color: white;
}

    .sf-demo-bar-pct-badge.sf-demo-bar-c1 {
        background: var(--sf-primary);
    }

    .sf-demo-bar-pct-badge.sf-demo-bar-c2 {
        background: #0d9488;
    }

    .sf-demo-bar-pct-badge.sf-demo-bar-c3 {
        background: #d97706;
    }

.sf-demo-bar-track {
    height: 8px;
    border-radius: 9999px;
    background: hsl(195,80%,22%,0.12);
    overflow: hidden;
}

.sf-demo-bar-fill {
    height: 100%;
    width: var(--bar-width, 0%);
    border-radius: 9999px;
    animation: sf-demo-grow-bar 0.8s ease-out;
}

    .sf-demo-bar-fill.sf-demo-bar-c1 {
        background: linear-gradient(to right, var(--sf-primary), hsl(195,80%,32%));
    }

    .sf-demo-bar-fill.sf-demo-bar-c2 {
        background: linear-gradient(to right, #0d9488, #2dd4bf);
    }

    .sf-demo-bar-fill.sf-demo-bar-c3 {
        background: linear-gradient(to right, #d97706, #f59e0b);
    }

.sf-demo-bar-kg {
    display: block;
    font-size: 11px;
    color: var(--sf-muted-fg);
    margin-top: 4px;
}

@keyframes sf-demo-grow-bar {
    from {
        width: 0%;
    }

    to {
        width: var(--bar-width, 0%);
    }
}

.sf-demo-coverage {
    margin: 1.25rem 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: hsl(45,30%,95%,0.6);
}

.sf-demo-coverage-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--sf-fg);
    margin-bottom: 8px;
}

    .sf-demo-coverage-head .val {
        font-weight: 700;
    }

        .sf-demo-coverage-head .val.good {
            color: #16a34a;
        }

        .sf-demo-coverage-head .val.warn {
            color: #d97706;
        }

        .sf-demo-coverage-head .val.bad {
            color: #dc2626;
        }

.sf-demo-coverage-track {
    height: 10px;
    border-radius: 9999px;
    background: hsl(195,80%,22%,0.12);
    overflow: hidden;
}

.sf-demo-coverage-fill {
    height: 100%;
    width: var(--bar-width, 0%);
    border-radius: 9999px;
    animation: sf-demo-grow-bar 0.8s ease-out;
}

    .sf-demo-coverage-fill.good {
        background: linear-gradient(to right, #16a34a, #4ade80);
    }

    .sf-demo-coverage-fill.warn {
        background: linear-gradient(to right, #d97706, #fbbf24);
    }

    .sf-demo-coverage-fill.bad {
        background: linear-gradient(to right, #dc2626, #f87171);
    }

.sf-demo-divider {
    height: 1px;
    background: var(--sf-border);
    margin: 1.5rem 0;
}

.sf-demo-locked {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sf-primary), var(--sf-secondary));
    color: white;
}

.sf-demo-locked-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.sf-demo-locked-body {
    flex: 1;
}

.sf-demo-locked h5 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: white;
}

.sf-demo-locked p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 14px;
    line-height: 1.5;
}

.sf-demo-locked-features {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 6px;
}

    .sf-demo-locked-features li {
        font-size: 13px;
        color: rgba(255,255,255,0.92);
        line-height: 1.4;
    }

/* Deux tentatives précédentes (override par classe, puis sélecteur à 2 classes)
   restaient perdantes face à .sf-btn-create (color:white !important sur
   :hover/:visited/:active/:focus) selon l'état — un conflit de cascade entre
   classes partagées plutôt qu'un simple oubli de couleur. Le bouton n'utilise
   plus .sf-btn-create/.sf-demo-locked-cta du tout (cf. HomePage.razor) : la couleur
   et le fond de base sont en style inline (spécificité maximale, gagne face à
   n'importe quelle règle externe non !important, y compris .sf-lp a). Seul l'effet
   de survol reste ici, sur une classe dédiée qui n'est partagée par aucun autre
   bouton — donc plus aucun risque de collision. */
.sf-demo-locked-link:hover,
.sf-demo-locked-link:focus,
.sf-demo-locked-link:active {
    background-color: #E3F2FD !important;
}

.sf-demo-locked-free {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

@media (max-width: 900px) {
    .sf-demo-grid, .sf-demo-field-row, .sf-demo-price-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CONTACT
   ============================================================ */
.sf-contact-bg {
    background: hsl(45,30%,95%,0.5);
}

.sf-contact-card {
    background: var(--sf-card);
    border-radius: 1.25rem;
    border: 1px solid var(--sf-border);
    padding: 2rem;
    max-width: 30rem;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sf-contact-name {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: var(--sf-fg);
    margin-bottom: 4px;
}

.sf-contact-role {
    font-size: 14px;
    color: var(--sf-muted-fg);
    text-align: center;
    margin-bottom: 1.5rem;
}

.sf-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: hsl(45,30%,95%,0.5);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

    .sf-contact-item:last-child {
        margin-bottom: 0;
    }

    .sf-contact-item:hover {
        background: var(--sf-muted);
    }

.sf-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: hsl(195,80%,22%,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .sf-contact-icon svg {
        width: 18px;
        height: 18px;
        color: var(--sf-primary);
    }

.sf-contact-icon-wa {
    background: rgba(16,185,129,0.1);
}

    .sf-contact-icon-wa svg {
        color: #059669;
    }

.sf-contact-lbl {
    font-size: 11px;
    color: var(--sf-muted-fg);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.sf-contact-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--sf-fg);
    margin-top: 2px;
    transition: color 0.15s;
}

.sf-contact-item:hover .sf-contact-val {
    color: var(--sf-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.sf-footer {
    background: var(--sf-fg);
    padding: 2.5rem 2rem;
}

.sf-footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sf-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-footer-logo-box {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .sf-footer-logo-box img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

.sf-footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sf-footer-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.sf-footer-brand-sub {
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.sf-footer p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.sf-footer-links {
    display: flex;
    gap: 20px;
}

    .sf-footer-links button {
        background: none;
        border: none;
        font-size: 13px;
        color: rgba(255,255,255,0.45);
        transition: color 0.15s;
        font-family: var(--sf-font);
        cursor: pointer;
    }

        .sf-footer-links button:hover {
            color: white;
        }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.sf-loading-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, hsl(195,80%,10%), hsl(195,80%,18%));
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-loading-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1.25rem;
    padding: 2.5rem 3rem;
    text-align: center;
    backdrop-filter: blur(12px);
}

.sf-loading-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 1rem;
}

.sf-loading-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
}

.sf-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #2dd4bf;
    border-radius: 50%;
    margin: 0 auto;
    animation: sf-spin 0.8s linear infinite;
}

@keyframes sf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .sf-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sf-species-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-sim-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sf-nav-links {
        display: none;
    }

    .sf-lang-switcher {
        display: none;
    }

    .sf-hero-title {
        font-size: clamp(30px, 8vw, 44px);
    }

    .sf-features-grid {
        grid-template-columns: 1fr;
    }

    .sf-species-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sf-how-grid {
        grid-template-columns: 1fr;
    }

        .sf-how-grid::before {
            display: none;
        }

    .sf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .sf-footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sf-section {
        padding: 3.5rem 1rem;
    }

    .sf-species-grid {
        grid-template-columns: 1fr;
    }

    .sf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-sim-compare {
        grid-template-columns: 1fr;
    }

    .sf-nav-inner {
        padding: 0 1rem;
    }

    .sf-hero-content {
        padding: 5rem 1rem 3rem;
    }
}

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */

.sf-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sf-bg);
}

/* Centre la card dans la page sous la navbar */
.sf-auth-wrap {
    flex: 1;
    min-height: calc(100vh - 64px);
    margin-top: 64px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    background-image: url('/images/login-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    /* Overlay sombre pour lisibilité de la card */
    .sf-auth-wrap::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 0;
    }

    /* La card passe au-dessus de l'overlay */
    .sf-auth-wrap > .sf-auth-card {
        position: relative;
        z-index: 1;
    }

/* Card centrale */
.sf-auth-card {
    background: var(--sf-card);
    border-radius: 1.25rem;
    border: 1px solid var(--sf-border);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Icône en haut de la card */
.sf-auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--sf-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .sf-auth-icon svg {
        width: 24px;
        height: 24px;
        color: white;
    }

.sf-auth-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--sf-fg);
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

.sf-auth-sub {
    font-size: 14px;
    color: var(--sf-muted-fg);
    margin-bottom: 24px;
}

/* Bouton Google */
.sf-auth-btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--sf-border);
    padding: 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sf-fg);
    font-family: var(--sf-font);
    margin-bottom: 20px;
    cursor: pointer;
    transition: background 0.15s;
}

    .sf-auth-btn-google:hover {
        background: hsl(45,30%,95%);
    }

/* Séparateur OR */
.sf-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--sf-muted-fg);
    font-size: 12px;
    font-weight: 500;
}

    .sf-auth-divider::before,
    .sf-auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--sf-border);
    }

/* Bannière erreur */
.sf-auth-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #b91c1c;
    text-align: left;
    line-height: 1.5;
}

/* Champs */
.sf-auth-field {
    text-align: left;
    margin-bottom: 14px;
}

    .sf-auth-field > label {
        font-size: 13px;
        font-weight: 600;
        color: var(--sf-fg);
        display: block;
        margin-bottom: 6px;
    }

.sf-auth-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

    .sf-auth-field-header label {
        font-size: 13px;
        font-weight: 600;
        color: var(--sf-fg);
    }

    .sf-auth-field-header a {
        font-size: 13px;
        color: var(--sf-secondary);
        text-decoration: none;
        transition: color 0.15s;
    }

        .sf-auth-field-header a:hover {
            color: var(--sf-primary);
            text-decoration: underline;
        }

.sf-auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    padding: 11px 14px;
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .sf-auth-input-wrap:focus-within {
        border-color: var(--sf-primary);
        box-shadow: 0 0 0 3px hsl(195,80%,22%,0.1);
    }

    .sf-auth-input-wrap.sf-input-error {
        border-color: #ef4444;
    }

        .sf-auth-input-wrap.sf-input-error:focus-within {
            box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
        }

    .sf-auth-input-wrap > svg {
        width: 16px;
        height: 16px;
        color: var(--sf-muted-fg);
        flex-shrink: 0;
    }

    .sf-auth-input-wrap input {
        border: none;
        outline: none;
        flex: 1;
        font-size: 14px;
        font-family: var(--sf-font);
        color: var(--sf-fg);
        background: transparent;
        min-width: 0;
    }

        .sf-auth-input-wrap input::placeholder {
            color: var(--sf-muted-fg);
        }

/* Bouton oeil */
.sf-auth-eye-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--sf-muted-fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.15s;
    flex-shrink: 0;
}

    .sf-auth-eye-btn:hover {
        color: var(--sf-primary);
    }

    .sf-auth-eye-btn svg {
        width: 16px;
        height: 16px;
    }

/* Message de validation */
.sf-auth-validator-msg {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    margin-top: 4px;
}

/* Bouton submit */
.sf-auth-btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: var(--sf-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--sf-font);
    margin-top: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

    .sf-auth-btn-submit:hover {
        background: hsl(195,80%,18%);
        transform: translateY(-1px);
    }

    .sf-auth-btn-submit:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

/* Spinner */
.sf-auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: sf-spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* Footer liens */
.sf-auth-footer {
    font-size: 13px;
    color: var(--sf-muted-fg);
    margin-top: 20px;
}

    .sf-auth-footer a {
        color: var(--sf-primary);
        font-weight: 700;
        text-decoration: none;
    }

        .sf-auth-footer a:hover {
            text-decoration: underline;
        }

/* Responsive */
@media (max-width: 480px) {
    .sf-auth-wrap {
        padding: 1rem;
    }

    .sf-auth-card {
        padding: 1.75rem 1.25rem;
    }
}

/* Background spécifique à la page Register */
.sf-register-wrap {
    background-image: url('/images/new-account-bg.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .sf-register-wrap::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 0;
    }

    .sf-register-wrap > .sf-auth-card {
        position: relative;
        z-index: 1;
    }

/* ============================================================
   REGISTRATION PAGE - spécifique
   ============================================================ */

/* Background new-account-bg.png + animation Slow Drift */
@keyframes sf-bg-drift {
    0% {
        background-position: 50% 50%;
        background-size: 110%;
    }

    50% {
        background-position: 54% 50%;
        background-size: 110%;
    }

    100% {
        background-position: 50% 50%;
        background-size: 110%;
    }
}

.sf-register-wrap {
    background-image: url('/images/new-account-bg.png') !important;
    background-size: 110%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
    animation: sf-bg-drift 5s ease-in-out infinite;
}

    .sf-register-wrap::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 0;
    }

    .sf-register-wrap > .sf-auth-card {
        position: relative;
        z-index: 1;
    }

/* Card registration largeur confortable 2 colonnes */
.sf-reg-card {
    max-width: 700px !important;
    text-align: left;
}

/* Grille 2 colonnes pour les champs */
.sf-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 4px;
}

/* Champ pleine largeur */
.sf-reg-full {
    grid-column: span 2;
}

/* Champs select natif */
.sf-select-wrap select {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    font-family: var(--sf-font);
    color: var(--sf-fg);
    background: transparent;
    min-width: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

    .sf-select-wrap select option {
        color: var(--sf-fg);
    }

/* Caret du select */
.sf-select-wrap {
    position: relative;
}

    .sf-select-wrap::after {
        content: '';
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid var(--sf-muted-fg);
        pointer-events: none;
    }

/* Terms & conditions */
.sf-reg-terms {
    background: linear-gradient(to right, #eff6ff, #f0fdf4);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
}

.sf-reg-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    cursor: pointer;
}

.sf-reg-checkbox {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 2px;
    accent-color: var(--sf-primary);
    cursor: pointer;
}

.sf-reg-terms-label a {
    color: var(--sf-primary);
    font-weight: 700;
    text-decoration: none;
}

    .sf-reg-terms-label a:hover {
        text-decoration: underline;
    }

/* Bouton submit registration (full margin-top) */
.sf-reg-submit {
    margin-top: 20px;
}

/* Note footer */
.sf-reg-footer-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: linear-gradient(to right, #eff6ff, #f0fdf4);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 12px;
    color: #475569;
    text-align: center;
    line-height: 1.6;
}

/* Auth field label dans la grille (texte aligné à gauche) */
.sf-reg-card .sf-auth-field label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sf-fg);
    display: block;
    margin-bottom: 6px;
}

/* Responsive registration */
@media (max-width: 560px) {
    .sf-reg-grid {
        grid-template-columns: 1fr;
    }

    .sf-reg-full {
        grid-column: span 1;
    }

    .sf-reg-card {
        max-width: 100% !important;
    }
}

/* ============================================================
   LOGIN PAGE — Split layout (left info + right form)
   ============================================================ */

/* Override sf-auth-wrap for login : pas de background centré,
   on utilise le split layout à la place */
.sf-login-split {
    min-height: calc(100vh - 64px);
    margin-top: 64px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

/* Image de fond + overlay conservés */
.sf-login-split-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .sf-login-split-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.sf-login-split-overlay {
    display: none;
}

/* Conteneur centré qui regroupe les 2 blocs — colonnes égales */
.sf-login-center {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

/* ── LEFT panel ── */
.sf-login-left {
    display: flex;
    align-items: center;
    background: rgba(10,28,38,0.88);
}

.sf-login-left-content {
    padding: 3rem 2.5rem;
    max-width: 100%;
}

.sf-login-left-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
}

.sf-login-left-text {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin: 0 0 0.6rem;
    max-width: 480px;
}

/* Stats 3 colonnes */
.sf-login-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sf-login-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(8px);
}

.sf-login-stat-val {
    font-size: 24px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
}

    .sf-login-stat-val.accent {
        color: #fbbf24;
    }

.sf-login-stat-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 5px;
}

.sf-login-stat-text {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

/* ── RIGHT panel ── */
.sf-login-right {
    background: var(--sf-card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.75rem;
    overflow-y: auto;
}

.sf-login-form-wrap {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .sf-login-split {
        padding: 1.5rem 1rem;
    }

    .sf-login-center {
        grid-template-columns: 1fr;
    }

    .sf-login-left-content {
        padding: 2rem;
    }

    .sf-login-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .sf-login-right {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 560px) {
    .sf-login-split {
        padding: 1rem;
    }

    .sf-login-left-content {
        padding: 1.5rem;
    }

    .sf-login-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sf-login-right {
        padding: 1.5rem 1rem;
    }
}

/* Mini stats dans le panneau droit login */
.sf-login-right-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

.sf-login-right-stat {
    background: var(--sf-bg);
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
}

.sf-login-right-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--sf-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.sf-login-right-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--sf-muted-fg);
}
