/* ══════════════════════════════════════
   HONEYPOT VPS — T-Pot
   Styles spécifiques à la page de projet
══════════════════════════════════════ */

/* ── Hero ──────────────────────────── */
.hp-hero {
    background: linear-gradient(150deg, #020c14 0%, #0f172a 50%, #05140a 100%);
    padding: 6rem 2rem 4.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 65%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(59, 130, 246, 0.07) 0%, transparent 45%);
    pointer-events: none;
}

.hp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.hp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 1.75rem;
    transition: color 0.2s;
}

.hp-breadcrumb:hover {
    color: rgba(255, 255, 255, 0.9);
}

.hp-breadcrumb svg {
    width: 14px;
    height: 14px;
}

.hp-hero-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hp-hero h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hp-hero-gradient {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.hp-hero-sub strong {
    color: rgba(255, 255, 255, 0.95);
}

.hp-hero-badges {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hp-hero-badges span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ── Conteneur ──────────────────────── */
.hp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Titres de section ──────────────── */
.hp-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hp-section-title svg {
    width: 22px;
    height: 22px;
    color: #10b981;
    flex-shrink: 0;
}

.hp-section-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 680px;
}

/* ── Badges ─────────────────────────── */
.hp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.hp-badge--blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hp-badge--purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.hp-badge--green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.hp-badge--orange {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

/* ── Grille explication ─────────────── */
.hp-explain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hp-explain-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hp-explain-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
}

.hp-explain-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.hp-explain-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.hp-explain-icon svg {
    width: 22px;
    height: 22px;
}

.hp-icon--blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.hp-icon--blue svg { stroke: #3b82f6; }

.hp-icon--orange {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

.hp-icon--orange svg { stroke: #f97316; }

.hp-icon--green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.hp-icon--green svg { stroke: #10b981; }

/* ── Carte T-Pot ────────────────────── */
.hp-tpot-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hp-tpot-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    flex-wrap: wrap;
}

.hp-tpot-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hp-tpot-logo svg {
    width: 28px;
    height: 28px;
    stroke: #10b981;
}

.hp-tpot-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hp-tpot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 0;
}

.hp-tpot-block {
    padding: 1.75rem 2rem;
    border-right: 1px solid var(--border-color, #e5e7eb);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.hp-tpot-block:last-child {
    border-right: none;
}

.hp-tpot-block h4 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.hp-tpot-block h4 svg {
    width: 16px;
    height: 16px;
    stroke: #10b981;
    flex-shrink: 0;
}

.hp-tpot-block p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.hp-tpot-tools {
    padding: 1.25rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

/* ── Flux infra ─────────────────────── */
.hp-infra-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.hp-infra-node {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1.4rem 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hp-infra-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.hp-infra-icon svg {
    width: 20px;
    height: 20px;
}

.hp-node--internet .hp-infra-icon {
    background: rgba(239, 68, 68, 0.1);
}
.hp-node--internet .hp-infra-icon svg { stroke: #ef4444; }

.hp-node--vps .hp-infra-icon {
    background: rgba(59, 130, 246, 0.1);
}
.hp-node--vps .hp-infra-icon svg { stroke: #3b82f6; }

.hp-node--docker .hp-infra-icon {
    background: rgba(14, 165, 233, 0.1);
}
.hp-node--docker .hp-infra-icon svg { stroke: #0ea5e9; }

.hp-node--kibana .hp-infra-icon {
    background: rgba(16, 185, 129, 0.1);
}
.hp-node--kibana .hp-infra-icon svg { stroke: #10b981; }

.hp-infra-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
}

.hp-infra-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.15rem 0 0.4rem;
}

.hp-infra-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.hp-infra-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0;
}

.hp-infra-line {
    width: 2px;
    height: 16px;
    background: var(--border-color, #e5e7eb);
}

.hp-infra-connector-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ── Prérequis ──────────────────────── */
.hp-prereq-box {
    background: var(--bg-secondary, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}

.hp-prereq-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.hp-prereq-box h4 svg {
    width: 18px;
    height: 18px;
    stroke: #10b981;
}

.hp-prereq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.hp-prereq-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hp-prereq-item svg {
    width: 16px;
    height: 16px;
    stroke: #3b82f6;
    flex-shrink: 0;
}

/* ── Étapes ─────────────────────────── */
.hp-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hp-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.hp-step-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.hp-step-body {
    flex: 1;
}

.hp-step-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.hp-step-body > p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* ── Blocs de code ──────────────────── */
.hp-code-block {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.hp-code-header {
    background: #1e293b;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-code-lang {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.hp-code-block pre {
    background: #0f172a;
    color: #e2e8f0;
    margin: 0;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.88rem;
    line-height: 1.7;
}

.hp-code-block code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* ── Boîtes d'info ──────────────────── */
.hp-info-box {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
}

.hp-info-box svg {
    width: 18px;
    height: 18px;
    stroke: #3b82f6;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.hp-info-box p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hp-info-box code {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
}

.hp-info-box--success {
    background: rgba(16, 185, 129, 0.07);
    border-color: rgba(16, 185, 129, 0.2);
    border-left-color: #10b981;
}

.hp-info-box--success svg { stroke: #10b981; }

/* ── Honeypots grid ─────────────────── */
.hp-hpots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.hp-hpot-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hp-hpot-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.25rem;
}

.hp-hpot-head svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.hp-hpot-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.hp-hpot-head--cowrie   { background: linear-gradient(135deg, #f97316, #ef4444); }
.hp-hpot-head--dionaea  { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.hp-hpot-head--honeytrap { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.hp-hpot-head--adbhoney { background: linear-gradient(135deg, #10b981, #059669); }
.hp-hpot-head--heralding { background: linear-gradient(135deg, #0ea5e9, #3b82f6); }
.hp-hpot-head--ciscoasa  { background: linear-gradient(135deg, #f59e0b, #f97316); }

.hp-hpot-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hp-hpot-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.hp-hpot-why {
    font-size: 0.83rem !important;
    color: var(--text-secondary);
    background: var(--bg-secondary, #f9fafb);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    border-left: 3px solid var(--border-color, #e5e7eb);
}

/* ── Stats ──────────────────────────── */
.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.hp-stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hp-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.hp-stat-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.hp-stat-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ── Observations ───────────────────── */
.hp-obs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.hp-obs-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hp-obs-card h4 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.hp-obs-card h4 svg {
    width: 16px;
    height: 16px;
    stroke: #10b981;
    flex-shrink: 0;
}

.hp-obs-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ── Apprentissages ─────────────────── */
.hp-learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.hp-learn-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hp-learn-num {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.15);
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.hp-learn-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hp-learn-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ── Schéma réseau ──────────────────── */
.hp-schema-wrapper {
    background: #0c1322;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hp-schema-svg {
    display: block;
    width: 100%;
    min-width: 760px;
    height: auto;
}

/* ── Flux d'explication ─────────────── */
.hp-flow-explain {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hp-flow-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hp-flow-step strong {
    color: var(--text-primary);
}

.hp-flow-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 800;
    color: white;
    margin-top: 0.05rem;
}

.hp-flow-num--red    { background: #ef4444; box-shadow: 0 2px 8px rgba(239,68,68,0.35); }
.hp-flow-num--orange { background: #f97316; box-shadow: 0 2px 8px rgba(249,115,22,0.35); }
.hp-flow-num--green  { background: #10b981; box-shadow: 0 2px 8px rgba(16,185,129,0.35); }
.hp-flow-num--blue   { background: #3b82f6; box-shadow: 0 2px 8px rgba(59,130,246,0.35); }

/* ── Retour nav ─────────────────────── */
.hp-back-nav {
    text-align: center;
    padding-top: 1.5rem;
}

/* ── Responsive ─────────────────────── */
@media (max-width: 768px) {
    .hp-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .hp-container {
        padding: 0 1rem;
    }

    .hp-tpot-grid {
        grid-template-columns: 1fr;
    }

    .hp-tpot-block {
        border-right: none;
    }

    .hp-step {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hp-step-num {
        margin-top: 0;
    }

    .hp-infra-node {
        flex-direction: column;
        gap: 0.75rem;
    }
}
