/* ============================================================
   VitrineProfil — main.css
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    --primary:       #6366f1;
    --primary-dark:  #4f46e5;
    --primary-light: #e0e7ff;
    --secondary:     #f8fafc;
    --dark:          #0f172a;
    --text:          #1e293b;
    --muted:         #64748b;
    --border:        #e2e8f0;
    --success:       #22c55e;
    --success-bg:    #f0fdf4;
    --error:         #ef4444;
    --error-bg:      #fef2f2;
    --warning:       #f59e0b;
    --white:         #ffffff;
    --shadow-sm:     0 1px 2px rgba(0,0,0,.06);
    --shadow:        0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:     0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg:     0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --radius:        8px;
    --radius-lg:     12px;
    --radius-xl:     20px;
    --font:          'Inter', system-ui, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
button { font-family: inherit; cursor: pointer; }
textarea { resize: vertical; }

/* ── Typography ──────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
    border: 2px solid transparent; text-decoration: none; transition: all 0.15s;
    cursor: pointer; white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover  { background: var(--primary-light); }
.btn-ghost    { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover    { background: var(--secondary); }
.btn-white    { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover    { background: var(--primary-light); }
.btn-danger   { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger:hover   { background: #dc2626; border-color: #dc2626; }

.btn-lg  { padding: 14px 28px; font-size: 16px; }
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-xs  { padding: 5px 10px; font-size: 12px; }
.btn-full { width: 100%; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 18px; color: var(--dark);
    text-decoration: none; flex-shrink: 0;
}
.logo-icon {
    width: 32px; height: 32px; background: var(--primary); color: #fff;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.nav-links {
    display: flex; align-items: center; gap: 4px; flex: 1;
}
.nav-links a {
    padding: 6px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
    color: var(--muted); text-decoration: none; transition: all 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--secondary); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-burger {
    display: none; width: 36px; height: 36px; background: none; border: none;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #fafafe 0%, #f0f4ff 100%);
    overflow: hidden;
}
.hero .container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center;
    background: var(--primary-light); color: var(--primary);
    padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--muted); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: var(--muted); }

/* Hero mockup */
.hero-mockup {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    overflow: hidden; max-width: 440px;
}
.mockup-bar {
    background: #f1f5f9; padding: 10px 16px;
    display: flex; gap: 6px; align-items: center;
    border-bottom: 1px solid var(--border);
}
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.mockup-cv { padding: 24px; }
.mock-header { display: flex; gap: 14px; margin-bottom: 20px; align-items: center; }
.mock-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light); flex-shrink: 0; }
.mock-info { flex: 1; }
.mock-line { height: 10px; background: #e2e8f0; border-radius: 4px; margin-bottom: 8px; }
.mock-line-name { width: 60%; height: 14px; background: #cbd5e1; }
.mock-line-title { width: 40%; background: var(--primary-light); }
.mock-line-short { width: 70%; }
.mock-line-shorter { width: 45%; }
.mock-section { margin-bottom: 18px; }
.mock-label { width: 80px; height: 8px; background: var(--primary-light); border-radius: 4px; margin-bottom: 10px; }
.mock-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-tag { height: 24px; width: 60px; background: var(--primary-light); border-radius: 100px; }
.mock-tag-lg { width: 90px; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--secondary); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ── Steps ───────────────────────────────────────────────── */
.steps {
    display: flex; align-items: flex-start; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.step { flex: 1; min-width: 200px; max-width: 280px; text-align: center; position: relative; }
.step-icon {
    width: 56px; height: 56px; border-radius: var(--radius-lg); margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
}
.step-icon-1 { background: var(--primary-light); color: var(--primary); }
.step-icon-2 { background: #dbeafe; color: #3b82f6; }
.step-icon-3 { background: #fce7f3; color: #ec4899; }
.step-number { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.step-arrow { font-size: 24px; color: var(--border); align-self: center; padding: 0 8px; }

/* ── Two-col ─────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col-text .badge { margin-bottom: 16px; }
.two-col-text h2 { margin-bottom: 16px; }
.two-col-text p { color: var(--muted); margin-bottom: 24px; font-size: 16px; line-height: 1.7; }
.two-col-text .btn { margin-top: 8px; }

.feature-list { list-style: none; margin-bottom: 32px; }
.feature-list li { padding: 6px 0; font-size: 15px; color: var(--text); }

/* ── Badges ──────────────────────────────────────────────── */
.badge { display: inline-flex; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-free { background: #d1fae5; color: #065f46; }

.plan-badge { padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; display: inline-block; }
.plan-badge-free     { background: #f0fdf4; color: #16a34a; }
.plan-badge-essential { background: var(--primary-light); color: var(--primary); }
.plan-badge-pro      { background: #fef3c7; color: #92400e; }

/* ── Feature card (CV) ───────────────────────────────────── */
.feature-card-cv {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    box-shadow: var(--shadow-md);
}
.feature-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.plan-price { font-size: 28px; font-weight: 800; color: var(--dark); }
.plan-items { list-style: none; }
.plan-items li {
    padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px;
    display: flex; align-items: center; gap: 8px;
}
.plan-items li::before { content: '✓'; color: var(--success); font-weight: 700; }
.plan-items li:last-child { border-bottom: none; }

/* ── Mini-site grid ──────────────────────────────────────── */
.minisite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.minisite-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 24px;
    transition: all 0.2s; position: relative;
}
.minisite-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-light); }
.minisite-icon { font-size: 28px; margin-bottom: 14px; }
.minisite-card h3 { margin-bottom: 8px; font-size: 16px; }
.minisite-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.minisite-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; background: var(--primary-light); color: var(--primary); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 28px;
    display: flex; flex-direction: column;
}
.pricing-card-featured {
    border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light), var(--shadow-md);
    position: relative;
}
.pricing-featured-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 14px; border-radius: 100px;
}
.pricing-header { margin-bottom: 24px; }
.pricing-header h3 { margin-bottom: 12px; }
.price-amount { font-size: 32px; font-weight: 800; color: var(--dark); }
.price-period { font-size: 14px; color: var(--muted); margin-left: 4px; }
.pricing-features { list-style: none; flex: 1; margin-bottom: 28px; }
.pricing-features li { padding: 8px 0; font-size: 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.feature-yes::before { content: '✓'; color: var(--success); font-weight: 700; }
.feature-no { color: var(--muted); }
.feature-no::before { content: '—'; color: var(--border); font-weight: 700; }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
    padding: 80px 0; text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 32px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--dark); color: #94a3b8; padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-col a { display: block; color: #94a3b8; text-decoration: none; font-size: 14px; padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; font-size: 13px; }

/* ── Forms (shared) ──────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 14px; font-family: var(--font); color: var(--text);
    background: var(--white); transition: border-color 0.15s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-group input:disabled { background: var(--secondary); color: var(--muted); cursor: not-allowed; }
.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--error); }
.form-group.has-error input:focus,
.form-group.has-error textarea:focus { box-shadow: 0 0 0 3px #fee2e2; }
.form-error { display: block; font-size: 13px; color: var(--error); margin-top: 5px; }
.form-hint  { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-legal { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: var(--error-bg); color: #991b1b; border: 1px solid #fecaca; }

/* ── Auth ────────────────────────────────────────────────── */
.auth-body { background: linear-gradient(135deg, #fafafe 0%, #f0f4ff 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-wrapper { width: 100%; max-width: 440px; }
.auth-card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 48px 40px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { justify-content: center; text-decoration: none; }
.auth-title { font-size: 24px; margin-bottom: 8px; text-align: center; }
.auth-subtitle { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 20px; }
.auth-footer-text { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-footer-text a { color: var(--muted); }
.auth-form-wrap {}

/* ── Error page ──────────────────────────────────────────── */
.error-page { padding: 100px 0; text-align: center; }
.error-code { font-size: 120px; font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 16px; }
.error-content h1 { margin-bottom: 12px; }
.error-content p { color: var(--muted); margin-bottom: 32px; font-size: 17px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px; z-index: 40; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 0; }
    .nav-actions .btn-ghost { display: none; }
    .nav-burger { display: flex; }

    .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: flex; justify-content: center; }

    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); }

    .two-col { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 24px; }
}
