/*
Theme Name: Sudibase Tech
Theme URI: https://sudibase.fr
Author: Sudibase
Author URI: https://sudibase.fr
Description: Homepage tech futuriste pour sudibase.fr - laboratoire de tests et expérimentations numériques.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sudibase-tech
Tags: one-page, technology, dark, custom-background, custom-header
*/

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyan:    #00f5ff;
    --purple:  #b400ff;
    --pink:    #ff0080;
    --dark:    #050a12;
    --dark2:   #0a1628;
    --dark3:   #0d1f3c;
    --text:    #c8d8e8;
    --text-dim:#6a8fa8;
    --card-bg: rgba(10, 22, 40, 0.85);
    --border:  rgba(0, 245, 255, 0.15);
    --glow:    0 0 20px rgba(0, 245, 255, 0.4);
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--pink); }

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* ================================================
   CANVAS BACKGROUND
   ================================================ */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* ================================================
   LAYOUT WRAPPER
   ================================================ */
.site-wrapper {
    position: relative;
    z-index: 1;
}

/* ================================================
   HEADER / NAV
   ================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 10, 18, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.site-header.scrolled {
    background: rgba(5, 10, 18, 0.95);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: var(--glow);
    letter-spacing: 0.05em;
}

.logo-bracket {
    color: var(--purple);
    font-size: 1.4rem;
}

.logo-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.6); }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--cyan);
    transition: width 0.3s;
}

.site-nav a:hover {
    color: var(--cyan);
}
.site-nav a:hover::after { width: 100%; }

/* ================================================
   HERO
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--cyan);
    margin-bottom: 2rem;
    background: rgba(0, 245, 255, 0.05);
    letter-spacing: 0.1em;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title .line-1 {
    display: block;
    color: #fff;
}

.hero-title .line-2 {
    display: block;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.4));
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #000;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.6);
    color: #000;
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
}
.btn-outline:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: translateY(-2px);
    color: var(--cyan);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.scroll-arrow {
    width: 20px; height: 20px;
    border-right: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
    transform: rotate(45deg);
}

/* ================================================
   STATS BAR
   ================================================ */
.stats-bar {
    padding: 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(8px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

/* ================================================
   SECTIONS COMMUNES
   ================================================ */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-tag::before {
    content: '//';
    color: var(--purple);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* ================================================
   CARDS TECH
   ================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: default;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 245, 255, 0.1);
}

.tech-card:hover::before { opacity: 1; }

.card-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid var(--border);
}

.card-icon.purple { background: rgba(180, 0, 255, 0.08); border-color: rgba(180, 0, 255, 0.2); }
.card-icon.pink   { background: rgba(255, 0, 128, 0.08); border-color: rgba(255, 0, 128, 0.2); }

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.65;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.2rem;
}

.tag {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(0, 245, 255, 0.08);
    color: var(--cyan);
    border: 1px solid rgba(0, 245, 255, 0.2);
    letter-spacing: 0.05em;
}

.tag.purple { background: rgba(180, 0, 255, 0.08); color: #d080ff; border-color: rgba(180, 0, 255, 0.2); }
.tag.pink   { background: rgba(255, 0, 128, 0.08); color: #ff80bf; border-color: rgba(255, 0, 128, 0.2); }

/* ================================================
   TERMINAL BLOCK
   ================================================ */
.terminal-section {
    padding: 6rem 2rem;
    background: rgba(10, 22, 40, 0.5);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.terminal-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.terminal-window {
    background: #020b14;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 245, 255, 0.05);
}

.terminal-header {
    background: #0a1628;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 0.4rem;
}

.terminal-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.terminal-dots .d-red    { background: #ff5f57; }
.terminal-dots .d-yellow { background: #febc2e; }
.terminal-dots .d-green  { background: #28c840; }

.terminal-title {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    min-height: 280px;
}

.t-comment { color: #3a5a7a; }
.t-cmd     { color: var(--cyan); }
.t-output  { color: var(--text-dim); }
.t-success { color: #28c840; }
.t-error   { color: #ff5f57; }
.t-purple  { color: #d080ff; }
.t-pink    { color: #ff80bf; }

.cursor {
    display: inline-block;
    width: 8px; height: 14px;
    background: var(--cyan);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ================================================
   TECH STACK
   ================================================ */
.stack-section {
    padding: 6rem 2rem;
}

.stack-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    transition: all 0.3s;
    text-align: center;
}

.stack-item:hover {
    border-color: rgba(0, 245, 255, 0.4);
    background: rgba(0, 245, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.stack-icon { font-size: 1.8rem; }

.stack-name {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

/* ================================================
   TIMELINE TESTS
   ================================================ */
.timeline-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem; top: 0.3rem;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    border: 2px solid var(--dark);
}

.timeline-date {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--cyan);
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
    text-align: center;
    background: rgba(5, 10, 18, 0.8);
    backdrop-filter: blur(8px);
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--cyan);
    font-weight: 700;
    text-shadow: var(--glow);
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    letter-spacing: 0.05em;
}
.footer-links a:hover { color: var(--cyan); }

.footer-copy {
    font-size: 0.75rem;
    color: #3a5a7a;
    font-family: var(--font-mono);
}

.footer-copy span {
    color: var(--cyan);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .stack-grid { grid-template-columns: repeat(4, 1fr); }
    .terminal-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stack-grid  { grid-template-columns: repeat(3, 1fr); }
    .cards-grid  { grid-template-columns: 1fr; }
    .site-nav    { display: none; }
    .hero-title  { font-size: clamp(2rem, 10vw, 3.5rem); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stack-grid  { grid-template-columns: repeat(2, 1fr); }
}
