/* ═══════════════════════════════════════════════════════
   GhostPurge — Design System
   Charte : fond #0f172a, violet #7c3aed, vert #4ade80
   ═══════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e1b4b;
    --bg-card: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --success: #4ade80;
    --danger: #f87171;
    --border: #334155;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f172a url('/static/img/background.jpg') center/cover fixed no-repeat;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ─── Layout ─────────────────────────────────────────── */

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

/* ─── Navbar ─────────────────────────────────────────── */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-logo img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.5));
}

.navbar-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navbar-links a:hover { color: var(--text-primary); }

/* ─── Hero ────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 60px 0 60px;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    height: 220px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.5));
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 8px;
    line-height: 1.5;
}

.hero .tagline {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* ─── Boutons ─────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-success {
    background: var(--success);
    color: #0f172a;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ─── Cards ───────────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.card-highlight {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ─── Steps ───────────────────────────────────────────── */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 60px 0;
}

.steps-3 {
    margin-bottom: 0;
}

.step {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ─── RGPD pleine largeur ─────────────────────────────── */

.rgpd-fullwidth {
    text-align: center;
    padding: 24px 32px;
    max-width: 66%;
    margin-left: auto;
    margin-right: auto;
}

.rgpd-fullwidth h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.rgpd-fullwidth p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ─── Pricing ─────────────────────────────────────────── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    position: relative;
}

.pricing-card.popular::before {
    content: "Populaire";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.pricing-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features li::before {
    content: "✓";
    color: var(--success);
    margin-right: 8px;
    font-weight: 700;
}

/* ─── Forms ───────────────────────────────────────────── */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
    color: #64748b;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-checkbox label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ─── Dashboard ───────────────────────────────────────── */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-primary);
    border-radius: 50px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 50px;
    transition: width 0.5s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: #fbbf24; }
.stat-card.danger .stat-value { color: var(--danger); }

/* ─── Verify page ─────────────────────────────────────── */

.verify-box {
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
}

.code-input {
    width: 200px !important;
    text-align: center;
    font-size: 1.5rem !important;
    letter-spacing: 8px;
    font-family: 'JetBrains Mono', monospace !important;
}

/* ─── Footer ──────────────────────────────────────────── */

.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 80px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 12px;
}

.footer a:hover { color: var(--text-primary); }

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; white-space: normal; }
    .hero-logo img { height: 120px; }
    .steps { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .navbar-links { display: none; }
}

/* ─── Utility ─────────────────────────────────────────── */

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ─── Avis clients (bandeau vertical pleine largeur) ────── */

.avis-bandeau {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.avis-bandeau-titre {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.avis-liste-verticale {
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.avis-liste-verticale::-webkit-scrollbar {
    width: 4px;
}
.avis-liste-verticale::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
.avis-liste-verticale::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.avis-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.avis-item-etoiles {
    font-size: 1rem;
    color: #fbbf24;
    margin-bottom: 6px;
}

.avis-item-texte {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-style: italic;
}

.avis-item-auteur {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    text-align: right;
}
