/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    transition: all 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    border-radius: 2px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.skill-card, .project-card {
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.skill-card h3, .project-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li::before {
    content: "▹";
    margin-right: 10px;
}

/* ===== HAMBURGER MENU ===== */
.mobile-menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 30px;
    height: 25px;
    cursor: pointer;
    display: none;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: currentColor;
    margin: 6px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    padding: 20px;
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid;
    transition: all 0.3s ease;
}

.sidebar-nav {
    margin-bottom: 30px;
}

.sidebar-nav a {
    display: block;
    padding: 15px;
    margin: 5px 0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-controls {
    margin-top: 20px;
}

.sidebar-controls h4 {
    margin: 15px 0 10px 0;
    font-size: 1rem;
}

/* ===== THEME BUTTONS WITH LOGOS ===== */
.theme-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-btn {
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
    font-weight: 500;
    cursor: pointer;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-btn.active {
    transform: scale(1.05);
    font-weight: bold;
}

/* ===== THEME LOGOS ===== */
.theme-logo {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

/* Dark Theme Logo */
.theme-logo.dark {
    background: linear-gradient(135deg, #00ffff, #0077ff);
    box-shadow: 0 0 8px #00ffff;
}

/* Light Theme Logo */
.theme-logo.light {
    background: linear-gradient(135deg, #4dabf7, #3bc9db);
    box-shadow: 0 0 8px #4dabf7;
}

/* Glass Theme Logo */
.theme-logo.glass {
    background: linear-gradient(135deg, #ffffff, #a0a0ff);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Neon Theme Logo */
.theme-logo.neon {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Hacker Theme Logo */
.theme-logo.hacker {
    background: #000000;
    border: 2px solid #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

/* Vintage Theme Logo */
.theme-logo.vintage {
    background: linear-gradient(135deg, #d2b48c, #8b4513);
    box-shadow: 0 0 8px #d2b48c;
}

/* Royal Theme Logo */
.theme-logo.royal {
    background: linear-gradient(135deg, #ffd700, #9932cc);
    box-shadow: 0 0 10px #ffd700;
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.language-selector h4 {
    margin: 0;
    font-size: 1rem;
}

.language-selector a {
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
}

.language-selector a:hover {
    transform: scale(1.2) rotate(10deg);
}

.language-selector a.active {
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px currentColor);
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.scroll-top {
    display: none;
}

.scroll-top.visible {
    display: flex;
}

/* ===== VISIT COUNTER ===== */
.visit-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 997;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== CHATBOT ===== */
.chatbot {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 450px;
    border-radius: 15px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chatbot-header {
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.chatbot-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot {
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.user {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-radius: 0 0 15px 15px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.chatbot-input button {
    background: none;
    border: none;
    padding: 10px;
    margin-left: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* ===== QUICK REPLIES (PAXEL RESPONSES) ===== */
.quick-replies {
    padding: 10px 15px;
    border-top: 1px solid;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.quick-reply {
    padding: 8px 12px;
    margin: 2px 0;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-reply:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.quick-reply::before {
    content: "💬";
    font-size: 0.9rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 5px solid;
    transition: all 0.3s ease;
}

/* ===== TYPING ANIMATION CORRIGÉE ===== */
.typing-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    margin: 20px 0;
    min-height: 60px;
    display: inline-block;
    /* Supprimer toutes les animations CSS automatiques */
}

.hero-buttons {
    margin-top: 30px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.age-info {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
}

/* ===== SKILLS & PROJECTS ===== */
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== CONTACT ===== */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item i {
    font-size: 1.5rem;
}

.contact-item a {
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
    padding: 40px 0;
    text-align: center;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    margin: 0 15px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .overlay.active {
        display: block;
    }
    
    .visit-counter {
        top: 80px;
        right: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .chatbot {
        width: 300px;
        height: 400px;
        right: 10px;
        bottom: 90px;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 10px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding: 10px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .theme-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .theme-logo {
        width: 14px;
        height: 14px;
    }
    
    .quick-replies {
        max-height: 100px;
    }
    
    .quick-reply {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: currentColor; }
}

/* SUPPRESSION de l'animation typing CSS conflictuelle */
/* L'animation typing est maintenant gérée uniquement par JavaScript */

/* ===== HOVER EFFECTS ===== */
.skill-card:hover,
.project-card:hover {
    transform: translateY(-5px);
}

.sidebar-nav a:hover {
    transform: translateX(5px);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}