/* =====================================================================
   SwissProspect — Design system
   Couleurs : rouge #E50D14 / noir #1E2731
   Inspiration : moderne, suisse, soigné, accessible
   ===================================================================== */

:root {
    --ssp-red:        #E50D14;
    --ssp-red-dark:   #C00B11;
    --ssp-red-soft:   #FEE7E8;
    --ssp-black:      #1E2731;
    --ssp-black-soft: #2A3441;
    --ssp-gray-900:   #111827;
    --ssp-gray-800:   #1F2937;
    --ssp-gray-700:   #374151;
    --ssp-gray-600:   #4B5563;
    --ssp-gray-500:   #6B7280;
    --ssp-gray-400:   #9CA3AF;
    --ssp-gray-300:   #D1D5DB;
    --ssp-gray-200:   #E5E7EB;
    --ssp-gray-100:   #F3F4F6;
    --ssp-gray-50:    #F9FAFB;
    --ssp-white:      #FFFFFF;
    --ssp-bg:         #F5F6F8;
    --ssp-border:     #E5E7EB;

    --ssp-success:    #10B981;
    --ssp-success-bg: #ECFDF5;
    --ssp-warning:    #F59E0B;
    --ssp-warning-bg: #FFFBEB;
    --ssp-danger:     #EF4444;
    --ssp-danger-bg:  #FEF2F2;
    --ssp-info:       #3B82F6;
    --ssp-info-bg:    #EFF6FF;

    --ssp-radius:     8px;
    --ssp-radius-sm:  4px;
    --ssp-radius-lg:  14px;
    --ssp-shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.04);
    --ssp-shadow:     0 4px 12px rgba(15, 23, 42, 0.06);
    --ssp-shadow-lg:  0 12px 32px rgba(15, 23, 42, 0.10);

    --ssp-font:       -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ssp-font-mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --ssp-header-h:   64px;
    --ssp-sidebar-w:  256px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: var(--ssp-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ssp-black);
    background: var(--ssp-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ssp-red);
    text-decoration: none;
    transition: color .15s;
}
a:hover { color: var(--ssp-red-dark); text-decoration: underline; }

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--ssp-black);
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}
h1 { font-size: 1.9rem; line-height: 1.2; }
h2 { font-size: 1.4rem; line-height: 1.25; }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ssp-gray-600); }

p { margin: 0 0 1em; }
p.lead { font-size: 1.1rem; color: var(--ssp-gray-700); }
small, .small { font-size: .82rem; color: var(--ssp-gray-500); }
.muted { color: var(--ssp-gray-500); }
.text-red { color: var(--ssp-red); }
.text-success { color: var(--ssp-success); }
.text-danger  { color: var(--ssp-danger); }

hr { border: 0; border-top: 1px solid var(--ssp-border); margin: 1.5rem 0; }

/* =================== LAYOUT GENERAL =================== */

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.page {
    padding: 32px 0;
}

/* =================== HEADER PUBLIC =================== */

.public-header {
    background: var(--ssp-white);
    border-bottom: 1px solid var(--ssp-border);
    height: var(--ssp-header-h);
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center;
}
.public-header .container {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.05rem; color: var(--ssp-black);
}
.brand img { height: 32px; width: auto; display: block; }
.brand:hover { text-decoration: none; color: var(--ssp-black); }

.public-nav { display: flex; gap: 24px; align-items: center; }
.public-nav a { color: var(--ssp-gray-700); font-weight: 500; }
.public-nav a:hover { color: var(--ssp-black); text-decoration: none; }
.public-nav .btn { padding: 8px 14px; }

@media (max-width: 720px) {
    .public-nav a:not(.btn) { display: none; }
}

/* =================== APP LAYOUT (sidebar + content) =================== */

.app-shell {
    display: grid;
    grid-template-columns: var(--ssp-sidebar-w) 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--ssp-black);
    color: var(--ssp-gray-200);
    padding: 20px 0;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
}
.sidebar .brand { padding: 0 20px 24px; color: var(--ssp-white); }
.sidebar .brand img { filter: brightness(0) invert(1); }
.sidebar nav { display: flex; flex-direction: column; padding: 0 8px; flex: 1; }
.sidebar nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: var(--ssp-radius);
    color: var(--ssp-gray-300); font-weight: 500;
    margin-bottom: 2px;
    transition: background .15s, color .15s;
}
.sidebar nav a:hover { background: var(--ssp-black-soft); color: var(--ssp-white); text-decoration: none; }
.sidebar nav a.active { background: var(--ssp-red); color: var(--ssp-white); }
.sidebar nav a .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.sidebar .sidebar-section { padding: 12px 14px 6px; font-size: .72rem; text-transform: uppercase; color: var(--ssp-gray-400); letter-spacing: .05em; margin-top: 8px; }
.sidebar .sidebar-bottom { padding: 14px 16px; border-top: 1px solid var(--ssp-black-soft); margin-top: auto; font-size: .85rem; color: var(--ssp-gray-400); }
.sidebar .quota-bar { background: var(--ssp-black-soft); border-radius: 999px; height: 6px; overflow: hidden; margin-top: 6px; }
.sidebar .quota-bar > i { display: block; height: 100%; background: var(--ssp-red); border-radius: inherit; }

.main {
    background: var(--ssp-bg);
    min-width: 0; /* prevent grid blow up */
}
.topbar {
    background: var(--ssp-white);
    border-bottom: 1px solid var(--ssp-border);
    padding: 12px 28px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 80;
}
.topbar .topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar .topbar-left h1 { margin: 0; font-size: 1.15rem; }
.topbar .topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ssp-red); color: var(--ssp-white);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
}

.content { padding: 28px; }

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; top: 0; left: 0;
        width: 80%; max-width: 320px; height: 100vh;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 200;
    }
    .sidebar.open { transform: translateX(0); }
    .topbar .menu-btn { display: inline-flex; }
}

.menu-btn {
    display: none; background: transparent; border: 0; padding: 6px;
    color: var(--ssp-black); cursor: pointer;
}

/* =================== CARDS =================== */

.card {
    background: var(--ssp-white);
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius-lg);
    padding: 24px;
    box-shadow: var(--ssp-shadow-sm);
    margin-bottom: 20px;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin: -8px 0 18px;
}
.card-header h2, .card-header h3 { margin: 0; }
.card-sub { color: var(--ssp-gray-500); font-size: .9rem; margin: -10px 0 16px; }

.card-tight { padding: 16px 20px; }

.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.hide { display: none !important; }

/* =================== FORMS =================== */

.form-row { margin-bottom: 18px; }
.form-row label {
    display: block; font-weight: 600; color: var(--ssp-black);
    margin-bottom: 6px; font-size: .92rem;
}
.form-row .hint {
    display: block; color: var(--ssp-gray-500); font-size: .82rem; margin-top: 4px;
}
/* .hint placé entre <label> et l'input → marge ajustée pour rester aéré */
.form-row label + .hint {
    margin-top: -2px;
    margin-bottom: 8px;
}
.form-row .hint-above {
    display: block; color: var(--ssp-gray-500); font-size: .82rem; margin: -2px 0 8px;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="url"], input[type="number"],
input[type="date"], input[type="time"], input[type="datetime-local"],
input[type="search"], select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius);
    background: var(--ssp-white);
    color: var(--ssp-black);
    font: inherit;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ssp-red);
    box-shadow: 0 0 0 3px rgba(229, 13, 20, .15);
}
input.error, select.error, textarea.error {
    border-color: var(--ssp-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231E2731' d='M6 8 0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.checkbox-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .92rem; color: var(--ssp-gray-700);
}
.checkbox-row input { margin-top: 3px; }

/* =================== BUTTONS =================== */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px;
    background: var(--ssp-red);
    color: var(--ssp-white);
    border: 1px solid var(--ssp-red);
    border-radius: var(--ssp-radius);
    font-weight: 600; font-size: .93rem;
    cursor: pointer;
    transition: background .15s, transform .05s, box-shadow .15s;
    text-decoration: none;
}
.btn:hover { background: var(--ssp-red-dark); border-color: var(--ssp-red-dark); color: var(--ssp-white); text-decoration: none; box-shadow: var(--ssp-shadow); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-secondary {
    background: var(--ssp-white);
    color: var(--ssp-black);
    border: 1px solid var(--ssp-border);
}
.btn-secondary:hover { background: var(--ssp-gray-50); color: var(--ssp-black); border-color: var(--ssp-gray-300); }

.btn-ghost {
    background: transparent;
    color: var(--ssp-gray-700);
    border: 0;
}
.btn-ghost:hover { background: var(--ssp-gray-100); color: var(--ssp-black); }

.btn-dark {
    background: var(--ssp-black);
    color: var(--ssp-white);
    border-color: var(--ssp-black);
}
.btn-dark:hover { background: var(--ssp-black-soft); color: var(--ssp-white); border-color: var(--ssp-black-soft); }

.btn-danger {
    background: var(--ssp-danger);
    border-color: var(--ssp-danger);
}
.btn-danger:hover { background: #DC2626; border-color: #DC2626; }

.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* =================== ALERTS / FLASH =================== */

.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px;
    border-radius: var(--ssp-radius);
    margin-bottom: 16px;
    border: 1px solid transparent;
    font-size: .92rem;
}
.alert.success { background: var(--ssp-success-bg); border-color: rgba(16,185,129,.3); color: #065F46; }
.alert.error   { background: var(--ssp-danger-bg);  border-color: rgba(239,68,68,.3);  color: #7F1D1D; }
.alert.warning { background: var(--ssp-warning-bg); border-color: rgba(245,158,11,.3); color: #78350F; }
.alert.info    { background: var(--ssp-info-bg);    border-color: rgba(59,130,246,.3); color: #1E3A8A; }

/* =================== TABLES =================== */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
    width: 100%; border-collapse: collapse; font-size: .92rem;
}
table.data th, table.data td {
    padding: 11px 14px; text-align: left;
    border-bottom: 1px solid var(--ssp-border);
    vertical-align: middle;
}
table.data th {
    font-weight: 600; color: var(--ssp-gray-600); font-size: .78rem;
    text-transform: uppercase; letter-spacing: .04em;
    background: var(--ssp-gray-50);
}
table.data tbody tr:hover { background: var(--ssp-gray-50); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* =================== BADGES & STATUTS =================== */

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px;
    background: var(--ssp-gray-100);
    color: var(--ssp-gray-700);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.4;
}
.badge.red     { background: var(--ssp-red-soft);   color: var(--ssp-red); }
.badge.dark    { background: var(--ssp-black);      color: var(--ssp-white); }
.badge.success { background: var(--ssp-success-bg); color: #065F46; }
.badge.danger  { background: var(--ssp-danger-bg);  color: #7F1D1D; }
.badge.warning { background: var(--ssp-warning-bg); color: #78350F; }
.badge.info    { background: var(--ssp-info-bg);    color: #1E3A8A; }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--ssp-gray-400); vertical-align: middle; }

/* =================== PROGRESS =================== */

.progress {
    background: var(--ssp-gray-200);
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}
.progress > .bar {
    height: 100%;
    background: var(--ssp-red);
    border-radius: inherit;
    transition: width .3s;
}

/* =================== WIZARD =================== */

.wizard {
    max-width: 720px;
    margin: 0 auto;
}
.wizard-steps {
    display: flex; gap: 0; margin-bottom: 28px;
    background: var(--ssp-white); border: 1px solid var(--ssp-border); border-radius: var(--ssp-radius-lg);
    padding: 6px; align-items: stretch;
}
.wizard-steps .step {
    flex: 1; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; color: var(--ssp-gray-500);
    font-size: .88rem; font-weight: 500;
    border-radius: var(--ssp-radius);
    text-decoration: none;
}
.wizard-steps .step .n {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--ssp-gray-100); color: var(--ssp-gray-500);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .82rem;
}
.wizard-steps .step.done    { color: var(--ssp-black); }
.wizard-steps .step.done .n { background: var(--ssp-success); color: var(--ssp-white); }
.wizard-steps .step.active  { background: var(--ssp-black); color: var(--ssp-white); }
.wizard-steps .step.active .n { background: var(--ssp-red); color: var(--ssp-white); }

.wizard-card {
    background: var(--ssp-white); border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius-lg); padding: 32px; box-shadow: var(--ssp-shadow-sm);
}
.wizard-card .wizard-eyebrow { text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; color: var(--ssp-red); font-weight: 700; }
.wizard-card h2 { margin: 8px 0 6px; font-size: 1.6rem; }
.wizard-card p.lead { margin-bottom: 24px; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

/* =================== HOME (landing) =================== */

.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF6F6 100%);
    text-align: center;
}
.hero h1 {
    font-size: 2.7rem; line-height: 1.1;
    max-width: 800px; margin: 0 auto 18px;
}
.hero h1 .accent { color: var(--ssp-red); }
.hero p.lead { max-width: 640px; margin: 0 auto 28px; }
.hero .cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-mockup {
    margin: 48px auto 0; max-width: 980px;
    background: var(--ssp-white); border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius-lg); box-shadow: var(--ssp-shadow-lg);
    padding: 12px;
}

.section { padding: 64px 0; }
.section.alt { background: var(--ssp-white); }
.section h2 { text-align: center; font-size: 2rem; margin-bottom: 12px; }
.section .section-sub { text-align: center; color: var(--ssp-gray-600); margin-bottom: 40px; }

.feature {
    background: var(--ssp-white); border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius-lg); padding: 28px;
    transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--ssp-shadow); }
.feature .feature-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--ssp-red-soft); color: var(--ssp-red);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--ssp-gray-600); margin: 0; font-size: .94rem; }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
    background: var(--ssp-white); border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius-lg); padding: 32px 24px;
    text-align: left; position: relative;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.price-card:hover { border-color: var(--ssp-red); box-shadow: var(--ssp-shadow); transform: translateY(-2px); }
.price-card.featured {
    border: 2px solid var(--ssp-red);
    box-shadow: 0 12px 36px rgba(229, 13, 20, 0.15);
}
.price-card .featured-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--ssp-red); color: var(--ssp-white);
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { color: var(--ssp-red); margin-bottom: 8px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.price-card .price { font-size: 2.4rem; font-weight: 800; color: var(--ssp-black); letter-spacing: -0.02em; }
.price-card .price .unit { font-size: .9rem; font-weight: 500; color: var(--ssp-gray-500); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-card li { padding: 7px 0; color: var(--ssp-gray-700); font-size: .92rem; display: flex; gap: 8px; align-items: flex-start; }
.price-card li::before {
    content: ""; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2310B981' d='M14 4 5.5 12.5 2 9l1.5-1.5L5.5 9.5 12.5 2.5z'/></svg>") center/contain no-repeat;
}

/* =================== FOOTER =================== */

.public-footer {
    background: var(--ssp-black);
    color: var(--ssp-gray-300);
    padding: 40px 0 24px;
    margin-top: 64px;
}
.public-footer a { color: var(--ssp-gray-300); }
.public-footer a:hover { color: var(--ssp-white); }
.public-footer .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 24px;
}
@media (max-width: 720px) { .public-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
.public-footer h5 { color: var(--ssp-white); text-transform: uppercase; font-size: .76rem; letter-spacing: .08em; margin-bottom: 12px; }
.public-footer .footer-brand { color: var(--ssp-white); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 700; }
.public-footer .footer-brand img { height: 28px; filter: brightness(0) invert(1); }
.public-footer .copy { border-top: 1px solid var(--ssp-black-soft); padding-top: 16px; font-size: .82rem; color: var(--ssp-gray-400); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* =================== AUTH CARDS =================== */

.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 32px 16px;
    background: linear-gradient(135deg, #1E2731 0%, #2A3441 100%);
}
.auth-card {
    background: var(--ssp-white);
    border-radius: var(--ssp-radius-lg);
    padding: 40px;
    width: 100%; max-width: 460px;
    box-shadow: var(--ssp-shadow-lg);
}
.auth-card .brand { justify-content: center; margin-bottom: 20px; }
.auth-card h1 { font-size: 1.6rem; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--ssp-gray-500); margin-bottom: 24px; }
.auth-card .auth-foot { text-align: center; font-size: .9rem; margin-top: 20px; color: var(--ssp-gray-600); }

/* =================== TABS =================== */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ssp-border); margin-bottom: 20px; }
.tab-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; color: var(--ssp-gray-600); font-weight: 600;
    border-radius: var(--ssp-radius) var(--ssp-radius) 0 0;
    border: 1px solid transparent; border-bottom: 0;
    margin-bottom: -1px;
}
.tab-link:hover { color: var(--ssp-black); text-decoration: none; }
.tab-link.active { background: var(--ssp-white); border-color: var(--ssp-border); color: var(--ssp-red); }

/* =================== KPI =================== */

.kpi {
    background: var(--ssp-white); border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius-lg); padding: 20px;
}
.kpi .kpi-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ssp-gray-500); font-weight: 600; }
.kpi .kpi-value { font-size: 2rem; font-weight: 800; color: var(--ssp-black); line-height: 1.1; margin: 6px 0 0; }
.kpi .kpi-trend { font-size: .82rem; color: var(--ssp-gray-500); margin-top: 4px; }
.kpi .kpi-trend.up { color: var(--ssp-success); }

/* =================== UTIL =================== */

.logs {
    background: var(--ssp-gray-900); color: #E5E7EB;
    font-family: var(--ssp-font-mono); font-size: .82rem;
    padding: 14px; border-radius: var(--ssp-radius);
    height: 220px; overflow: auto; white-space: pre-wrap;
}

.divider { height: 1px; background: var(--ssp-border); margin: 20px 0; }

.modal-back {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal {
    background: var(--ssp-white); border-radius: var(--ssp-radius-lg);
    padding: 28px; max-width: 520px; width: 100%;
    box-shadow: var(--ssp-shadow-lg);
}
.modal h3 { margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Empty states */
.empty-state {
    text-align: center; padding: 56px 24px; color: var(--ssp-gray-500);
}
.empty-state .empty-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--ssp-red-soft); color: var(--ssp-red);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.empty-state h3 { color: var(--ssp-black); margin-bottom: 8px; }

/* Toast */
.toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 2000;
    background: var(--ssp-black); color: var(--ssp-white);
    padding: 12px 18px; border-radius: var(--ssp-radius);
    box-shadow: var(--ssp-shadow-lg); font-size: .9rem;
    animation: slideUp .25s ease-out;
}
.toast.success { background: var(--ssp-success); }
.toast.error   { background: var(--ssp-danger); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* =================== VERIFY EMAIL BANNER =================== */

.verify-banner {
    background: var(--ssp-warning-bg);
    border-bottom: 1px solid rgba(245, 158, 11, .35);
    color: #78350F;
    padding: 10px 28px;
    display: flex; align-items: center; gap: 14px;
    font-size: .92rem;
}
.verify-banner [data-lucide] { color: var(--ssp-warning); flex: 0 0 auto; }
.verify-banner span { flex: 1; }
@media (max-width: 720px) {
    .verify-banner { flex-direction: column; align-items: flex-start; padding: 12px 16px; }
}

/* =================== ICONS (Lucide) =================== */

.ssp-ic, [data-lucide] {
    display: inline-block;
    width: 18px; height: 18px;
    vertical-align: -3px;
    stroke-width: 2;
    color: currentColor;
    flex: 0 0 auto;
}
.btn .ssp-ic, .btn [data-lucide] { vertical-align: -4px; }
.btn-sm .ssp-ic, .btn-sm [data-lucide] { width: 15px; height: 15px; }
.btn-lg .ssp-ic, .btn-lg [data-lucide] { width: 20px; height: 20px; }
.sidebar nav a .ssp-ic, .sidebar nav a [data-lucide] { width: 18px; height: 18px; vertical-align: middle; }
.feature .ssp-ic, .feature [data-lucide] { width: 22px; height: 22px; }
.feature-icon .ssp-ic, .feature-icon [data-lucide] { width: 22px; height: 22px; }
.empty-icon .ssp-ic, .empty-icon [data-lucide] { width: 28px; height: 28px; }
h1 .ssp-ic, h2 .ssp-ic, h3 .ssp-ic { vertical-align: -4px; }
.kpi-label .ssp-ic { width: 14px; height: 14px; vertical-align: -2px; }
.alert .ssp-ic { flex: 0 0 18px; margin-top: 2px; }

/* Icône volumineuse pour les pages de confirmation */
.big-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    margin: 0 auto 16px;
}
.big-icon [data-lucide], .big-icon .ssp-ic { width: 32px; height: 32px; }
.big-icon.success { background: var(--ssp-success-bg); color: var(--ssp-success); }
.big-icon.danger  { background: var(--ssp-danger-bg);  color: var(--ssp-danger); }
.big-icon.brand   { background: var(--ssp-red-soft);   color: var(--ssp-red); }

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: var(--ssp-white);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
