﻿/* VIDE Crawler — Hub index.css */

body.hub-body {
    overflow: auto;
    min-height: 100vh;
    background-color: #f7f7f8;
    background-image: radial-gradient(#111 1px, transparent 1px);
    background-size: 22px 22px;
}

.hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 2.5px solid #111;
    box-shadow: 0 3px 0 #111;
    position: sticky;
    top: 0;
    z-index: 50;
}

.hub-brand { display: flex; align-items: center; gap: 12px; }
.back-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 12px;
    background: #fff;
    border: 2.5px solid #111;
    box-shadow: 3px 3px 0 #111;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    color: #111;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.back-btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 #111; }
.back-btn:active { transform: translate(2px,2px); box-shadow: none; }

.hub-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #111;
    line-height: 1;
}
.hub-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hub-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.hub-hero { text-align: center; }
.hub-hero-title {
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 10px;
}
.hub-hero-desc {
    font-size: 1rem;
    color: #555;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.worlds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.world-card {
    background: #fff;
    border: 2.5px solid #111;
    box-shadow: 6px 6px 0 #111;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.world-card:hover { transform: translate(-4px,-4px); box-shadow: 10px 10px 0 #111; }
.world-card:active { transform: translate(3px,3px); box-shadow: none; }

.card-visual {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.visual-3d { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.visual-pixel { background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%); }

/* Preview 3D Cube animé */
.cube-3d-preview {
    width: 60px; height: 60px;
    background: #cdb4db;
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 8px 8px 0 rgba(255,255,255,0.15);
    animation: cubeSpin 6s linear infinite;
    position: relative;
}
@keyframes cubeSpin {
    0%   { transform: rotate(0deg) translateY(0); }
    50%  { transform: rotate(180deg) translateY(-8px); }
    100% { transform: rotate(360deg) translateY(0); }
}

/* Preview Pixel iso */
.pixel-iso-preview {
    width: 64px;
    height: 40px;
    position: relative;
}
.pixel-iso-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #a2d2ff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 2px solid #fff;
    animation: isoFloat 3s ease-in-out infinite;
}
@keyframes isoFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.card-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: #fff;
    border: 2px solid #111;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111;
}

.card-content {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card-3d .card-content  { border-top: 2.5px solid #111; }
.card-pixel .card-content { border-top: 2.5px solid #111; }

.world-name {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #111;
}
.world-desc {
    font-size: 0.84rem;
    color: #555;
    line-height: 1.55;
    flex: 1;
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1.5px solid rgba(0,0,0,0.1);
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
    background: #f0f0f2;
    border: 1.5px solid #111;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #555;
}
.card-3d  .tag.highlight { background: #e9d5f0; color: #6b21a8; border-color: #6b21a8; }
.card-pixel .tag.highlight { background: #bfdbfe; color: #1d4ed8; border-color: #1d4ed8; }

.card-arrow {
    font-size: 1.2rem;
    font-weight: 900;
    color: #111;
}

/* Legende types de salles */
.legend-section {
    background: #fff;
    border: 2.5px solid #111;
    box-shadow: 5px 5px 0 #111;
    border-radius: 14px;
    padding: 22px 24px;
}
.legend-title {
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid rgba(0,0,0,0.1);
}
.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}
.legend-chip {
    width: 28px; height: 28px;
    border: 2px solid #111;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.legend-info { display: flex; flex-direction: column; }
.legend-name { font-weight: 800; color: #111; font-size: 0.8rem; }
.legend-pct  { font-size: 0.68rem; color: #888; }

.hub-footer {
    text-align: center;
    font-size: 0.7rem;
    color: #888;
    font-weight: 600;
    padding: 0 0 20px;
}

/* Classes de couleur pour légende types de salles (zéro inline style) */
.chip-corridor, .dot-corridor { background-color: #94a3b8; }
.chip-room,     .dot-room     { background-color: #93c5fd; }
.chip-loot,     .dot-loot     { background-color: #fbbf24; }
.chip-danger,   .dot-danger   { background-color: #f87171; }
.chip-mystery,  .dot-mystery  { background-color: #d8b4fe; }

/* =============================================================================
   SECTION ARCHETYPES (LA TRILOGIE DU VIDE)
   ============================================================================= */
.archetypes-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archetypes-header {
    text-align: center;
}

.archetypes-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 6px;
}

.archetypes-subtitle {
    font-size: 0.88rem;
    color: #555;
}

.archetypes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.archetype-card {
    background: #fff;
    border: 2.5px solid #111;
    box-shadow: 4px 4px 0 #111;
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
    user-select: none;
}

.archetype-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 #111;
}

.archetype-card.is-selected {
    border-color: #6f4cb6;
    background: #faf5ff;
    box-shadow: 6px 6px 0 #6f4cb6;
}

.archetype-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archetype-icon-wrapper {
    width: 44px;
    height: 44px;
    border: 2px solid #111;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 2px 2px 0 #111;
}

.icon-warrior { background: #fee2e2; }
.icon-scout   { background: #dcfce7; }
.icon-mage    { background: #ede9fe; }

.archetype-role-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1.5px solid #111;
    background: #fff;
}

.archetype-name {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #111;
}

.archetype-desc {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.5;
    flex: 1;
}

.archetype-perks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8fafc;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #333;
}

.archetype-select-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    border-radius: 8px;
    border: 2px solid #111;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-surface-2);
    transition: all 0.12s ease;
}

.archetype-card.is-selected .archetype-select-indicator {
    background: var(--accent-color);
    color: #111;
}

/* En-tête Hub avec bouton retour très clair */
.hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 2.5px solid #111111;
    background: #ffffff;
}

.hub-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 2.5px solid #111111;
    box-shadow: 3px 3px 0 #111111;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    color: #111111;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.back-btn:hover {
    background: #f1f5f9;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #111111;
}

.back-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.back-arrow {
    font-size: 1.1rem;
    line-height: 1;
}

.hub-logo-img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15)); }


/* Hero Banner avec vide.webp calé à 100% en largeur */
.hub-hero-banner {
    position: relative;
    width: 100%;
    min-height: clamp(220px, 30vw, 440px);
    aspect-ratio: 16 / 7;
    background-image: linear-gradient(180deg, rgba(10, 12, 20, 0.12) 0%, rgba(10, 12, 20, 0.35) 100%), url("../assets/vide.webp");
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #0c101c;
    border-bottom: 2.5px solid #111;
    box-shadow: 0 4px 0 #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    color: #fff;
    box-sizing: border-box;
}

.hero-banner-content {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(10, 14, 26, 0.60);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 28px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffd166;
}

.hero-banner-title {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    margin: 0;
}

.hero-banner-tagline {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    font-weight: 500;
    color: #e2e8f0;
    max-width: 580px;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}


