/* ============================================================
   search.kaeoz.com — minimal dark futuristic UI
   ============================================================ */

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

:root {
    --bg: #05070b;
    --bg-2: #0a0d13;
    --fg: #e6e7ea;
    --fg-dim: #8b8f96;
    --fg-soft: #6a6e75;
    --accent: #3aa9ff;
    --accent-glow: rgba(58, 169, 255, 0.35);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --card: rgba(255, 255, 255, 0.03);
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 700px at 50% 30%, rgba(58, 169, 255, 0.06), transparent 70%),
        radial-gradient(900px 600px at 80% 90%, rgba(167, 139, 250, 0.04), transparent 70%),
        var(--bg);
    position: relative;
}

#stars {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 2;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 56px;
}

.brand-mark {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 18px rgba(255,255,255,0.25);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 14px;
    font-weight: 400;
}

.site-nav a {
    color: var(--fg-dim);
    transition: color .2s ease;
}
.site-nav a:hover { color: #fff; }

.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 26px;
    height: 22px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}
.burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--fg-dim);
    transition: background .2s;
}
.burger:hover span { background: #fff; }

/* ---- Language switch ---- */
.lang-switch {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 1px;
}
.lang-current {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg-dim);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s, border-color .2s;
}
.lang-current:hover {
    color: #fff;
    border-color: var(--border-strong);
}
.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    list-style: none;
    background: rgba(15, 19, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
    min-width: 80px;
    backdrop-filter: blur(8px);
    z-index: 50;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.lang-menu li a {
    display: block;
    padding: 8px 14px;
    color: var(--fg-dim);
    border-radius: 5px;
    transition: background .15s, color .15s;
}
.lang-menu li a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.lang-menu li a.active {
    color: var(--accent);
    background: rgba(58,169,255,0.08);
}

/* ============================================================
   MAIN / HERO
   ============================================================ */
.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 60px;
}

.hero {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: clamp(64px, 9vw, 128px);
    letter-spacing: 18px;
    color: #fff;
    margin-top: 60px;
    text-shadow:
        0 0 24px rgba(255, 255, 255, 0.15),
        0 0 80px rgba(58, 169, 255, 0.12);
    position: relative;
    user-select: none;
}

.hero-tagline {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 2px;
    word-spacing: 18px;
    color: var(--fg-soft);
    text-transform: uppercase;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
    margin-top: 56px;
    width: min(820px, 100%);
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(15, 19, 26, 0.6);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 0 8px 0 22px;
    backdrop-filter: blur(8px);
    transition: border-color .25s ease, box-shadow .25s ease, transform .4s ease;
    box-shadow: 0 0 0 0 var(--accent-glow);
}

.search-bar:focus-within,
.search-bar:hover {
    border-color: rgba(58, 169, 255, 0.55);
    box-shadow:
        0 0 0 3px rgba(58, 169, 255, 0.08),
        0 0 60px -10px var(--accent-glow);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 300;
    height: 100%;
    padding: 0 12px;
}
.search-bar input::placeholder {
    color: var(--fg-soft);
    font-weight: 300;
}

.search-bar button {
    width: 48px;
    height: 48px;
    background: rgba(58, 169, 255, 0.08);
    border: 1px solid rgba(58, 169, 255, 0.35);
    border-radius: 10px;
    color: var(--accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .15s ease;
}
.search-bar button:hover {
    background: rgba(58, 169, 255, 0.18);
}
.search-bar button:active { transform: scale(0.96); }

/* État "recherche en cours" : barre remonte */
.hero.searching .search-bar {
    transform: translateY(-30px);
}

/* ============================================================
   CONSOLE "EXPANDING SEARCH"
   ============================================================ */
.console {
    margin-top: 44px;
    width: min(820px, 100%);
    min-height: 180px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(8, 11, 16, 0.7);
    padding: 24px 28px;
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--fg-dim);
    backdrop-filter: blur(8px);
}

.console-lines {
    list-style: none;
}
.console-lines li {
    padding: 4px 0;
    opacity: 0;
    transform: translateY(4px);
    animation: lineIn .35s ease forwards;
}
.console-lines li::before {
    content: '> ';
    color: var(--accent);
    margin-right: 4px;
}

.console-lines li.done {
    color: var(--fg);
}
.console-lines li.done::after {
    content: '  OK';
    color: #34d399;
    margin-left: 8px;
}

@keyframes lineIn {
    to { opacity: 1; transform: translateY(0); }
}

.console-final {
    margin-top: 28px;
    border-top: 1px solid var(--border);
    padding-top: 22px;
    text-align: center;
    animation: finalIn .8s ease forwards;
    opacity: 0;
}
.console-final .answer-label {
    font-size: 11px;
    letter-spacing: 2px;
    word-spacing: 14px;
    color: var(--fg-soft);
    margin-bottom: 10px;
}
.console-final .answer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    color: #fff;
    text-shadow:
        0 0 20px rgba(255,255,255,0.18),
        0 0 60px var(--accent-glow);
    letter-spacing: 1px;
}
@keyframes finalIn {
    to { opacity: 1; }
}

/* ============================================================
   DISCOVER
   ============================================================ */
.discover {
    margin-top: 80px;
    width: 100%;
    transition: opacity .4s ease;
}
.hero.searching .discover {
    opacity: 0;
    pointer-events: none;
}

.discover-title {
    font-size: 12px;
    letter-spacing: 2px;
    word-spacing: 18px;
    color: var(--fg-soft);
    text-transform: uppercase;
    margin-bottom: 28px;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    width: min(1080px, 100%);
    overflow: hidden;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 22px 26px;
    text-align: left;
    min-height: 170px;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    background: rgba(255,255,255,0.05);
}
.card-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.card h3 {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}
.card p {
    font-size: 13px;
    color: var(--fg-dim);
    line-height: 1.5;
}

/* points pour Deep Web */
.card-icon.dots {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    gap: 4px;
}
.card-icon.dots span {
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(96,165,250,.5);
}

.carousel-btn {
    background: transparent;
    border: none;
    color: var(--fg-soft);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: color .2s ease, background .2s ease;
}
.carousel-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.carousel-btn:disabled {
    opacity: .25;
    cursor: not-allowed;
}

/* ============================================================
   PAGES SIMPLES (about, labs, contact, ...)
   ============================================================ */
.page-simple {
    width: 100%;
    max-width: 720px;
    margin: 80px auto;
    text-align: center;
}
.page-simple h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    letter-spacing: 6px;
    margin-bottom: 24px;
    color: #fff;
}
.page-simple p {
    color: var(--fg-dim);
    line-height: 1.7;
    margin: 8px 0;
}
.page-simple .muted { color: var(--fg-soft); font-size: 13px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 56px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--fg-soft);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
}

.footer-center {
    display: flex;
    gap: 36px;
}
.footer-center a:hover { color: #fff; }

.footer-right {
    display: flex;
    gap: 18px;
}
.footer-right a {
    color: var(--fg-soft);
    transition: color .2s ease;
}
.footer-right a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .site-header { padding: 22px 24px; }
    .site-footer { flex-direction: column; gap: 14px; padding: 22px; text-align: center; }
    .carousel-track { grid-template-columns: repeat(2, 1fr); }
    .hero-title { letter-spacing: 10px; margin-top: 24px; }
}
@media (max-width: 540px) {
    .site-nav { gap: 18px; font-size: 13px; }
    .carousel-track { grid-template-columns: 1fr; }
    .hero-title { letter-spacing: 6px; }
    .hero-tagline { letter-spacing: 5px; }
    .console { padding: 18px; }
}
