:root {
    --bg-color: #0f1115;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    
    /* Couleurs de base */
    --accent: #00f2ea;       /* Cyan (Actif) */
    --accent-sec: #7000ff;   /* Violet (Déco) */
    
    /* Couleurs de statuts */
    --stat-active: #00f2ea;
    --stat-maint: #ff9f43;   /* Orange */
    --stat-archived: #576574; /* Gris */

    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Space Grotesk', sans-serif;
}

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

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

/* --- Ambiance (identique version précédente) --- */
.background-orb {
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-sec) 0%, transparent 70%);
    opacity: 0.15; border-radius: 50%;
    top: -100px; left: -100px; z-index: -1; filter: blur(80px);
}
.orb-2 {
    top: auto; left: auto; bottom: -100px; right: -100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.container { max-width: 1000px; margin: 0 auto; padding: 4rem 2rem; }

/* --- Header --- */
.header { margin-bottom: 5rem; text-align: center; }
.logo { font-size: 3rem; font-weight: 700; letter-spacing: -2px; margin-bottom: 0.5rem; }
.dot { color: var(--accent); }
.tagline { color: var(--text-muted); font-size: 1.1rem; font-weight: 300; letter-spacing: 1px; text-transform: uppercase; }

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

/* --- Cartes : Structure de base --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 240px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* --- Comportement : Active --- */
.card.status-active:hover {
    transform: translateY(-5px);
    border-color: var(--stat-active);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 40px -10px rgba(0, 242, 234, 0.15);
}

/* --- Comportement : Maintenance --- */
.card.status-maintenance {
    border-style: dashed;
    border-color: rgba(255, 159, 67, 0.3);
    cursor: not-allowed;
}
.card.status-maintenance:hover {
    background: rgba(255, 159, 67, 0.05);
}

/* --- Comportement : Archived --- */
.card.status-archived {
    opacity: 0.6;
    filter: grayscale(100%);
}
.card.status-archived:hover {
    opacity: 1;
    filter: grayscale(0%); /* Retour de la couleur au survol */
    border-color: var(--stat-archived);
}

/* --- Contenu de la carte --- */
.card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    font-size: 0.8rem; margin-bottom: 1.5rem; color: var(--text-muted);
}
.badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* Styles des badges */
.tag, .status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.tag { border: 1px solid var(--card-border); color: var(--text-muted); }

.status-badge.active { background: rgba(0, 242, 234, 0.1); color: var(--stat-active); }
.status-badge.maintenance { background: rgba(255, 159, 67, 0.1); color: var(--stat-maint); }
.status-badge.archived { background: rgba(87, 101, 116, 0.2); color: var(--stat-archived); }

.card-title { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5rem; }
.card-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; margin-bottom: 2rem; }

.card-footer {
    font-size: 0.9rem; font-weight: 700;
    display: flex; align-items: center;
}

.link-text { color: var(--accent); transition: margin-left 0.3s ease; }
.card.status-active:hover .link-text { margin-left: 5px; }

.link-text-off { color: var(--stat-maint); }

/* --- Footer --- */
.footer {
    margin-top: 5rem; text-align: center; color: var(--text-muted);
    font-size: 0.8rem; border-top: 1px solid var(--card-border); padding-top: 2rem;
}

@media (max-width: 600px) {
    .logo { font-size: 2.5rem; }
    .container { padding: 2rem 1.5rem; }
}