/* === VARIABLES & RESET === */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-primary: #58a6ff;
    --accent-secondary: #1f6feb;
    --accent-green: #3fb950;
    --border-color: #30363d;
    --font-mono: 'Courier New', Courier, monospace;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

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

/* === NAVIGATION === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: bold;
}

nav .logo span {
    color: var(--accent-green);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--accent-primary);
}

nav a.active {
    color: var(--accent-primary);
    font-weight: 500;
}

/* === SECTIONS === */
section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
}

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

/* === HOME SECTION === */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, var(--bg-primary) 50%, transparent 100%),
        repeating-linear-gradient(0deg, var(--border-color) 0px, transparent 1px, transparent 40px);
    opacity: 0.1;
    pointer-events: none;
}

.home-content {
    text-align: center;
    z-index: 1;
}

.profile-photo {
    width: 200px;
    height: 260px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    margin: 0 auto 2rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-secondary);
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.3);
}

.terminal-text {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dev {
    font-size: 1.8rem;
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;

    /* Vert fluo cyber */
    color: #A6FF00;
    text-shadow: 0 0 8px rgba(166, 255, 0, 0.6);
    font-weight: 700;
}

.subtitle {
    font-size: 1.8rem;
    font-family: var(--font-mono);
    margin-bottom: 0.8rem;

        /* Violet néon harmonisé */
    color: #C77DFF;
    text-shadow: 0 0 8px rgba(199, 125, 255, 0.6);
    font-weight: 700;
}


.intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;

    /* Mélange de violet/rose style synthwave (toujours dans dev theme) */
    color: #d58cff;
    text-shadow: 0 0 4px rgba(213, 140, 255, 0.4);
}


/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::before {
    content: '<';
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

.section-header h2::after {
    content: ' />';
    color: var(--accent-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* === ABOUT SECTION === */
#about {
    background-color: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card-skills {
    background-color: #1E1E2F; /* fond sombre type terminal */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    color: #E0E0E0;
    margin-bottom: 2rem;
    font-family: 'Fira Code', monospace;
}

.about-card-skills h3 {
    font-size: 2rem;
    color: #7DF9FF; /* cyan néon pour le titre principal */
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(125, 249, 255, 0.6);
}

.about-card-skills h4 {
    font-size: 1.3rem;
    color: #C77DFF; /* violet néon pour les sous-titres */
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 6px rgba(199, 125, 255, 0.5);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.skill-tag {
    display: inline-block;
    background: linear-gradient(135deg, #9DFF00, #22C55E); /* gradient vert néon */
    color: #1E1E2F; /* texte sombre pour contraste */
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(157, 255, 0, 0.7);
    transition: transform 0.2s, box-shadow 0.2s;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(157, 255, 0, 0.9);
    cursor: default;
}

/* Texte explicatif */
.about-card p em {
    color: #999;
    font-style: italic;
}


.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(88, 166, 255, 0.2);
}

.about-card h3 {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card h3::before {
    content: '// ';
    color: var(--text-secondary);
}

.timeline-item {
    border-left: 2px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.timeline-date {
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--accent-secondary);
    color: white;
    transform: scale(1.05);
}

/* === PROJECTS SECTION === */
#projects {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-badge {
    background: var(--bg-tertiary);
    color: var(--accent-green);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    border: 1px solid var(--border-color);
}

/* === ACTUALITES SECTION === */
#actualites {
    background: var(--bg-primary);
}

/* --- Filtre des catégories --- */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #00ffea;
    border-radius: 8px;
    background-color: transparent;
    color: #00ffea;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.filter-btn:hover {
    background-color: #00ffea;
    color: #0b0b0b;
    box-shadow: 0 0 10px #00ffea, 0 0 20px #00ffea inset;
}

.filter-btn.active {
    background-color: #ff00ff;
    border-color: #ff00ff;
    color: #0b0b0b;
    box-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff inset;
}

/* --- Conteneur des news --- */
#news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* --- News card --- */
.news-card {
    background-color: #121212;
    border: 2px solid #00ffea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 255, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.news-image {
    width: 100%;
    height: 180px;
    background-color: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #888;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1rem;
    color: #f0f0f0;
    font-family: 'Courier New', monospace;
}

.news-source {
    font-size: 0.8rem;
    color: #00ffea;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    margin: 0.3rem 0 0.6rem 0;
    color: #ff00ff;
}

.news-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #aaa;
}

.news-link {
    color: #00ffea;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.news-link:hover {
    text-decoration: underline;
    color: #ff00ff;
}

/* --- Messages d'erreur / chargement --- */
.error-message, .loading {
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #ff5555;
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #ff5555;
    box-shadow: 0 0 10px rgba(255, 85, 85, 0.3);
}


.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.error-message {
    background: rgba(255, 70, 70, 0.1);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #ff6b6b;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-mono);
}

.news-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--accent-secondary);
    color: white;
    border-color: var(--accent-primary);
}

/* === CONTACT SECTION === */
#contact {
    background: var(--bg-primary);
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-link:hover {
    background: var(--accent-secondary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

/* === FOOTER === */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

/* === PROJECT DRAWER === */
.project-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}
.project-overlay.open { opacity: 1; pointer-events: all; }

.project-drawer {
    position: fixed; top: 0; right: 0;
    height: 100%; width: min(520px, 100%);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto; padding: 2rem;
}
.project-drawer.open { transform: translateX(0); }

.drawer-close-btn {
    position: absolute; top: 1rem; right: 1rem;
    background: transparent; border: 1px solid var(--border-color);
    border-radius: 6px; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-secondary); font-size: 18px;
}
.drawer-close-btn:hover { color: var(--text-primary); border-color: var(--accent-primary); }

.drawer-img {
    width: 100%; height: 200px;
    background: var(--bg-tertiary);
    border-radius: 8px; margin-bottom: 1.5rem;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); color: var(--text-secondary);
}
.drawer-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-project-title {
    font-size: 1.5rem; font-weight: 500;
    color: var(--accent-primary); font-family: var(--font-mono);
    margin-bottom: 1.5rem;
}
.drawer-section { margin-bottom: 1.25rem; }
.drawer-label {
    font-size: 0.75rem; font-family: var(--font-mono);
    color: var(--accent-green); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 6px;
}
.drawer-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }
.drawer-divider { border: none; border-top: 1px solid var(--border-color); margin: 1rem 0; }
.drawer-badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* Cartes simplifiées */
.project-card { cursor: pointer; }
.project-card .project-title { font-size: 1.3rem; }
.project-card .project-description {
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
    font-size: 0.9rem;
}
.view-more-btn {
    display: inline-block; margin-top: 1rem;
    color: var(--accent-primary); font-family: var(--font-mono);
    font-size: 0.85rem; border: 1px solid var(--border-color);
    padding: 0.4rem 1rem; border-radius: 6px;
    background: transparent; cursor: pointer;
    transition: all 0.2s;
}
.view-more-btn:hover { background: var(--accent-secondary); border-color: var(--accent-primary); }

/* === PROJECT CARDS v2 === */
.project-card { cursor: pointer; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(88,166,255,.2); }
.project-card .card-category { font-size: 11px; font-family: var(--font-mono); color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.project-card .project-title { font-size: 1.2rem; color: var(--accent-primary); font-family: var(--font-mono); margin-bottom: 8px; }
.project-card .project-description { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; }
.project-card .card-footer-meta { display: flex; justify-content: space-between; align-items: center; padding: 0 1.5rem 1.25rem; }
.project-card .card-meta-info { font-size: 12px; color: var(--text-secondary); font-family: var(--font-mono); }
.view-more-btn { background: transparent; border: 1px solid var(--border-color); border-radius: 6px; padding: 5px 14px; font-size: 13px; color: var(--text-primary); cursor: pointer; transition: background .15s; }
.view-more-btn:hover { background: var(--bg-tertiary); }

/* === MODAL === */
.project-modal-wrap { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 999; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; }
.project-modal-wrap.open { display: flex; }
.project-modal { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; width: 100%; max-width: 720px; margin: auto; position: relative; }
.modal-header { padding: 1.5rem 1.5rem 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-cat { font-size: 11px; font-family: var(--font-mono); color: var(--accent-green); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.modal-title-text { font-size: 1.4rem; font-weight: 500; color: var(--text-primary); font-family: var(--font-mono); }
.modal-close { background: transparent; border: 1px solid var(--border-color); border-radius: 6px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); font-size: 16px; flex-shrink: 0; }
.modal-close:hover { color: var(--text-primary); border-color: var(--accent-primary); }

/* Carousel */
.carousel { margin: 1.5rem 1.5rem 0; position: relative; background: var(--bg-tertiary); border-radius: 8px; overflow: hidden; height: 240px; border: 1px solid var(--border-color); }
.carousel-track { display: flex; height: 100%; transition: transform .3s ease; }
.carousel-slide { flex-shrink: 0; width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(13,17,23,.8); border: 1px solid var(--border-color); border-radius: 6px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-primary); font-size: 18px; z-index: 2; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-color); cursor: pointer; transition: background .15s; }
.dot.active { background: var(--text-primary); }
.carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 12px; background: rgba(0,0,0,.5); font-size: 12px; color: #ccc; font-family: var(--font-mono); }

/* Modal body */
.modal-body { padding: 1.5rem; }
.section-block { margin-bottom: 1.25rem; }
.section-label { font-size: 11px; font-family: var(--font-mono); color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.section-text { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 8px; margin-top: 8px; }
.result-item { background: var(--bg-tertiary); border-radius: 6px; padding: 10px 12px; }
.result-item .ri-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; font-family: var(--font-mono); }
.result-item .ri-val { font-size: 14px; font-weight: 500; color: var(--accent-primary); }
.attachments { display: flex; flex-direction: column; gap: 8px; }
.attach-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-tertiary); border-radius: 8px; border: 1px solid var(--border-color); text-decoration: none; color: var(--text-primary); transition: border-color .15s; }
.attach-item:hover { border-color: var(--accent-primary); }
.attach-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--bg-secondary); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.attach-name { font-size: 13px; }
.attach-meta { font-size: 12px; color: var(--text-secondary); font-family: var(--font-mono); }

/* Bouton qui clignote */
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(.97); }
}

.news-btn {
    display:block;
    margin: 2rem auto 0;
    padding: 10px 22px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    background: #E24B4A;
    color: #FCEBEB;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: .3px;
    animation: blink 1.1s ease-in-out infinite;
}

.news-btn::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FCEBEB;
  margin-right: 8px;
  vertical-align: middle;
}

.news-btn:hover { background: #A32D2D; }

/* Dialogue flottant */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.floating-dialog {
  position: fixed;
  width: 280px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  z-index: 2000;
  display: none;
  animation: float 3s ease-in-out infinite;
  transition: left .8s cubic-bezier(.4,0,.2,1), top .8s cubic-bezier(.4,0,.2,1);
}

.floating-dialog.visible { display: block; }

.dialog-bar { display: flex; gap: 5px; margin-bottom: 12px; }
.dot-r, .dot-y, .dot-g {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-r { background: #E24B4A; }
.dot-y { background: #EF9F27; }
.dot-g { background: #639922; }

.floating-dialog h2 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.floating-dialog p {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.dialog-close-btn {
  width: 100%;
  padding: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
}

.dialog-close-btn:hover { border-color: var(--accent-primary); }