/**
Nom du fichier : index.css
Auteur : Baptiste Wagée
Date de création : 03 septembre 2026
Version : 1.0
**/
:root {
    /* Couleurs de base */
    --color-bg: #F8F9FA;
    --color-text-light: #64748B;
    --color-border: #E2E8F0;

    /* Accentuation */
    --color-purple: #7C3AED;
    --color-purple-bg: #F3E8FF;

    /* Éditeur de code sombre */
    --code-bg: #111827;
    --code-header-bg: #1F2937;
    --code-keyword: #C084FC;
    --code-var: #E0E7FF;
    --code-prop: #60A5FA;
    --code-string: #4ADE80;
    --code-comment: #6B7280;

    /* Typographies */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Arrondis */
    --radius-sm: 36px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

.hero-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
    background: #F1F5F9;
    border-color: #CBD5E1;
}

/* Ajustement et centrage précis des images */
.social-icon .icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 36px; margin-bottom: 12px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

section { padding: 100px 0; }

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* ===================== Navbar ===================== */

#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 64px;
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

#logo-container { font-size: 22px; font-weight: 800; }

.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; position: relative; }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--color-text);
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #FFF;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-contact:hover { background: #222; }
.btn-contact.btn-lg { padding: 14px 28px; font-size: 15px; }

#nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ===================== Hero ===================== */

#hero { padding-top: 140px; }

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-greeting { font-size: 16px; color: var(--color-text-light); margin-bottom: 8px; }
.hero-name { font-size: 64px; line-height: 1.05; margin-bottom: 16px; }
.hero-role { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--color-text-light); margin-bottom: 16px; }
.hero-desc { font-size: 16px; color: var(--color-text-light); max-width: 440px; margin-bottom: 28px; }

.hero-actions { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.link-underline { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.hero-socials { display: flex; gap: 12px; }
.social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #FFF;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
.social-icon:hover { transform: translateY(-2px); background: #F1F5F9; }
.social-icon .icon { width: 16px; height: 16px; }

/* Code Window */
.hero-visual { position: relative; }
.code-window {
    background: var(--code-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.code-window-bar { display: flex; gap: 8px; padding: 14px 18px; background: var(--code-header-bg); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.code-tabs { display: flex; background: var(--code-header-bg); border-bottom: 1px solid rgba(255,255,255,0.05); }
.code-tab {
    background: none; border: none;
    color: var(--code-comment);
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.code-tab.active { color: #FFF; border-bottom-color: var(--color-purple); }

.code-body { padding: 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.8; color: var(--code-var); }
.code-body p { display: flex; }
.code-body .indent-1 { padding-left: 20px; }
.code-body .indent-2 { padding-left: 40px; }
.ln { width: 28px; color: var(--code-comment); user-select: none; }
.tok-kw { color: var(--code-keyword); }
.tok-var { color: var(--code-var); }
.tok-str { color: var(--code-string); }

.code-terminal { padding: 12px 20px; font-family: var(--font-mono); color: #ffff05; font-size: 12px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.05); }
.tok-prompt { color: var(--code-prop); }
.tok-check { color: var(--code-string); }

.floating-card {
    position: absolute;
    bottom: -24px; right: -20px;
    background: #FFF;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex; gap: 14px; align-items: center;
    max-width: 280px;
    border: 1px solid var(--color-border);
}
.floating-icon {
    width: 36px; height: 36px;
    border-radius: 8px; background: #000; color: #FFF;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.floating-title { font-size: 12px; font-weight: 700; }

/* Stats Bar */
.stats-bar-wrap { margin-top: 64px; }
.stats-bar {
    background: #F1F5F9;
    border-radius: var(--radius-md);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--color-text-muted); }
.stat-num { font-size: 18px; font-weight: 800; color: var(--color-text); }
.stat-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-purple { background: #8B5CF6; }
.dot-green { background: #10B981; }
.dot-orange { background: #F97316; }
.dot-yellow { background: #F59E0B; }

/* ===================== À propos ===================== */

.propos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 24px; }
.propos-text p { color: var(--color-text-light); margin-bottom: 24px; line-height: 1.7; }

.tech-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tech-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px; font-weight: 700;
    color: #FFF;
}
.tech-js { background: #F7DF1E; color: #000; }
.tech-css { background: #0080ff;     }
.tech-html{ background-color: #ff7701;}
.tech-java{ background: #ff0000;}
.tech-sql { background: #3B82F6; }
.tech-git { background: #EF4444; }
.tech-linux { background: #1E293B; }

.propos-card {
    background: #FFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.propos-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.propos-card-icon { width: 40px; height: 40px; border-radius: 10px; background: #F1F5F9; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.propos-card-titles { flex: 1; }
.propos-card-titles h3 { font-size: 16px; }
.propos-card-titles p { font-size: 12px; color: var(--color-text-light); }
.badge-status { background: var(--color-purple-bg); color: var(--color-purple); padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }

.timeline { display: flex; flex-direction: column; gap: 20px; }
.timeline li { display: flex; gap: 16px; align-items: flex-start; }
.timeline-year { font-size: 12px; font-weight: 700; color: var(--color-text-light); width: 36px; padding-top: 2px; }
.timeline-icon { width: 28px; height: 28px; border-radius: 50%; background: #F8FAFC; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.timeline-content h4 { font-size: 14px; margin-bottom: 2px; }
.timeline-content p { font-size: 12px; color: var(--color-text-light); }

/* ===================== Projets ===================== */

.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.link-arrow { font-size: 14px; font-weight: 600; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
    background: #FFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s;
}
.project-card:hover { transform: translateY(-4px); }

.project-thumb {
    height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px;
    background: #000;
    color: #FFF;
    position: relative;
}
.project-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.skill-card img {
    width: 40%;
}
.project-thumb-title { font-size: 20px; font-weight: 800; }
.project-thumb-link { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }

.project-thumb-overtake { background: linear-gradient(135deg, #111, #222); }
.project-thumb-pizzeli { background: linear-gradient(135deg, #7C2D12, #C2410C); }
.project-thumb-pacman { background: linear-gradient(135deg, #1E1B4B, #312E81); }

.project-body { padding: 20px; }
.project-body h3 { font-size: 16px; margin-bottom: 6px; }
.project-body p { font-size: 13px; color: var(--color-text-light); margin-bottom: 16px; height: 38px; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { background: #F1F5F9; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--color-text-muted); }

/* ===================== Compétences ===================== */

.skills-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; margin-top: 32px; }
.skill-card {
    background: #FFF;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.skill-card p { font-size: 12px; font-weight: 600; }
.skill-dots { display: flex; gap: 4px; }
.skill-dots span { width: 5px; height: 5px; border-radius: 50%; background: #E2E8F0; }
.skill-dots span.on { background: var(--color-purple); }

/* ===================== Contact ===================== */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-info { display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-weight: 500; }

/* ===================== Footer ===================== */

#Footer { border-top: 1px solid var(--color-border); padding: 32px 0; background: #FFF; }
.footer-row { display: flex; justify-content: space-between; align-items: center; }
#footer-logo { font-size: 20px; font-weight: 800; }
.footer-copy { font-size: 13px; color: var(--color-text-light); }

#scroll-top {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #FFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================== Responsive ===================== */

@media (max-width: 1024px) {
    .hero-content, .propos-grid, .contact-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-grid { grid-template-columns: repeat(4, 1fr); }
    .floating-card { position: static; margin-top: 16px; }
}

@media (max-width: 768px) {
    #navbar { padding: 16px 24px; }
    .nav-links { display: none; }
    #nav-toggle { display: block; }
    .stats-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .projects-grid, .skills-grid { grid-template-columns: 1fr; }
}

.skills-category{
    margin-bottom: 4vh;
}
