/* ================================
   BASE
================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #0B0112;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
}

/* ================================
   PARTICLES & SCAN LINES
================================ */
#particles-js {
    position: fixed;
    width: 100%; height: 100%;
    top: 0; left: 0;
    z-index: -1;
    background-color: #0B0112;
}

.scan-lines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent, transparent 3px,
        rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
    );
}

/* ================================
   HEADER
================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Zen Dots", sans-serif;
    font-size: 20px;
    background: #000000;
    padding: 16px 24px;
    border-bottom: 1px solid white;
    box-shadow: 0px 0px 17px 1px rgba(191, 0, 255, 0.9);
    position: relative;
    z-index: 10;
}

a {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin: 8px 16px;
}

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

nav > a {
    color: #BF00FF;
    transition: color 0.3s, text-shadow 0.3s;
}

nav > a:hover,
nav > a.nav-active {
    color: #ffffff;
    text-shadow: 0 0 12px #BF00FF;
}

/* ================================
   MAIN
================================ */
.projects-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: "Zen Dots", sans-serif;
    color: #BF00FF;
    text-align: center;
    font-size: 56px;
    margin: 0 0 60px;
    text-shadow: 0 0 22px rgba(191, 0, 255, 0.7);
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #BF00FF;
    margin: 16px auto 0;
    box-shadow: 0 0 10px #BF00FF;
}

/* ================================
   GRILLE
================================ */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

/* ================================
   CARTE PROJET
================================ */
.project-card {
    background: rgba(20, 5, 35, 0.65);
    border: 1px solid rgba(191, 0, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(6px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    animation: fadeUp 0.7s ease both;
    position: relative;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #BF00FF;
    box-shadow: 0px 0px 30px 2px rgba(191, 0, 255, 0.45);
}

/* Coins décoratifs au hover */
.project-card::before,
.project-card::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border-color: #BF00FF;
    border-style: solid;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.project-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.project-card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.project-card:hover::before,
.project-card:hover::after { opacity: 1; }

/* Image */
.project-image {
    height: 240px;
    background: #160224;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(191, 0, 255, 0.2);
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.06);
}

.project-number {
    position: absolute;
    top: 12px;
    right: 14px;
    font-family: "Zen Dots", sans-serif;
    font-size: 13px;
    color: rgba(191, 0, 255, 0.6);
    letter-spacing: 1px;
    z-index: 1;
}

.image-placeholder {
    font-family: "Zen Dots", sans-serif;
    font-size: 36px;
    color: rgba(191, 0, 255, 0.6);
    text-shadow: 0 0 14px rgba(191, 0, 255, 0.4);
    letter-spacing: 2px;
}

/* Contenu */
.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.project-content h3 {
    font-family: "Zen Dots", sans-serif;
    font-size: 22px;
    margin: 0;
    color: #ffffff;
    line-height: 1.3;
}

.project-content p {
    font-size: 15px;
    color: #b3a1bf;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background: rgba(191, 0, 255, 0.1);
    border: 1px solid rgba(191, 0, 255, 0.35);
    color: #e5b3ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Bouton */
.btn-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #BF00FF;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: "Zen Dots", sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 4px 0 0;
    transition: background 0.3s, box-shadow 0.3s, transform 0.15s;
    align-self: flex-start;
}

.btn-project:hover {
    background: #BF00FF;
    box-shadow: 0 0 18px rgba(191, 0, 255, 0.6);
    color: #000;
    transform: translateY(-1px);
}

/* ================================
   FOOTER MMI
================================ */
.mmi {
    font-family: "Zen Dots", sans-serif;
    font-size: 28px;
    text-shadow: rgba(182, 101, 209, 0.9) 0px 0px 22px;
    color: #BF00FF;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .projects-container { padding: 0 20px; margin: 40px auto; }
    .projects-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 36px; margin-bottom: 40px; }
    .mmi { font-size: 18px; bottom: 16px; right: 16px; }
}
