/* ══════════════════════════════════════
   VPN SSL ZYXEL & NEBULA
   Styles spécifiques à la page de projet
   (palette : vert Zyxel + bleu Nebula)
══════════════════════════════════════ */

/* ── Hero ──────────────────────────── */
.vz-hero {
    background: linear-gradient(150deg, #04140a 0%, #0a1f2e 50%, #04101f 100%);
    padding: 6rem 2rem 4.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.vz-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 65%, rgba(132, 204, 22, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(56, 189, 248, 0.10) 0%, transparent 45%);
    pointer-events: none;
}

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

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

.vz-breadcrumb:hover {
    color: rgba(255, 255, 255, 0.95);
}

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

.vz-hero-tag {
    display: inline-block;
    background: rgba(132, 204, 22, 0.15);
    border: 1px solid rgba(132, 204, 22, 0.4);
    color: #bef264;
    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;
}

.vz-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);
}

.vz-hero-gradient {
    background: linear-gradient(135deg, #84cc16, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.vz-hero-sub strong {
    color: rgba(255, 255, 255, 0.98);
}

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

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

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

/* ── Titres de section ──────────────── */
.vz-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;
}

.vz-section-title svg {
    width: 22px;
    height: 22px;
    color: #84cc16;
    flex-shrink: 0;
}

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

/* ── Badges ─────────────────────────── */
.vz-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.vz-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.vz-badge--blue   { background: rgba(56,189,248,.12); color:#0284c7; border:1px solid rgba(56,189,248,.3); }
.vz-badge--purple { background: rgba(139,92,246,.12); color:#7c3aed; border:1px solid rgba(139,92,246,.3); }
.vz-badge--green  { background: rgba(132,204,22,.15); color:#4d7c0f; border:1px solid rgba(132,204,22,.35); }
.vz-badge--orange { background: rgba(249,115,22,.12); color:#ea580c; border:1px solid rgba(249,115,22,.3); }

/* ── Carte marque (Zyxel / Nebula) ───── */
.vz-brand-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.vz-brand-card--nebula {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(56, 189, 248, 0.04) 100%);
}

.vz-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg-secondary, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
}

.vz-brand-img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

.vz-brand-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}

.vz-brand-text {
    font-size: 2rem;
    font-weight: 900;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.vz-brand-accent {
    color: #84cc16;
}

.vz-brand-tagline {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #6b7280;
    text-transform: uppercase;
}

.vz-brand-fallback--nebula .vz-brand-text {
    color: #0ea5e9;
    font-size: 1.85rem;
    font-style: italic;
}

.vz-brand-fallback--nebula svg {
    width: 36px;
    height: 36px;
    stroke: #0ea5e9;
    margin-bottom: 0.35rem;
}

.vz-brand-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.vz-brand-body strong {
    color: var(--text-primary);
}

.vz-brand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Carte produit USG FLEX 50H ─────── */
.vz-product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.vz-product-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.08), rgba(56, 189, 248, 0.05));
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.vz-product-head svg {
    width: 32px;
    height: 32px;
    stroke: #84cc16;
    flex-shrink: 0;
}

.vz-product-head h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.vz-product-head p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.15rem 0 0;
}

.vz-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
}

.vz-product-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    border-right: 1px solid var(--border-color, #e5e7eb);
    border-top: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.vz-product-item svg {
    width: 22px;
    height: 22px;
    stroke: #84cc16;
    flex-shrink: 0;
}

.vz-product-item strong {
    color: var(--text-primary);
}

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

.vz-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);
}

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

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

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

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

.vz-icon--blue   { background: rgba(56,189,248,.12); }
.vz-icon--blue svg   { stroke:#0ea5e9; }
.vz-icon--green  { background: rgba(132,204,22,.15); }
.vz-icon--green svg  { stroke:#65a30d; }
.vz-icon--orange { background: rgba(249,115,22,.12); }
.vz-icon--orange svg { stroke:#f97316; }

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

.vz-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);
}

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

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

.vz-node--client .vz-infra-icon   { background: rgba(56,189,248,.12); }
.vz-node--client .vz-infra-icon svg   { stroke:#0ea5e9; }
.vz-node--firewall .vz-infra-icon { background: rgba(132,204,22,.15); }
.vz-node--firewall .vz-infra-icon svg { stroke:#65a30d; }
.vz-node--lan .vz-infra-icon      { background: rgba(139,92,246,.12); }
.vz-node--lan .vz-infra-icon svg      { stroke:#7c3aed; }

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

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

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

.vz-infra-body code {
    background: rgba(132, 204, 22, 0.12);
    color: #4d7c0f;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
}

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

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

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

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

.vz-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;
}

.vz-prereq-box h4 svg {
    width: 18px;
    height: 18px;
    stroke: #84cc16;
}

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

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

.vz-prereq-item svg {
    width: 16px;
    height: 16px;
    stroke: #0ea5e9;
    flex-shrink: 0;
}

.vz-prereq-item strong {
    color: var(--text-primary);
}

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

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

.vz-step-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #84cc16, #0ea5e9);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.3);
}

.vz-step-body {
    flex: 1;
    min-width: 0;
}

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

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

.vz-step-body code {
    background: rgba(132, 204, 22, 0.12);
    color: #4d7c0f;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: 'Courier New', monospace;
}

.vz-list {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.85;
}

.vz-list li strong {
    color: var(--text-primary);
}

/* ── Boîtes d'info ──────────────────── */
.vz-info-box {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(56, 189, 248, 0.07);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-left: 3px solid #0ea5e9;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
}

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

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

.vz-info-box code {
    background: rgba(56, 189, 248, 0.12);
    color: #0284c7;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
}

.vz-info-box--success {
    background: rgba(132, 204, 22, 0.08);
    border-color: rgba(132, 204, 22, 0.25);
    border-left-color: #84cc16;
}

.vz-info-box--success svg { stroke: #65a30d; }

/* ── Placeholders photo ─────────────── */
.vz-photo-block {
    margin: 1.25rem 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-primary);
}

.vz-photo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--bg-secondary, #f9fafb);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.vz-photo-header svg {
    width: 16px;
    height: 16px;
    stroke: #84cc16;
}

.vz-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(132, 204, 22, 0.04) 0,
            rgba(132, 204, 22, 0.04) 12px,
            transparent 12px,
            transparent 24px
        );
    color: var(--text-secondary);
    border: 2px dashed rgba(132, 204, 22, 0.3);
    border-radius: 0;
    min-height: 160px;
}

.vz-photo-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: #84cc16;
    opacity: 0.7;
}

.vz-photo-placeholder p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.vz-photo-placeholder strong {
    color: var(--text-primary);
}

.vz-photo-placeholder small {
    color: var(--text-secondary);
    opacity: 0.85;
    font-size: 0.78rem;
}

.vz-photo-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: var(--bg-secondary, #f9fafb);
}

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

.vz-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);
}

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

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

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

.vz-learn-card code {
    background: rgba(132, 204, 22, 0.12);
    color: #4d7c0f;
    padding: 0.05em 0.35em;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
}

/* ── Retour ─────────────────────────── */
.vz-back-nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* ══════════════════════════════════════
   DARK MODE
══════════════════════════════════════ */
body.dark-mode .vz-brand-text {
    color: #f1f5f9;
}

body.dark-mode .vz-brand-tagline {
    color: #94a3b8;
}

body.dark-mode .vz-brand-fallback--nebula .vz-brand-text {
    color: #38bdf8;
}

body.dark-mode .vz-photo-placeholder {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(132, 204, 22, 0.06) 0,
            rgba(132, 204, 22, 0.06) 12px,
            transparent 12px,
            transparent 24px
        );
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
    .vz-hero {
        padding: 4.5rem 1.25rem 3.5rem;
    }

    .vz-container {
        padding: 0 1.25rem;
    }

    .vz-brand-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .vz-brand-logo {
        min-height: 90px;
    }

    .vz-step {
        gap: 1rem;
    }

    .vz-step-num {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .vz-product-item {
        border-right: none;
    }

    .vz-photo-placeholder {
        padding: 2rem 1.25rem;
    }
}
