:root {
    --primary: #6366f1;
    --accent: #06b6d4;
    --bg: #030712;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
}

* { box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; 
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.gradient-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #030712 100%);
    z-index: -1;
}

/* --- NAVBAR --- */
.glass-nav {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 95%; 
    max-width: 1100px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

.logo { 
    font-family: 'Fira Code', monospace; 
    font-weight: bold; 
    font-size: 0.9rem;
    white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; }

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.nav-links a:hover { color: #fff; }

.btn-cv {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

/* --- MAIN CONTENT --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 15px 60px;
}

.section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    font-weight: 800;
}

.accent-title { border-left-color: var(--accent) !important; }

/* --- TERMINAL MACOS --- */
.terminal-window {
    background: #000;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 80px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

.terminal-header {
    background: #1e293b;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-controls { display: flex; gap: 6px; flex: 1; }
.terminal-header-title {
    color: var(--text-dim);
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
    text-align: center;
    flex: 2;
}
.terminal-spacer { flex: 1; }

.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-body { padding: clamp(20px, 5vw, 40px); font-family: 'Fira Code', monospace; }

.terminal-main-display { text-align: center; padding: 20px 0; }
.terminal-name {
    font-size: clamp(1.8rem, 8vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #818cf8, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.terminal-goal { font-size: 1.1rem; color: var(--text-main); margin-top: 15px; opacity: 0.9; }

.terminal-separator {
    width: 60%;
    height: 1px;
    background: var(--border);
    margin: 25px auto;
    opacity: 0.3;
}

.prompt-line, .terminal-status, .terminal-cursor-line { text-align: left; }
.terminal-status { margin: 25px 0; padding-left: 35%; }
.prompt { color: var(--accent); font-weight: bold; margin-right: 8px; }
.response { color: var(--text-dim); }

.social-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { color: var(--text-dim); transition: 0.3s; }
.social-icons a:hover { color: var(--accent); transform: translateY(-2px); }

.cursor {
    display: inline-block; width: 8px; height: 1.2em;
    background: var(--accent); animation: blink 1s infinite;
    vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- GRILLES & CARTES --- */
.skills-grid, .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.skill-card, .project-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.skill-card:hover, .project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.skill-card i { font-size: 2rem; color: var(--accent); margin-bottom: 20px; }

/* Correction des tags collés */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tags span {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 700;
}

/* Style du lien de rapport */
.btn-detail {
    margin-top: auto;
    padding-top: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-detail:hover {
    gap: 14px;
    color: #fff;
}

.tp-card { border-top: 4px solid var(--primary); }
.perso-card { border-top: 4px solid var(--accent); }

/* --- LANGAGES COMPACTS --- */
.skills-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.skill-card-small {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- ROADMAP / TIMELINE --- */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 1px solid var(--border);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-dot {
    position: absolute;
    left: -36px; top: 5px;
    width: 11px; height: 11px;
    background: var(--text-dim);
    border-radius: 50%;
    border: 2px solid var(--bg);
}
.timeline-item.active .timeline-dot { background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.timeline-item.goal .timeline-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links a:not(.btn-cv) { display: none; }
    .terminal-header-title { display: none; }
    .terminal-status { padding-left: 0; }
    .skills-grid, .projects-container { grid-template-columns: 1fr; }
}

/* --- CONTACT FORM --- */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(20px, 5vw, 40px);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    font-family: 'Fira Code', monospace;
}

.form-group input, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.btn-submit i {
    width: 18px;
    height: 18px;
}

#contact-status {
    margin-top: 15px;
    font-size: 0.9rem;
    font-family: 'Fira Code', monospace;
    text-align: center;
    min-height: 1.2em;
}

.status-message.success { color: #27c93f; } /* Vert Mac */
.status-message.error { color: #ff5f56; }   /* Rouge Mac */

footer {
    text-align: center; /* Centre le texte à l'intérieur du bloc */
    padding: px 20px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    width: 100%; /* S'assure que le footer prend toute la largeur pour que le texte soit au centre de l'écran */
    display: flex;
    justify-content: center; /* Centre le contenu si tu ajoutes des icônes plus tard */
    align-items: center;
}
/* Responsive Contact */
@media (max-width: 768px) {
    .contact-container {
        padding: 25px 20px;
    }
}