:root {
    --bg-deep: #0a0a0a;
    --bg-card: #141414;
    --gold: #d4af37;
    --gold-lt: #f1d592;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --accent: #222;
    --border-gold: 1px solid rgba(212, 175, 55, 0.3);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'EB Garamond', serif;
    margin: 0;
    line-height: 1.6;
}

.temple-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.9);
    border-bottom: var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.temple-brand {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 1.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

.undernet-link {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    border: 1px solid var(--gold);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.temple-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, #1a1a1a, var(--bg-deep));
}

.hero-kicker {
    color: var(--gold);
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.temple-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0;
    color: white;
}

.hero-tagline {
    font-style: italic;
    color: var(--text-dim);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto;
}

.temple-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-card {
    background: var(--bg-card);
    border: var(--border-gold);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.section-card h2 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-top: 0;
}

.gallery-preview {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-gold {
    background: var(--gold);
    color: black;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.8rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

.photo-grid img:hover {
    transform: scale(1.05);
    border-color: var(--gold);
}

.blog-sidebar {
    background: var(--bg-card);
    border: var(--border-gold);
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.blog-item {
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.blog-item:last-child { border: none; }

.blog-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold);
}

.blog-item h3 {
    margin: 0.3rem 0;
    font-size: 1.1rem;
    color: white;
}

.blog-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.read-more {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
}

.ai-hub-section {
    text-align: center;
    padding: 4rem 2rem;
    background: #050505;
    border-top: var(--border-gold);
}

.hub-title {
    font-family: 'Space Mono', monospace;
    color: var(--gold);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.abandonware-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.ai-bot-card {
    background: #111;
    border: 2px solid #333;
    width: 120px;
    padding: 1rem;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: center;
}

.ai-bot-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    background: #1a1a1a;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.bot-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.bot-name {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: bold;
}

.temple-footer {
    text-align: center;
    padding: 3rem 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #444;
    border-top: 1px solid #111;
}

.footer-content {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-content:hover {
    opacity: 1;
    color: var(--gold);
}

@media (max-width: 900px) {
    .temple-grid {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        order: 2;
    }
}

/* ---------- Mobile (téléphones) ---------- */
@media (max-width: 700px) {
    .temple-nav {
        flex-wrap: wrap;
        gap: .5rem 1rem;
        padding: .75rem 1rem;
    }
    .temple-brand {
        font-size: 1.05rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }
    .undernet-link {
        font-size: .8rem;
        padding: .35rem .6rem;
    }
    .nav-links {
        order: 3;
        flex-basis: 100%;
        display: flex;
        gap: .25rem;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a {
        margin-left: 0;
        padding: .6rem .8rem;
        white-space: nowrap;
        border-radius: 4px;
    }
    .nav-links a.active {
        background: rgba(212, 175, 55, .1);
    }
}
